I have a fairly simple compile target that looks something like this:
<target name="compile" depends="speech, enterprise">
<echo message="*** Compiling ${moduleName} module."/>
<mkdir dir="${build}"/>
<javac srcdir="${source}" destdir="${build}"
classpath="${myClassPath}" includes="${rootPath}/**/*.java"/>
<echo message="${moduleName} compiled ${buildTimestamp}"
file="${timestampFile}"/>
</target>
The problem is, I don't want the last <echo> task to be executed UNLESS the
prior <javac> task actually compiled something, and there doesn't seem to be
an easy way to detect whether any of the .class files have actually changed.
I understand about dependent TARGETS, but I can't seem to find any
information in the manuals or on the FAQ about dependent TASKS within a
single target. I realize that I could write a special task to handle this
case, but I am hoping that there is already a mechanism somewhere in Ant
that I have just missed. Any help would be greatly appreciated.
Thank you.
David McLeod
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>