https://issues.apache.org/bugzilla/show_bug.cgi?id=48768

           Summary: Properties wrongly read from file or not update during
                    read
           Product: Ant
           Version: 1.8.0
          Platform: PC
        OS/Version: Solaris
            Status: NEW
          Severity: major
          Priority: P2
         Component: Core tasks
        AssignedTo: [email protected]
        ReportedBy: [email protected]


>cat test.txt

bbb=val2
aaa=val1

<target name="test">
    <property file="test.txt"/>
       <echo> aaa: ${aaa} bbb: ${bbb}</echo>
    <propertyfile file="test.txt">
      <entry key="bbb" value="dummy"/>
    </propertyfile>

    <property file="test.txt" prefix="xxx"/>
      <echo> aaa: ${xxx.aaa} bbb: ${xxx.bbb}</echo>
 </target>

ant -version
Apache Ant version 1.8.0 compiled on February 1 2010

ant test
Buildfile: /home/ex60744/Projects/BuildSystem/build.xml

test:
     [echo]  aaa: val1 bbb: val2
[propertyfile] Updating property file:
/home/ex60744/Projects/BuildSystem/test.txt
     [echo]  aaa: val1 bbb: val2

BUILD SUCCESSFUL
Total time: 2 seconds

cat test.txt
#Thu, 18 Feb 2010 18:07:28 +0100
bbb=dummy
aaa=val1

Why the property is not updated in memory although it is updated in a file. 
This example works correctly with ant 1.7.1

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

Reply via email to