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