ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject Re: [Bug 28444] - Import: Target Handling Bug
Date Thu, 12 May 2005 20:43:01 GMT
--- Stefan Bodewig <bodewig@apache.org> wrote:
[SNIP]
> Turning Matt's idea around:
> 
> (1) Target "foo" is in project "bar".
> (2a) There already is a target "foo" from the file
> that imported
>      "bar", use the current code, we are ready,
> "bar.foo" is there.
> (2b) There is no other target "foo" yet.  Create an
> empty placeholder
>      target "bar.foo" that depends on "foo".
> 
>      If then later a target "foo" is found in the
> importing buildfile,
>      replace the placeholder "bar.foo" with the
> initial "foo" target.
> 
> Wouldn't that work, stay backwards compatible and
> hide "bar." whenever
> possible?

You confused me with the "later."  Even though this
could theoretically happen via 3rd-party API calls, we
wouldn't be able to detect it, would we?  Our local
targets are known before we actually execute a
top-level (target "") import, right?  So what I take
away from the above is that when there is only one
"foo", the real work lives in "foo" while "bar.foo"
depends on "foo" (my idea turned around).  But say the
importER explicitly depends on bar.foo .  Isn't this
still going to pollute the log in the opposite way my
implementation would? :) i.e.

[foo]:

[bar.foo]:

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



		
Discover Yahoo! 
Find restaurants, movies, travel and more fun for the weekend. Check it out! 
http://discover.yahoo.com/weekend.html 


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


Mime
View raw message