Thank you.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 12, 2007 11:47 PM
To: [EMAIL PROTECTED]
Subject: AW: Question using @ in exec/arg
Hmmmm .... a simple
  <project>
    <echo> @ </echo>
  </project> 
works for me ...


In <macrodef> you have to mask the @ sign because it's starting the reference 
to an attribute name.
  <macrodef name="">
    <attribute name="foo"/>
    <sequential>
      <echo> @{foo} prints value of attribute foo </echo>
      <echo> @@ prints simple at-sign </echo>
    </sequential>
  </macrodef>



Jan

>-----Ursprüngliche Nachricht-----
>Von: Rebhan, Gilbert [mailto:[EMAIL PROTECTED] 
>Gesendet: Freitag, 13. April 2007 08:05
>An: Ant Users List; [EMAIL PROTECTED]
>Betreff: RE: Question using @ in exec/arg
>
> 
>Hi,
>
>
>-----Original Message-----
>From: Bret Kumler [mailto:[EMAIL PROTECTED] 
>Sent: Thursday, April 12, 2007 7:47 PM
>To: Ant Users List
>Subject: Question using @ in exec/arg
>
>/*
>I'm going to use p4 sync @labelname and I was wondering if the @ sign
>will work in the following task.
>[ ... ]
>
>Do I have to single quote the @ sign? 
>*/
>
>I think you have to mask via @@, i.e. see ant manual
>.../manual/CoreTasks/macrodef.html =
>
>"...
>The escape sequence @@ is used to escape @. This allows @{x} to be
>placed
>in the text without substitution of x by using @@{x}. This corresponds
>to the $$
>escape sequence for properties. 
>...
>"
>
>Regards, Gilbert
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 269.3.0/758 - Release Date: 4/12/2007 11:52 
AM
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 269.3.0/758 - Release Date: 4/12/2007 11:52 
AM
 

This e-mail message and any attachments may contain private, confidential, 
proprietary or privileged material of GoldenGate Software, Inc. that is for the 
sole use of the intended recipient(s) of this e-mail message.  Any review, 
copying or distribution or other use of this e-mail message or any attachments 
hereto by anyone other than the intended recipient(s) is strictly prohibited.  
If you are not the intended recipient(s) of this e-mail message, please contact 
GoldenGate Software, Inc. (415-777-0200) immediately and permanently delete the 
original e-mail message and any copies of this e-mail message and all 
attachments, if any.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to