J'essaie d'afficher l'horodatage après chaque étape (cible). Lorsque le fichier ci-dessous Executing de construction par la fourmi testtime je reçois la sortie:Fichiers de construction apache ant
Buildfile: build.xml
testdepend1:
[echo] ****** Start: test depend 1 ******
[echo] ****** Finish: test depend 1******
[echo] 02/12/2009 11:58:07 AM
testdepend2:
[echo] ****** Start: test depend 2 ******
[echo] ****** Finish: test depend 2******
[echo] 02/12/2009 11:58:07 AM
testdepend3:
[echo] ****** Start: test depend 3 ******
[echo] ****** Finish: test depend 3******
[echo] 02/12/2009 11:58:07 AM
Execting le fichier de construction ci-dessous:
<?xml version="1.0" ?>
<!-- ==================================================================== -->
<!-- Sample Propagation Ant Script -->
<!-- ==================================================================== -->
<project name="Portal Propagation Ant Tasks" basedir="." default="usage">
<tstamp>
<format property="TODAY_UK" pattern="MM/dd/yyyy hh:mm:ss aa" locale="en,UK" unit="second"/>
</tstamp>
<target name="testdepend1" description="test depend1">
<echo message="****** Start: test depend 1 ******" />
<sleep seconds="10"/>
<echo message="****** Finish: test depend 1******" />
<echo>${TODAY_UK}</echo>
</target>
<target name="testdepend2" description="test depend2">
<echo message="****** Start: test depend 2 ******" />
<sleep seconds="10"/>
<echo message="****** Finish: test depend 2******" />
<echo>${TODAY_UK}</echo>
</target>
<target name="testdepend3" description="test depend3">
<echo message="****** Start: test depend 3 ******" />
<sleep seconds="10"/>
<echo message="****** Finish: test depend 3******" />
<echo>${TODAY_UK}</echo>
</target>
<target name="testtime" depends="testdepend1, testdepend2, testdepend3" description="output a timestamp" />
</project>
Pourquoi ai-je toujours le même horodatage?