Maven Resources Plugin
  1. Maven Resources Plugin
  2. MRESOURCES-111

escapeWindowsPath doesn't work when applying properties

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.4.1
    • Fix Version/s: 2.6
    • Component/s: None
    • Labels:
      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.

      1. mydemo.zip
        5 kB
        Jochen Walz

        Issue Links

          Activity

          Jochen Wiedmann created issue -
          Dennis Lundberg made changes -
          Field Original Value New Value
          Link This issue depends upon MSHARED-179 [ MSHARED-179 ]
          Olivier Lamy (*$^¨%`£) made changes -
          Fix Version/s 2.6 [ 17177 ]
          Assignee Olivier Lamy [ olamy ]
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Closed [ 6 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 12:20:57 UTC 2015 [ 1428236457206 ]
          Mark Thomas made changes -
          Link This issue depends upon MSHARED-179 [ MSHARED-179 ]
          Mark Thomas made changes -
          Workflow jira [ 12724932 ] Default workflow, editable Closed status [ 12756663 ]
          Mark Thomas made changes -
          Project Import Mon Apr 06 01:00:00 UTC 2015 [ 1428282000487 ]
          Mark Thomas made changes -
          Link This issue depends upon MSHARED-179 [ MSHARED-179 ]
          Mark Thomas made changes -
          Workflow jira [ 12962696 ] Default workflow, editable Closed status [ 12999099 ]

            People

            • Assignee:
              Olivier Lamy (*$^¨%`£)
              Reporter:
              Jochen Wiedmann
            • Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development