dcsimg
Task classpath problem
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Jemimah_Peterson
Posted On:   Wednesday, May 22, 2002 07:07 AM

Me again... Ok, the problem is this: I modified the Copy and the Record files to spit out XML rather than plaintext. I have 3 new Files: XMLCopy.java, XMLRecorder.java XMLRecorderEntry.java. I stick these in the directory c:antsrcsrcmainorgapache oolsant askdefs And they compile fine into the Ant.jar file. When I run the task it works fine: <?xml version="1.0"?> [...] But when I try to take the classfiles out of the Ant.jar and pack them into a new jar file I cannot get it to work. I have the files compressed in a jar file in the structure ant/extensions/    More>>

Me again...


Ok, the problem is this:

I modified the Copy and the Record files to spit out XML rather than plaintext.

I have 3 new Files: XMLCopy.java, XMLRecorder.java XMLRecorderEntry.java.

I stick these in the directory

c:antsrcsrcmainorgapache oolsant askdefs
And they compile fine into the Ant.jar file. When I run the task it works fine:


<?xml version="1.0"?>





[...]




But when I try to take the classfiles out of the Ant.jar and pack them into a new jar file I cannot get it to work.

I have the files compressed in a jar file in the structure
ant/extensions/

this is the code


<?xml version="1.0"?>





I cannot get this to work. I can guarantee that the classpath is correct and that the jar file is directly referenced from the classpath.

I have also tried adding the to the taskdef, but to no avail.


Thanks in advance for the assistance.

Regards

J

   <<Less

Re: Task classpath problem

Posted By:   Erik_Hatcher  
Posted On:   Friday, May 24, 2002 07:20 AM

Have you tried putting your new JAR in ANT_HOME/lib? Ant has some classloader issues that get in the way of having an empty system classpath, unfortunately.
About | Sitemap | Contact