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 50179] New: Properties declared as "local" are not accessible via propertyset
Date Fri, 29 Oct 2010 08:11:21 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=50179

           Summary: Properties declared as "local" are not accessible via
                    propertyset
           Product: Ant
           Version: 1.8.1
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: major
          Priority: P2
         Component: Core tasks
        AssignedTo: notifications@ant.apache.org
        ReportedBy: isaac@shabtay.com


Run this:

<?xml version="1.0" encoding="UTF-8"?>
<project name="test">
    <target name="tst">
        <local name="loc"/>
        <property name="loc" value="hello"/>
        <echoproperties>
            <propertyset>
                <propertyref name="loc"/>
            </propertyset>
        </echoproperties>
    </target>
</project>

You'd expect the property "loc" to be printed, but it doesn't.
Comment-out the "local" task and it will work as expected.

I'd consider setting severity here to "criticial" as it indeed looks like
something insanely bad.

-- 
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