The org.jboss.util.propertyeditor.PropertiesEditor which is what should be used for an attribute of type java.util.Properties does replace ${x} property references in values. The problem is that calling setProperty with the replacement value is not using an escaped string and so the win32 backslash is seen as a char escape sequence. Create a jira issue for this.


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Scott M Stark
Sent: Thursday, June 09, 2005 7:17 AM
To: jboss-development@lists.sourceforge.net
Subject: [JBoss-dev] FW: Variable expansion when parsing XML config files

 


From: Bela Ban
Sent: Thursday, June 09, 2005 7:06 AM
To: The Core
Subject: Variable expansion when parsing XML config files

When I use the ${jboss.server.data.dir} variable in the example below, it is correctly expanded:
<attribute name="bla">${jboss.server.data.dir}</attribute>

However, when I use it in a Properties attribute, the expansion removes slashes and backslashes, e.g. in the example below:
<attribute name="CacheLoaderConfig">
    location = ${jboss.server.data.dir}/myCache
</attribute>

, I get c:JBoss3.2.7serverdefaultdata/myCache.

Looks like a bug in the properties impl ?
-- 
Bela Ban
Lead JGroups / JBossCache
callto://belaban

Reply via email to