Since switching to Net Beans, I've found the need to extend the auto-generated build scripts on more than one occasion (by the way these scripts are great, and another awesome advantage Net Beans has over Eclipse). Tasks such as adding targets to generate zip archives of a client or calling Axis 2 generated build scripts seem to pop up a lot with all the SOA stuff I've been working on.
One such change recently, required an <for-each> Ant task. To enable foreach, the ant-contrib library needs to be added to the Net Beans Ant setup - as Net Beans comes packaged with its own version of Ant. If you only run your Net Beans build scripts from the command-line, your default Ant needs to be set up with ant-contrib - you don't need to worry about Net Beamns.
Every time I install a new version of Net Beans, I have to put ant-contrib into the new install area (I usually install most beta and release candidates of Net Beans, so this is a fairly common exercise). And every time I have to break out a search program so I can remember exactly where the Ant is in the Net Beans install.
So, for future reference, its here:
C:\Program Files\NetBeans x.x\java2
Note that the version of the java folder changes in some releases (e.g. Net Beans 6.0 was java1).
-
-
2
comments
Great post
As you wrote that Every time I install a new version of Net Beans, I have to put ant-contrib into the new install area (I usually install most beta and release candidates of Net Beans, so this is a fairly common exercise). And every time I have to break out a search program so I can remember exactly where the Ant is in the Net Beans install.Keeping the reference for future will surely help