Hi,
The use of the ${DSTAMP} tag works well with the jar and copy tasks but
failed when using it for file name in java/move or delete tasks.
While trying, Ant says that the file does not exist.
Am I doing something bad ?
Here is a snippet of the build.xml file :
<snip>
<!-- this is working -->
<target name="create-client-jar" depends="all">
<mkdir dir="${temp}"/>
<jar jarfile="${temp}/calendrier-client-${DSTAMP}.jar"
manifest="${build}/META-INF/MANIFEST.MF">
<fileset dir="${build}" excludes="**/ejb/cmp/**,**/META-INF/*"/>
</jar>
<copy file="${temp}/calendrier-client-${DSTAMP}.jar"
todir="${dist}"/>
<delete dir="${temp}"/>
<echo>Distrib JAR file created.</echo>
</target>
<!-- -->
<!-- this is not working -->
<target name="run-jar">
<java jar="${dist}/calendrier-client-${DSTAMP}.jar" fork="yes">
</java>
</target>
<!-- -->
</snip>
The MANIFEST.MF file with the correct tags exists in the .jar.
The file exists in the specified directory (${dist})
The problem is really from the ${DSTAMP} tag.
I've tried the same code without the ${DSTAMP} tag and it's up and
running but i'd like to be able to delete/move file from folders.
Thanks for your help,
ionel
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>