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.

Bug 154819 - Centrally managed support for alternate JDKs
Summary: Centrally managed support for alternate JDKs
Status: NEW
Alias: None
Product: projects
Classification: Unclassified
Component: Ant (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Tomas Stupka
URL:
Keywords: API
Depends on:
Blocks: 151371 156475 151078
  Show dependency tree
 
Reported: 2008-12-05 22:46 UTC by Jesse Glick
Modified: 2014-05-12 13:10 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2008-12-05 22:46:20 UTC
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.
Comment 1 Jesse Glick 2008-12-05 22:55:38 UTC
See also issue #154821.
Comment 2 Jesse Glick 2009-09-03 16:12:49 UTC
No more time in 6.8.