ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Jack" <>
Subject <junit>&<javadoc> only if <javac> (... was RE: JAR/FTP only if <javac> (or <depend>) did anything)
Date Thu, 20 Jun 2002 19:43:34 GMT
Ok, so by commenting out my <manifest> for now I can reduce redundant JARs
and FTPs...

Any way to reduce redundant junits and/or javadocs? It seems (to me who is
no ant expert) that a property is the only way to carry context (such as
"nothing newly compiled") to things like junit (and perhaps javadoc, but...)
that can't really guess.

Any thoughts/suggestions would be appreciated.


 -----Original Message-----
From: 	Adam Jack []
Sent:	Thursday, June 20, 2002 12:45 PM
To:	''
Subject:	JAR/FTP only if <javac> (or <depend>)  did anything

I have my ANT script compiling, JARing, and FTPing. Unfortunately I can't
seem to find a way to link the latter two to "only if a compile occurred".

I see that FTP will only upload if the timestamps indicate a need, so if I
could "only re-JAR if needed" I think I'd be in good shape. Unfortunately I
see that JAR will allow create a JAR file only if it does not exist, or one
can force an update, but I can't see how to "update only if one the contents
indicate a need". Is there a way?

Alternatively [and what seems ant-like, but I am no expert] I could use
<task "jarEmAllUp" if="" --- if I could set a property with number of
compiled files -- or if compile --- with <javac> or if I could do similarly
or <depend>. Does any such thing exist?

Any suggestions? Thanks in advance.


Open Business Interchange: <>
The Revolutionary B2Bi Web Service ...

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

View raw message