开发者

Writing a path to a property file using ant

I am writing a file path to a property file using ant property file task,below is my code snippet of ant

<propertyfile  file="WeblogicDomain.properties" comment="Weblogic Properties Below">
    <entry  key="path" value="C:/bea"/>
</propertyfile>

In the output properties i.e.., WeblogicDomain.properties file the path varies as shown below

path=C\:/bea

i was puzzled w开发者_Python百科ith this, is there a solution to resolve this & place the exact path as mentioned in source code

My ant version : 1.6.5


This is how java.util.Properties works. The colon : and equals = characters are used as name value delimiters so colons are escaped when part of the key or value and not the delimiter.

See java.util.Properties.load(Reader) for more.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜