蚂蚁在Netbeans的:重写run目标不起作用 [英] Ant in Netbeans: overriding run target doesn't work
本文介绍了蚂蚁在Netbeans的:重写run目标不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想重写运行的目标在NetBeans项目。我在做什么是编辑文件的build.xml
:
I am trying to override the "run" target in a Netbeans project. What I'm doing is editing the file build.xml
:
<project name="Test123" default="default" basedir=".">
<import file="nbproject/build-impl.xml"/>
<target depends="init,compile" name="run">
<echo>AAAAAAAAAAAAAAAAAAAAAA</echo>
</target>
<target depends="init,compile-single" name="run-single">
<echo>AAAAAAAAAAAAAAAAAAAAAA</echo>
</target>
</project>
我试图同时重写跑和跑单,但两件事不会改变任何东西。当pressing F6
,该项目的主类是像以前一样执行。不打印测试消息( AAA ...
)。
I tried to override both "run" and "run-single", but both things doesn't change anything. When pressing F6
, the project's Main class is executed as before. The test message (AAA...
) is not printed.
编辑:结果
创建一个 bug报告获得Netbeans的。
Created a bug report for Netbeans.
推荐答案
该解决方案是,在回答我的 bug报告,关闭编译上保存。
The solutions is, as mentioned in the answer to my bug report, to turn off compile-on-save.
这篇关于蚂蚁在Netbeans的:重写run目标不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文