ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "barf barf" <>
Subject Property dereference via id gives odd result
Date Tue, 25 Apr 2006 16:01:00 GMT
I am attempting to make use of the property deferencing trick described in 
"Java Development with Ant", and am seeing something odd. Here's a short 

<project name="test" basedir=".">
        <format property="${}.STARTTIME" pattern="MM/dd/yyyy 
hh:mm aa"
    <property name="project.ts" refid="ts"/>
    <echo message="${project.ts}"/>

produces the following output with ant 1.6.5:

Buildfile: build.xml


I realize that 'id' is not listed as an attribute for the format element, I 
just tried it to see if it
might work. I would have expected an error rather than what I got.

So, that said, anyone have a mean with ant along to set the tstamp property 
based on some other
property and then be able to access it ? Thanks!

Donít just search. Find. Check out the new MSN Search!

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

View raw message