[
https://jira.codehaus.org/browse/MRESOURCES-111?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Olivier Lamy closed MRESOURCES-111.
-----------------------------------
Resolution: Fixed
Fix Version/s: 2.6
Assignee: Olivier Lamy
> 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