[ https://jira.codehaus.org/browse/MRESOURCES-111?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=304537#comment-304537 ]
Jochen Wiedmann commented on MRESOURCES-111: -------------------------------------------- Recommended workaround: Use property files in XML format and replace Properties.load with Properties.loadFromXML. See http://www.ibm.com/developerworks/java/library/j-tiger02254/index.html > escapeWindowsPath doesn't work when applying properties > ------------------------------------------------------- > > Key: MRESOURCES-111 > URL: https://jira.codehaus.org/browse/MRESOURCES-111 > Project: Maven 2.x Resources Plugin > Issue Type: Bug > Affects Versions: 2.4.1 > Reporter: Jochen Wiedmann > Assignee: Olivier Lamy > Fix For: 2.6 > > Attachments: mydemo.zip > > > The attached project contains a property file > "src/test/main/hibernate.properties". I'd like to inject the projects build > path into that file. More precisely, I have a property "jdbc.url" in my > pom.xml, which looks like this: > > <jdbc.url>jdbc:derby:${project.build.directory}/derby-db;create=true</jdbc.url> > In hibernate.properties, I have > hibernate.connection.url=${jdbc.url} > Which resolves to > > hibernate.connection.url=jdbc:derby:C:\workspace\mydemo\target/derby-db;create=true > which is invalid, because the backslashes aren't escaped. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira