ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jose Alberto Fernandez" <jalbe...@cellectivity.com>
Subject RE: DO NOT REPLY [Bug 28444] - Import: Target Handling Bug
Date Fri, 13 May 2005 13:08:27 GMT
> From: Peter Reilly [mailto:peterreilly@apache.org] 
> 
> Matt Benson wrote:
> 
> >I can't imagine a scenario where BC would be
> >compromised, but I'd be glad for an example.
> >
> >-Matt
> >
> >  
> >
> I was thinking of the example with multiple import files with 
> the same projectname/targetname.
> 
> example:
> a.xml <project><target name="t"><echo>a.xml</echo></target></project>
> b.xml <project><target name="t"><echo>b.xml</echo></target></project>
> c.xml <project><target name="t"><echo>c.xml</echo></target></project>
> build.xml
> <project name="p">
>    <import file="a.xml"/>
>    <import file="b.xml"/>
>    <import file="c.xml"/>
> </project>
> 
> In this case, ant 1.6.x (and my patch) will output.
> 
> ant t
>   will output "a.xml"
> ant p.t
>   will output "c.xml"
> 

Ok, your example confused me. What is p.t p is not imported, why would
we have a p.t target?
I do not understand why you get different answers for "p.t" and "t" is
the same target on
the same project (is it not?).

Did you meant <project name="p"> on the imported? Then I see what you
are saying.
Although it is probably difficult to avoid given the fact that <import>
is an
executed task. But hey, more reason for adding 'as' since otherwise
there is no
way to disambiguate appart from changing the imported files. :-P

Jose Alberto

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


Mime
View raw message