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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]