• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Way to simply javac task?

 
Dave Alvarado
Ranch Hand
Posts: 436
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tried using IVY?
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18212
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Dave Alvarado
Ranch Hand
Posts: 436
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18212
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
(Even if you *were* going to do it this way, is naming things "lib30" really helpful?!)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic