How to create a jar file from ant?
3 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Garrett_Smith
Posted On:   Friday, October 18, 2002 08:24 AM

It doesn't get executed:

			





Why?

Re: How to create a jar file from ant?

Posted By:   Anonymous  
Posted On:   Tuesday, October 29, 2002 03:44 AM

If you would print the error message we can say more. I think the error message is like "jar cannot include itself". So you should use


excludes="registration.jar" />


That´s because the jar file is placed in the current directory and then all directories and files - and therefore the jar itself, too - are added to the jar. The excludes-attribute prevents from that (or you use filesets).

Re: How to create a jar file from ant?

Posted By:   indian_dmx  
Posted On:   Friday, October 18, 2002 05:26 PM

try specifying a fileset.

Re: How to create a jar file from ant?

Posted By:   Greg_Ostravich  
Posted On:   Friday, October 18, 2002 03:38 PM

It looks OK to me. Mine is a little different than yours but it looks like you have the right stuff.


How are you invoking the target?
What happens when you type this:


ant jar



Try adding an echo message to see if it's hitting the target.

For example:



About | Sitemap | Contact