As stated in the ANT doc:
Properties are immutable: whoever sets a property first freezes it for the
rest of the build; they are most definately not variable.
There are six ways to set properties:
* By supplying both the name and value attribute...."
I am setting in prepare, but when I call another target it does not have the
info:
<target name="prepare">
<!-- Create all the time & date stamps for the build and for the
directories
-->
<tstamp/>
<property name="FTSTAMP"
value="${DSTAMP}-${TSTAMP}"/>
<!-- Make all the directories after getting the
label from StarTeam
-->
<mkdir
dir="${drive}\${buildir}\${label}-${FTSTAMP}"/>
<mkdir
dir="${drive}\${buildir}\${label}-${FTSTAMP}\${brlabel}-${FTSTAMP}"/>
<property name="local.dist"
value="${drive}\${buildir}\${label}-${FTSTAMP}\${brlabel}-${FTSTAMP}"/>
<target name="CopyBRBuildArtifacts">
<description>
Target: This target copies the BR images
to the build directory.
</description>
<echo message="CopyBRBuildArtifacts local.dist:
${local.dist}"/>
<echo message="CopyBRBuildArtifacts FTSTAMP:
${FTSTAMP}"/>
As per ANT output:
CopyBRBuildArtifacts:
[echo] CopyBRBuildArtifacts local.dist: ${local.dist}
[echo] CopyBRBuildArtifacts FTSTAMP: ${FTSTAMP}
prepare:
[mkdir] Created dir: D:\br_builds\testlabel-20041103-1612
[mkdir] Created dir:
D:\br_builds\testlabel-20041103-1612\brtestlabel-20041103-1612
[echo] Prepare local.dist:
d:\br_builds\testlabel-20041103-1612\brtestlabel-20041103-1612
[echo] Prepare: 20041103-1612
I must be missing something, or is this a 1.6.2 problem, or has anyone seen
this issue?
I did this in 1.5.2, and it worked, but????
Does any one have an idea?
Thanks in advance!
Z