0
4

2 回答 2

3

In a property-file, the \ is an escape-character, which is used to escape all characters which have special meanings in the property-file-syntax, like a : here. It should be stripped of when reading the property file. Isn't it?

For exporting the value, maybe a simple <echo file="...">${java.home}</echo> instead of the property-file-export would be more useful?

于 2011-02-16T20:06:35.897 回答
0

这是解决此问题的方法:

<path id="property.toreplace.path">
    <pathelement path="${property.toreplace}"/>
</path>
<pathconvert targetos="unix" property="formatted.property.toreplace" refid="property.toreplace.path"/>
于 2011-02-23T06:18:01.550 回答