You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2008/08/29 17:26:32 UTC

DO NOT REPLY [Bug 45226] subant overrides properties

https://issues.apache.org/bugzilla/show_bug.cgi?id=45226


Stefan Bodewig <bo...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |notifications@ant.apache.org
         AssignedTo|notifications@ant.apache.org|bodewig@apache.org
           Severity|normal                      |enhancement
          Component|Core tasks                  |Documentation




--- Comment #1 from Stefan Bodewig <bo...@apache.org>  2008-08-29 08:26:32 PST ---
unfortunately your expectation collides with backwards compatibility.

For historical reasons the last <property> nested into <ant> wins if multiple
properties use the same name.  see the last hunk in
http://svn.eu.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Ant.java?r1=275211&r2=275212
where Peter explicitly mentions backwards compatibility (more details probably
are in the mailing list).

<subant> inherits this behavior which should be documented.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
You are the assignee for the bug.