Forums Register Login

Way to simply javac task?

+Pie Number of slices to send: Send
Hi,

I'm using Ant 1.7 on Mac 10.6.3. In my javac task, I'm loading each JAR into the classpath individually, like so ...



Is there a way to simplify the "libs" property so I just include all JARs within the directory? Grateful for any syntax or examples, - Dave
+Pie Number of slices to send: Send
Have you tried using IVY?
+Pie Number of slices to send: Send
Normally, you'd specify complex classpaths for compiling (and execution) using path elements, not as a string property. I think, as a matter of fact, that you can do a wildcard inclusion of jars in a directory if you do it that way.
+Pie Number of slices to send: Send
Is this related to Ant? If so, could you provide an example of how I can avoid listing all those JARs and simply list something that says "include all JARs from this directory"? Thanks, - Dave
+Pie Number of slices to send: Send
 

Dave Alvarado wrote:Is this related to Ant? If so, could you provide an example of how I can avoid listing all those JARs and simply list something that says "include all JARs from this directory"? Thanks, - Dave



http://ant.apache.org/manual/using.html#path
+Pie Number of slices to send: Send
(Even if you *were* going to do it this way, is naming things "lib30" really helpful?!)
Get meta with me! What pursues us is our own obsessions! But not this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1071 times.
Similar Threads
Web App Deployment using Ant
ANT Complilation Issue
[Ant]Does not run java task
Testing using ANT
Not able to display starting jsp page index.jsp
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 06:16:00.