DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40561>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40561

           Summary: property expansion troubles in property files
           Product: Ant
           Version: 1.6.5
          Platform: Other
        OS/Version: Windows XP
            Status: NEW
          Severity: major
          Priority: P2
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: [EMAIL PROTECTED]


Properties values are not always expanded properly in property files like in
following example.

build.xml (snippet)
=========

<property file="default.properties" prefix="project" />
<echo>interfaces.format=${project.interfaces.format}</echo>
<echo>factories.format=${project.factories.format}</echo>
<echo>foo=${project.foo}</echo>

default.properties (snippet)
==================

interfaces.package=model
interfaces.prefix=
interfaces.suffix=BO
interfaces.format={1}.${project.interfaces.package}.${project.interfaces.prefix}{2}${project.interfaces.suffix}

factories.package=factory
factories.prefix=
factories.suffix=BOFactory
factories.format={1}.${project.factories.package}.${project.factories.prefix}{2}${project.factories.suffix}

foo={1}.${project.factories.package}.${project.factories.prefix}{2}${project.factories.suffix}

Output
======
interfaces.format={1}.model.{2}BO
factories.format={1}.${project.factories.package}.{2}${project.factories.suffix}
   
foo={1}.factory.{2}BOFactory

Bug
====

* "interfaces.format" value is ok (and it is similar to "factories.format")
* All values are not expanded in "factories.format" property
* But the same expression expand properly when assigned to "foo"

Changing properties names can affect this behaviour.

Workaround: choose different names. Good luck...

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

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to