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.
It is sometimes desirable to run a foreign build script using a specific JDK. Forking a Java process just to run Ant is not easily possible while still using AntLogger's and custom IDE tasks. Currently java.freeform uses a jdk.xml file to <presetdef> standard tasks like <javac> with the same name. This is clumsy (jdk.xml has to be inserted into the project), works only if the Ant script is invoked from the expected place, and can cause problems for tools like Cobertura which call Java task = (Java) getProject.createTask("java"); Safer would be to use the Ant module to redefine these tasks directly in the new Project (not using an XML script) as subclasses of the standard task classes.
See also issue #154821.
No more time in 6.8.