-
15. Re: allow ant 1.6
thepriz Mar 24, 2004 1:58 PM (in response to jae77)I have run into a problem with using ant 1.6: if I don't do a clean it works fine. After I do a clean I get the following error when I try to just run the build deploy in netbeans.
_buildmagic:init: Trying to override old definition of task property _buildmagic:init:project-local-properties: configure: configure-libraries: configure-modules: configure-defaults: configure-tools: init: generate-classes: Created dir: C:\projects\DataDistribution\DataDistribution\nukes-1.0.0\kingpin\output\gen\classes DataDistribution\nukes-1.0.0\kingpin\build.xml [120] Could not create task or type of type: ejbdoclet. Ant could not find the task or a class this task relies upon. This is common and has a number of causes; the usual solutions are to read the manual pages then download and install needed JAR files, or fix the build file: - You have misspelt 'ejbdoclet'. Fix: check your spelling. - The task needs an external JAR file to execute and this is not found at the right place in the classpath. Fix: check the documentation for dependencies. Fix: declare the task. - The task is an Ant optional task and optional.jar is absent Fix: look for optional.jar in ANT_HOME/lib, download if needed - The task was not built into optional.jar as dependent libraries were not found at build time. Fix: look in the JAR to verify, then rebuild with the needed libraries, or download a release version from apache.org - The build file was written for a later version of Ant Fix: upgrade to at least the latest release version of Ant - The task is not an Ant core or optional task and needs to be declared using <taskdef>. Remember that for JAR files to be visible to Ant tasks implemented in ANT_HOME/lib, the files must be in the same directory or on the classpath Please neither file bug reports on this problem, nor email the Ant mailing lists, until all of these causes have been explored, as this is not an Ant bug. BUILD FAILED (total time: 0 seconds)
Any ideas?
Thanks, -
16. Re: allow ant 1.6
jae77 Mar 24, 2004 3:02 PM (in response to jae77)hrm - i don't have any issues executing inside eclipse.
ant usually gives those messages when it can't find a jar on the classpath. i wonder if netbeans isn't properly respecting the values that the build sets up.
as a quick test, you could try copying the xdoclet libraries out of the thirdparty directory into wherever netbeans looks for the other ant jars and see if that corrects the problem.
making the change to the buildmagic.ent file to pass the version check would not cause this error.
do you have ant 1.6.0 installed on your machine and available on the path? could you confirm that the build works by doing this:
ant clean most
(i think most is the proper tag, whatever happened to good old "dist")
and see if the build works. that will help narrow down if it's an ant problem or a netbeans ant problem. -
17. Re: allow ant 1.6
thepriz Mar 24, 2004 3:31 PM (in response to jae77)ant clean most works perfectly from the command line. It must be a netbeans problem. I would suggest we can check in this change because it seems to work perfectly.
-
18. Re: allow ant 1.6
jae77 Mar 24, 2004 4:00 PM (in response to jae77)ok - sounds good - i'll check in later tonight.
just as an fyi: this won't affect the normal build process that is run from the command line b/c that uses the ant libraries defined in the tools directory.
this change is just allowing ppl who use ide's that now ship w/ ant 1.6 as default to run the build process from inside the ide. -
19. Re: allow ant 1.6
sgwood Mar 31, 2004 10:09 PM (in response to jae77)
I don't see this change checked in. I am working happily with Eclipse 3.0 M8, which has Ant 1.6 in it.
No more running the build.sh or .bat!
I'll check it in now.
Sherman -
20. Re: allow ant 1.6
jae77 Apr 1, 2004 8:15 AM (in response to jae77)thx sherman - i totally spaced that last night when i checked my latest round of news template conversions.