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 45226] New: subant overrides properties
Date Wed, 18 Jun 2008 09:29:50 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=45226

           Summary: subant overrides properties
           Product: Ant
           Version: 1.7.0
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core tasks
        AssignedTo: notifications@ant.apache.org
        ReportedBy: remie@backbase.com


Consider the following scenario:

<subant ...>
  <property name="a" value="someValue" />
  <property file="my.properties" />
</subant>

with the my.properties file having the following values:

# My.Properties
a=differentValue
b=This is ${a}
# End

If you output the property ${b} in the script you run using subant, the output
will read: "this is differentValue".

I would expect the output to be "this is someValue" since property ${a} has
already been declared before the property file was included and should not be
overwritten by the declaration in the property file.


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