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>
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.
EDIT:
Created a bug report for Netbeans.