【发布时间】:2011-02-28 20:28:01
【问题描述】:
我正在尝试覆盖 Netbeans 项目中的“运行”目标。我正在做的是编辑文件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>
我试图同时覆盖“run”和“run-single”,但这两件事都没有改变任何东西。当按下F6 时,项目的 Main 类会像以前一样执行。未打印测试消息 (AAA...)。
编辑:
为 Netbeans 创建了一个 bug report。
【问题讨论】: