ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 45226] New: subant overrides properties
Date Wed, 18 Jun 2008 09:29:50 GMT

           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

Consider the following scenario:

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

with the file having the following values:

# My.Properties
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:
------- You are receiving this mail because: -------
You are the assignee for the bug.

View raw message