aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes Way to simply javac task? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Way to simply javac task?" Watch "Way to simply javac task?" New topic
Author

Way to simply javac task?

Dave Alvarado
Ranch Hand

Joined: Jul 02, 2008
Posts: 436
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

Joined: Jun 24, 2003
Posts: 3274
    
    5

Have you tried using IVY?


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15641
    
  15

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
Dave Alvarado
Ranch Hand

Joined: Jul 02, 2008
Posts: 436
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

Joined: Jun 25, 2001
Posts: 15641
    
  15

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

Joined: Sep 29, 2008
Posts: 12617

(Even if you *were* going to do it this way, is naming things "lib30" really helpful?!)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Way to simply javac task?
 
Similar Threads
[Ant]Does not run java task
Web App Deployment using Ant
Testing using ANT
ANT Complilation Issue
Not able to display starting jsp page index.jsp