Meaningless Drivel is fun!*
The moose likes Ant, Maven and Other Build Tools and the fly likes ant compilation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "ant compilation" Watch "ant compilation" New topic

ant compilation

venkata chandra

Joined: Dec 11, 2002
Posts: 8
I just tried to install and run successfully the latest version of ant( I trid very basic compilation task on the build.xml and when executed, the tool is compiling all the files in the directory everytime I run the task. I was hoping that it compiles *ONLY* the changed files ? Is there something that I am doing wrong here ? Can somebody throw light ?
Amol Desai
Ranch Hand

Joined: Jan 29, 2003
Posts: 82
From the ant documentation :
<javac> task:
Only Java files that have no corresponding .class file or where the class file is older than the .java file will be compiled.
venkata chandra

Joined: Dec 11, 2002
Posts: 8
Thanks for reading out from the documentation. My expectation too is the same. What am seeing is not that....And that is my problem. Can you suggest anything that may fix this. Any other suggestions from anybody else ?
I agree. Here's the link:
subject: ant compilation
Similar Threads
Can I debug in IDEA using ant to build?
hibernate and eclipse
run the java program by ant task
how to check the size of file
How to invoke an ant task? project.createTask?