aspose file tools*
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 Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "ant compilation" Watch "ant compilation" New topic
Author

ant compilation

venkata chandra
Greenhorn

Joined: Dec 11, 2002
Posts: 8
I just tried to install and run successfully the latest version of ant(1.5.3.1). 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 ?
Thanks
KR
Amol Desai
Ranch Hand

Joined: Jan 29, 2003
Posts: 82
Hi,
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.
-Amol
venkata chandra
Greenhorn

Joined: Dec 11, 2002
Posts: 8
Amol
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 ?
Thanks
KR
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ant compilation