ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dominique Devienne" <>
Subject Re: Ant script for building Javadoc, is there a way to bundle common <link> tags?
Date Fri, 14 Mar 2008 14:00:08 GMT
On Fri, Mar 14, 2008 at 6:17 AM, Peter Reilly
<> wrote:
> I have a patch for macrodef which allows  macrodef to have (nearly)
>  arbitrary xml  fragments:
>  <macrodef name="thecommonlinks">
>   <sequential>
>     <!-- This part is very common : Start -->
>      <link offline="true" href=""
>       packagelistLoc="javadoc/j2se-1.5.0"/>
>      <link offline="true" href=""
>       packagelistLoc="javadoc/javaee-5"/>
>      <link href=""/>
>      <link href=""/>
>      <link href=""/>
>      <link href=""/>
>   </sequential>
>  </macrodef>

This is great Peter, except for the name maybe. Would it be possible
to keep <macrodef> for tasks and have a separate <fragmentdef> for XML
fragments to be used inside tasks or types? <fragmentdef> then can get
rid of the nested <sequential> and doesn't accept <attribute> and

Also, if the fragment contains ${prop} and @{prop}, which context is
used to replace these (if at all), the declaration point or the use
point? --DD

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

View raw message