ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicolas Vervelle <nicolas.verve...@steria.com>
Subject Re: Force javac to overwrite class files?
Date Thu, 08 Sep 2005 09:12:16 GMT
Hi,

Why don't you simply delete your .class files before the second call to 
javac ?

Richard Gaywood wrote:

>Hi list! 
>
>I'm modifiying a slightly complex existing[1] build script for our J2EE web 
>services app. I currently have two compile targets which compile class files 
>with or without Emma modification. [aside for those who haven't seen it: 
>Emma is a code coverage calculation tool that works by modifying the .class 
>directly before it runs]
>
>So, during our nightly build-and-unit-test cycle, Anthill pulls down the 
>source from (groan) Visual SourceSafe, Ant kicks off, compiles them, 
>instruments the classfiles, runs unit tests. It should then recompile the 
>code, skip the Emma instrumentation, compile a WAR, and deploy to a staging 
>server. But, because the timestamps of the java files don't change, the 
>second <javac> invocation (without the Emma instrumentation) doesn't compile 
>anything -- which means Emma instrumented class files end up in the WAR, 
>which doesn't work at all.
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message