ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Reilly" <peter.kitt.rei...@gmail.com>
Subject Re: ant.file.{projectname} property
Date Thu, 05 Oct 2006 11:46:55 GMT
On 10/5/06, Jan.Materne@rzf.fin-nrw.de <Jan.Materne@rzf.fin-nrw.de> wrote:
> >Hi,
> >I have been looking at
> >http://issues.apache.org/bugzilla/show_bug.cgi?id=39920
> >and realized that the setting of ant.file.{projectname} is a
> >little stange, if an imported project does not have a project name.
> >For example:
> >a.xml:
> ><project/>
> >
> >build.xml
> ><project name="my-project">
> >  <echo>ant.file.my-project is ${ant.file.my-project}</echo>
> >  <import file="a.xml"/>
> >  <echo>ant.file.my-project is ${ant.file.my-project}</echo> </project>
> >
> >The output is:
> >     [echo] ant.file.my-project is ....\build.xml
> >     [echo] ant.file.my-project is ....\a.xml
> >
> >Which is a little strange - it also makes using
> >ant.file.{projectname} useless.
> >
> >I propose to change the logic slightly in that the "nameless"
> >project will set the ant.file.null property always and not
> >just when there is no current project name.
>
> What to do if you have multiple included projects without names?
>
>
> a.xml:  <project/>
> b.xml:  <project/>
> c.xml:  <project name="master">
>                 <import file="a.xml"/>
>                 <import file="b.xml"/>
>                 <echoproperties prefix="ant.file"/>
>             </project>
>
> Jan
Exactly as it does at the moment, silently overwrite
ant.file.null
Peter
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
> For additional commands, e-mail: dev-help@ant.apache.org
>
>

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


Mime
View raw message