File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Reply 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: 434
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: 3268

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: 14460
    
    7

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: 434
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: 14460
    
    7

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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Way to simply javac task?
 
Similar Threads
Not able to display starting jsp page index.jsp
ANT Complilation Issue
Testing using ANT
[Ant]Does not run java task
Web App Deployment using Ant