Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ant compilation

 
venkata chandra
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic