Combining multiple Jar files
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Foo_Bar
Posted On:   Thursday, July 25, 2002 12:33 PM

I'm new to ant, so this may be a bad question, but: I set up my classpath like so: I then set up my compile target like this: destdir="${build}"> And this works fine. Now, I want to build a jar file which contains all of my required classes - all of my own, plus the contents of the jar files on my classpath. This works, but its ugly. Is there any possible way to build a jar out of other jars, using my path object?    More>>

I'm new to ant, so this may be a bad question, but:


I set up my classpath like so:


















I then set up my compile target like this:




destdir="${build}">







And this works fine.


Now, I want to build a jar file which contains all of my required classes - all of my own, plus the contents of the jar files on my classpath.




















This works, but its ugly. Is there any possible way to build a jar out of other jars, using my path object?

Or should I be using some different object for my classpaths?

   <<Less

Re: Combining multiple Jar files

Posted By:   Erik_Hatcher  
Posted On:   Tuesday, July 30, 2002 11:12 AM

You could create a and reuse that in both your classpath and to keep things a little cleaner, but otherwise that is how it works currently.
About | Sitemap | Contact