Uploaded image for project: 'Maven Resources Plugin'
  1. Maven Resources Plugin
  2. MRESOURCES-111

escapeWindowsPath doesn't work when applying properties

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.4.1
    • 2.6
    • None
    • None

    Description

      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.

      Attachments

        1. mydemo.zip
          5 kB
          Jochen Walz

        Issue Links

          Activity

            People

              olamy Olivier Lamy
              jochen.wiedmann@gmail.com Jochen Wiedmann
              Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: