ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject RE: how to force recompile everything using javac task
Date Wed, 02 Jul 2008 00:30:01 GMT
Hi Raymond,

Thanks for your reply.
Actually I have two <javac> task in my build.xml. First <javac> task would 
compile everything from src dir "Adir" and jar it. Second <javac> task 
will compile a few java file from "Bdir" which could override some of 
first ones and create another jar again. If I put a delete task before 
second javac task, I would need to selectively delete some java classes 
instead of deleting the whole output directory which is a little bit 
complex :-). It would be nice if there is some other options to do this. 
I tried using "touch" java source before second <javac>. It works but it 
changes the source code modified time which is not desirable.


"Raymond Berg (ALLETE)" <> 
07/01/2008 07:22 PM
Please respond to
"Ant Users List" <>

"Ant Users List" <>

RE: how to force recompile everything using javac task

I'd have to go with the previous recommendations on this topic and say
that wiping *.class files would be the easiest solution here.

However, if there are other restrictions such as class files in the same
directory that can't be stripped because it was a packaged class or
whatever, well....that's a little worse. But this appears to be the most
common solution to this issue.



-----Original Message-----
From: [] 
Sent: Tuesday, July 01, 2008 2:06 AM
Subject: how to force recompile everything using javac task


how to force recompile everything using javac task?
Javac task always compare modify time with target classes. I want to 
recompile java source no matter target classes exists and newer.

Is there any options to achieve this?


To unsubscribe, e-mail:
For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message