maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jochen Wiedmann (JIRA)" <j...@codehaus.org>
Subject [jira] Created: (MRESOURCES-111) escapeWindowsPath doesn't work when applying properties
Date Wed, 04 Nov 2009 14:53:55 GMT
escapeWindowsPath doesn't work when applying properties
-------------------------------------------------------

                 Key: MRESOURCES-111
                 URL: http://jira.codehaus.org/browse/MRESOURCES-111
             Project: Maven 2.x Resources Plugin
          Issue Type: Bug
    Affects Versions: 2.4.1
            Reporter: Jochen Wiedmann
         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 contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message