Hi,
I am trying to output the timestamp after each step (target). When excuting the below build file by ant testtime i get the output:
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 the build file below:
<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" />
Why do I get always the same timestamp ?