ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ionel Gardais <>
Subject ${DSTAMP} tag not used in java/delete/move tasks
Date Tue, 04 Jun 2002 08:19:43 GMT

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 :
<!-- this is working -->
  <target name="create-client-jar" depends="all">
    <mkdir dir="${temp}"/>
    <jar jarfile="${temp}/calendrier-client-${DSTAMP}.jar"
      <fileset dir="${build}" excludes="**/ejb/cmp/**,**/META-INF/*"/>
    <copy file="${temp}/calendrier-client-${DSTAMP}.jar"
    <delete dir="${temp}"/>
    <echo>Distrib JAR file created.</echo>
<!-- -->

<!-- this is not working -->
  <target name="run-jar">
    <java jar="${dist}/calendrier-client-${DSTAMP}.jar" fork="yes">
<!-- -->

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,

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

View raw message