Hello Tom,

the id attribute in ant is generally used to reference types, for instance 
<fileset dir="src" id="srcfileset"/>

yo need to define properties to do what you want like :

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

Regards,

Antoine

On Nov 22, 2013, at 5:45 AM, Tom Cleghorn wrote:

> 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-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org

Reply via email to