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]