Change Ant version in NetBeans easy.

NetBeans IDE 6.0 Preview (M9, build 070502)

NetBeans IDE 6.0 M9 come with Ant build tool version 1.7, which syntaxs of build file maybe different with Ant version 1.6. When I use NetBeans with default Ant(1.7) build Nutch i got error.

D:\javas\NBeansProject6\nutch\build.xml:61: Specify at least one source--a file or resource collection.BUILD FAILED (total time: 0 seconds)

I'm too lazy to correct the build.xml to correct the problem, so i go to change Ant version to elder one (v.1.6) and try to build it again. then I got .....BUILD SUCCESSFUL (total time: 16 seconds)

------------------------
To change Ant goto >
Tools > Options > Miscellaneous > Ant > Ant Home

Change Ant Home to ant version that you prefer. Easy?

No comments: