This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Ant, Maven and Other Build Tools and the fly likes Compiled files are compiling again. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Compiled files are compiling again." Watch "Compiled files are compiling again." New topic
Author

Compiled files are compiling again.

hasan khan
Ranch Hand

Joined: Aug 04, 2003
Posts: 222

i have the following ant files, calling 'compileall' twice compiles the source files again, even though they are already compiled with the first call.

source for build.xml


common.xml, login.xml, admin.xml are similar.

source for admin.xml





SCJP, SCWCD
hasan khan
Ranch Hand

Joined: Aug 04, 2003
Posts: 222

please help, it is important for me
Guy Allard
Ranch Hand

Joined: Nov 24, 2000
Posts: 776
From the Ant manual:

Do not include part of your package structure in the srcdir attribute (or nested <src> elements), or Ant will recompile your source files every time you run your compile target.


Guy
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Compiled files are compiling again.
 
Similar Threads
Ant, windows xp, and a funky infinite loop
Why does reference refid="foo" torefid="bar" fails within an ant task?
target getting called more than once.
package javax.ejb does not exist
HOW TO COMPILE JAVA FILES PROGAMMATICALLY