Uploaded image for project: 'Maven Ant Tasks (RETIRED)'
  1. Maven Ant Tasks (RETIRED)
  2. MANTTASKS-179

Variables nested in pom.xml are not being interpolated

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.0
    • 2.1.1
    • pom task
    • None

    Description

      My build project parses a project's pom.xml to expose the data to various ant tasks. After parsing the pom.xml, the ant tasks use the normal variable syntax such as ${project.build.directory} to dig into the pom's contents.

      The value of this specific element in my project is "${basedir}/target". In 2.0.10, the resulting value of this lookup will be fully resolved to the project's directory. With 2.1.0, the value resolves to the literal "${basedir}/target" and the build fails.

      2.1.0 failure with a ${project.build.directory} value of "${basedir}\target":

      java.io.FileNotFoundException: c:\Projects\ProjectName\${basedir}\target\version.jsp (The system cannot find the path specified)

      Attachments

        Issue Links

          Activity

            People

              hboutemy Herve Boutemy
              jstano Joe Stano
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: