wood burning stoves 2.0*
The moose likes Ant, Maven and Other Build Tools and the fly likes Multiple dist directories in 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 "Multiple dist directories in "javac" tasks in Ant" Watch "Multiple dist directories in "javac" tasks in Ant" New topic

Multiple dist directories in "javac" tasks in Ant

Cris Smith

Joined: Jul 24, 2013
Posts: 1
Hi, I have simple question, if is possible use multiple directories in "javac" Ant task, something like this:

I'd avoid create unnecessary temporary directories and copy files.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15952

That wouldn't make sense. The java compiler takes source files and produces class files on a 1-to-1 basis. What would you expect a multi-targeted compile to do? Replicate all of the outputs in all of the directories? Or randomly scatter classes among them?

If you just want to make multiple copies of a set of classes, just run a copy after the compile. That's the Unix approach - don't make 1 complex specialized program when you can make 2 simple general ones do the job.

Customer surveys are for companies who didn't pay proper attention to begin with.
I agree. Here's the link: http://aspose.com/file-tools
subject: Multiple dist directories in "javac" tasks in Ant
Similar Threads
how to create WAR files
"Could not find main class" problem in jar file
ant javac task not copying directory with no java files
Using Jikes with ANT
how to use fileset in Javac task