This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
I have the following code in a build.xml. It is supposed to redirect the output from the VersionAnt class to the specified output property. It does not do that, but instead outputs the text to the screen. I have tried with the attribute fork="true" as well, but that does not make any difference. In Netbeans 6.9.1 this worked with the fork attribute set, but in some older versions it did not work at all just as it is now in 7.0. I would say that this is a regression. <java classname="test.VersionAnt" classpath="build/classes"> <redirector outputproperty="version"/> </java> <java classname="test.VersionAnt" classpath="build/classes"> <arg value="underscore"/> <redirector outputproperty="version.underscore"/> </java>
Confirmed with: <project> <target name="run"> <echo file="C.java">public class C {public static void main(String[] x) {System.out.println("1.2");}}</echo> <javac srcdir="." destdir="." includes="C.java"/> <java classname="C" classpath="."> <redirector outputproperty="version"/> </java> <echo>version=${version}</echo> </target> </project>
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss