ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 49891] New: Nested subant does not allow override of properties.
Date Tue, 07 Sep 2010 13:22:09 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=49891

           Summary: Nested subant does not allow override of properties.
           Product: Ant
           Version: 1.8.1
          Platform: Macintosh
            Status: NEW
          Severity: regression
          Priority: P2
         Component: Core tasks
        AssignedTo: notifications@ant.apache.org
        ReportedBy: bhale@vmware.com


When using <subant/> more than one level deep, properties are not overridden
properly after the first level.

The test case works as follows:

Level 1:
  * A property is defined
  * <subant/> is called redefining the value of the property

Level 2:
 * The property is expected to be the redefined value (and is for 1.7.x and
1.8.x)
 * <subant/> is called redefining the value of the property again.

Level 3:
 * The property is expected to be the redefined value (and is for 1.7.x but is
*not* for 1.8.x)

Using the attached build.xml file you'll see an output of the following with
1.7.1

Buildfile: build.xml

level-1:

level-2:
     [echo] Expecting 'bravo', actual 'bravo'

level-3:
     [echo] Expecting 'charlie', actual 'charlie'

BUILD SUCCESSFUL
Total time: 0 seconds

You'll see the following with 1.8.1.
Buildfile: /Users/benhale/Desktop/build.xml

level-1:

level-2:
     [echo] Expecting 'bravo', actual 'bravo'

level-3:
     [echo] Expecting 'charlie', actual 'bravo'

BUILD SUCCESSFUL
Total time: 0 seconds

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

Mime
View raw message