ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebastian Ssmoller" <sebastian.ssmol...@gmx.net>
Subject <ant/> and <propertyset/>
Date Mon, 16 Aug 2004 12:59:48 GMT
hi,
<ant/> and properties one more time :)

in http://marc.theaimsgroup.com/?l=ant-user&m=109222437520584&w=2 i learned
that <property/> is inherited when having call-chains of <ant/> and
<antcall/>.

in http://marc.theaimsgroup.com/?l=ant-user&m=109230260004928&w=2 i learned
that <propertyset/> is another way to "pass down" properties.

but now it seems that properties passed by <propertyset/> are NOT inherited
(?) In my project these properties are passed exactly one "level" into the
newly created project.

whats wrong ?

btw: i had a short look at the code. in Ant.java i read:

    private void overrideProperties() throws BuildException {
        // remove duplicate properties - last property wins
        // Needed for backward compatibility
        Set set = new HashSet();
        for (int i = properties.size() - 1; i >= 0; --i) {
 
this behaviour (read the comment) is exactly the opposite of what is
expected i guess because the general ant behaviour is : first property wins 
... (just a thought).

thx
regards,
seb



-- 
NEU: WLAN-Router für 0,- EUR* - auch für DSL-Wechsler!
GMX DSL = supergünstig & kabellos http://www.gmx.net/de/go/dsl


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


Mime
View raw message