ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom Cleghorn <tclegh...@cambridge.org>
Subject Unexpected mkdir and id behaviour
Date Fri, 22 Nov 2013 10:45:37 GMT
Hi,

I tried to use the following in 1.9.2:

<mkdir dir="${toString:output}/contact-sheet" id="contact.root"/>
<mkdir dir="${toString:contact.root}/${id}" id="contact.id"/>
<mkdir dir="${toString:contact.id}/META-INF" id="contact.metainf"/>
<mkdir dir="${toString:contact.id}/OEBPS" id="contact.oebps"/>

where $output is a plain text property supplied to the build, expecting to 
get four new directories, each created under the previous, and to have 
four accompanying ids to refer back to them later with.

Instead the ids resolve to things like 
"C:\outputpath\org.apache.tools.ant.taskdefs.Mkdir@3e0339\1234" (for 
$contact.id where $id is 1234). Echoing either $toString:contact.id or 
$ant.refid:contact.id returns the same in both cases. I haven't yet tried 
previous Ant versions.

Is this the correct behaviour? If so, what am I misunderstanding? Thanks!

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message