I have 2 vars that I need. first is DSTAMP with yyyy-MM-dd formatting and the other one is the buildNumber from my .build file. In a simple structure like this :
<project .....>
<property ....>
<target ....>
<target .....>
</project>
My question is, how can I set the ${build.number} and DSTAMP like a property? I've tried to do this :
<project .....>
<tstamp>
<format property="DSTAMP" pattern="yyyy-MM-dd" />
</tstamp>
<buildnumber file=".build"/>
<property ....>
<target ....>
<target .....>
</project>
I thought i could then access it with ${build.number} and ${DSTAMP} anywhere in my ant script but it says unexpected token. How can i store these properties to access them anywhere?
Ant version 1.5.4. It seems to accept it in Ant 1.6+ but I would rather not change my library just for this.