ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 48825] New: Project.setProperty(String,String) no longer overrides an existing definition
Date Fri, 26 Feb 2010 17:39:25 GMT

           Summary: Project.setProperty(String,String) no longer overrides
                    an existing definition
           Product: Ant
           Version: 1.8.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: Core

Probably this method should be deprecated and its usages in XMLProperty and the
P4 tasks cleaned up, but in 1.8.0 it still exists and claims that

"Any existing property of the same name is overwritten, unless it is a user

This does not seem to be true:

<project basedir="." default="x">
  <target name="x">
    <echo file="">
      public class Override extends {
        protected void addProperty(String n, String v) {
          getProject().setProperty(n, v);
    <javac includeantruntime="true" srcdir="." destdir="."
    <taskdef name="override" classname="Override" classpath="."/>
    <property name="p" value="1"/>
    <override name="p" value="2"/>

prints 2 (as expected) in Ant 1.7.1, but 1 in Ant 1.8.0.

I did not see anything in WHATSNEW about this either.

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

View raw message