You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Vladimir Egorov <ve...@bea.com> on 2007/04/04 01:48:00 UTC

'$$' escape syntax does not work with macros?

Hi Ant Users,

It looks like '$$' escape syntax does not work with macrodefs.

I wrote the following test:

  <macrodef name="echotest">
    <attribute name="message" />
    <sequential>
      <echo message="@{message}" />
    </sequential>
  </macrodef>

  <target name="test">
    <echo message="$${basedir}" />
    <echotest message="$${basedir}" />
  </target>

The output is:

test:
     [echo] ${basedir}             --> as expected
     [echo] path/to/current/dir    --> bug?

Am I using this incorrectly, or is this a bug?

Thank you,

--Vladimir

Notice:  This email message, together with any attachments, may contain information  of  BEA Systems,  Inc.,  its subsidiaries  and  affiliated entities,  that may be confidential,  proprietary,  copyrighted  and/or legally privileged, and is intended solely for the use of the individual or entity named in this message. If you are not the intended recipient, and have received this message in error, please immediately return this by email and then delete it.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


RE: '$$' escape syntax does not work with macros?

Posted by Vladimir Egorov <ve...@bea.com>.
Thank you. I added
http://issues.apache.org/bugzilla/show_bug.cgi?id=42046

and updated
http://issues.apache.org/bugzilla/show_bug.cgi?id=41400

--Vladimir

> -----Original Message-----
> From: Jacob Kjome [mailto:hoju@visi.com]
> Sent: Tuesday, April 03, 2007 10:03 PM
> To: Ant Users List
> Subject: Re: '$$' escape syntax does not work with macros?
> 
> 
> Probably along the same lines as this bug...
> 
> properties get double expanded in <assertPropertyEquals>
> http://issues.apache.org/bugzilla/show_bug.cgi?id=41400
> 
> 
> Jake
> 
> At 06:48 PM 4/3/2007, you wrote:
>  >Hi Ant Users,
>  >
>  >It looks like '$$' escape syntax does not work with macrodefs.
>  >
>  >I wrote the following test:
>  >
>  >  <macrodef name="echotest">
>  >    <attribute name="message" />
>  >    <sequential>
>  >      <echo message="@{message}" />
>  >    </sequential>
>  >  </macrodef>
>  >
>  >  <target name="test">
>  >    <echo message="$${basedir}" />
>  >    <echotest message="$${basedir}" />
>  >  </target>
>  >
>  >The output is:
>  >
>  >test:
>  >     [echo] ${basedir}             --> as expected
>  >     [echo] path/to/current/dir    --> bug?
>  >
>  >Am I using this incorrectly, or is this a bug?
>  >
>  >Thank you,
>  >
>  >--Vladimir
>  >
>  >Notice:  This email message, together with any attachments, may
>  >contain information  of  BEA Systems,  Inc.,  its subsidiaries  and
>  >affiliated entities,  that may be confidential,  proprietary,
>  >copyrighted  and/or legally privileged, and is intended solely for
the
>  >use of the individual or entity named in this message. If you are
not
>  >the intended recipient, and have received this message in error,
>  >please immediately return this by email and then delete it.
>  >
>
>---------------------------------------------------------------------
>  >To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>  >For additional commands, e-mail: user-help@ant.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org


Notice:  This email message, together with any attachments, may contain information  of  BEA Systems,  Inc.,  its subsidiaries  and  affiliated entities,  that may be confidential,  proprietary,  copyrighted  and/or legally privileged, and is intended solely for the use of the individual or entity named in this message. If you are not the intended recipient, and have received this message in error, please immediately return this by email and then delete it.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: '$$' escape syntax does not work with macros?

Posted by Jacob Kjome <ho...@visi.com>.
Probably along the same lines as this bug...

properties get double expanded in <assertPropertyEquals>
http://issues.apache.org/bugzilla/show_bug.cgi?id=41400


Jake

At 06:48 PM 4/3/2007, you wrote:
 >Hi Ant Users,
 >
 >It looks like '$$' escape syntax does not work with macrodefs.
 >
 >I wrote the following test:
 >
 >  <macrodef name="echotest">
 >    <attribute name="message" />
 >    <sequential>
 >      <echo message="@{message}" />
 >    </sequential>
 >  </macrodef>
 >
 >  <target name="test">
 >    <echo message="$${basedir}" />
 >    <echotest message="$${basedir}" />
 >  </target>
 >
 >The output is:
 >
 >test:
 >     [echo] ${basedir}             --> as expected
 >     [echo] path/to/current/dir    --> bug?
 >
 >Am I using this incorrectly, or is this a bug?
 >
 >Thank you,
 >
 >--Vladimir
 >
 >Notice:  This email message, together with any attachments, may
 >contain information  of  BEA Systems,  Inc.,  its subsidiaries  and
 >affiliated entities,  that may be confidential,  proprietary,
 >copyrighted  and/or legally privileged, and is intended solely for the
 >use of the individual or entity named in this message. If you are not
 >the intended recipient, and have received this message in error,
 >please immediately return this by email and then delete it.
 >
 >---------------------------------------------------------------------
 >To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
 >For additional commands, e-mail: user-help@ant.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org