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 40561] property expansion with prefix troubles in property files
Date Tue, 29 Jun 2010 16:57:36 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=40561

Jesse Glick <jglick@netbeans.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |jglick@netbeans.org
         Resolution|                            |FIXED
   Target Milestone|---                         |1.8.1

--- Comment #7 from Jesse Glick <jglick@netbeans.org> 2010-06-29 12:57:33 EDT ---
Peter's suggestion works as of 1.8.1 (also in 1.8.2 after the fix for bug
#49373), though not in 1.8.0 or 1.7.1:

---%<---
<property name="project.factories.package" value="foo"/>
<property file="default.properties" prefix="project"/>
<echo>factories.format=${project.factories.format}</echo>
---%<---
factories.package=factory
factories.prefix=
factories.suffix=BOFactory
factories.format={1}.${factories.package}.${factories.prefix}{2}${factories.suffix}
---%<---

=>

[echo] factories.format={1}.foo.{2}BOFactory

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