Uploaded image for project: 'Maven Antrun Plugin'
  1. Maven Antrun Plugin
  2. MANTRUN-36

Esccape property replacement inside quote

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1
    • 1.1
    • None

    Description

      The propoerties placed not alone inside quotes are not correctly interpreted. For example :
      <property name="myProp" value="OK" />
      <echo message="alone in quote :"/>
      <echo message="${myProp}"/>
      <echo>not alone in text ${myProp}.</echo>
      <echo message="not alone in quote ${myProp}."></echo>
      <fail unless="myProp"/>

      Succeed and print :
      [echo] alone in quote :
      [echo] OK
      [echo] not alone in text OK.
      [echo] not alone in quote null.

      While executed directly into ant prints :
      [echo] alone in quote :
      [echo] OK
      [echo] not alone in text OK.
      [echo] not alone in quote OK.

      You can find in attachment the pom.xml and the ant.xml I used.

      Attachments

        1. MANTRUN-36.patch
          8 kB
          Carlos Sanchez Gonzalez
        2. MANTRUN-36.patch
          9 kB
          Scokart Gilles
        3. pom.xml
          1 kB
          Scokart Gilles
        4. ant.xml
          0.3 kB
          Scokart Gilles

        Issue Links

          Activity

            People

              carlos Carlos Sanchez Gonzalez
              gscokart Scokart Gilles
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: