maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carlos Sanchez (JIRA)" <j...@codehaus.org>
Subject [jira] Closed: (MANTRUN-36) Esccape property replacement inside quote
Date Sun, 01 Jan 2006 20:33:12 GMT
     [ http://jira.codehaus.org/browse/MANTRUN-36?page=all ]
     
Carlos Sanchez closed MANTRUN-36:
---------------------------------

      Assign To: Carlos Sanchez
     Resolution: Fixed
    Fix Version: 1.1

Applied patch but keeping backwards compatibility. It could be a better implementation, but
this works for all it tests.

> Esccape property replacement inside quote
> -----------------------------------------
>
>          Key: MANTRUN-36
>          URL: http://jira.codehaus.org/browse/MANTRUN-36
>      Project: Maven 2.x Antrun Plugin
>         Type: Bug

>     Versions: 1.1
>     Reporter: Gilles Scokart
>     Assignee: Carlos Sanchez
>      Fix For: 1.1
>  Attachments: MANTRUN-36.patch, MANTRUN-36.patch, ant.xml, pom.xml
>
>
> 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.

-- 
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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Mime
View raw message