Pick a target JDK for a freeform project in NetBeans
I know, I know, long overdue, but here it is anyway: a little tool to assist you in building and running a "freeform" project (existing Ant script) using a different JDK from what NetBeans is running on. Ant tasks like javac and the like have long supported selecting a particular JDK executable to use (means they must fork to run the tools), but few people would want to remember to set these attributes consistently. Instead, this tool uses the magic of presetdef to do it for you. The upshot is that freeform projects behave a little more like other projects.
Download the Freeform Project Extras 1.5 NBM (NetBeans 5.0+ compatible)
If you were really paranoid you could make your test target run all your unit tests in turn on each supported JDK...without leaving the IDE. But that's for you to write.
Posted at 07:42PM Feb 19, 2006 by jglick in Sun | Comments[5]
Posted by Thomas Zillinger on February 21, 2006 at 02:42 AM EST #
Posted by Mark Herkrath on February 21, 2006 at 06:56 AM EST #
Posted by Jesse Glick on February 21, 2006 at 09:42 AM EST #
I can't seem to get this to work for me, did you ever update it to allow ant scripts to run under the JDK selected on the project? I have NetBeans running on JDK 6, but need to compile my project source against 1.5...
Posted by Bruce Bell-Myers on September 11, 2007 at 03:12 PM EDT #
Version on nbextras.org is probably obsolete. Use http://deadlock.netbeans.org/hudson/job/javadoc-nbms/lastSuccessfulBuild/artifact/nbbuild/nbms/extra/org-netbeans-modules-ant-freeform-samples.nbm instead. If you have any problems, please file bug reports with detailed steps to reproduce (Issuezilla component 'ant').
Posted by Jesse Glick on September 13, 2007 at 11:24 AM EDT #