You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Bret Kumler <bk...@goldengate.com> on 2007/04/12 19:46:49 UTC

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.


<loadproperties srcfile="label.properties"/>

<property name="labelname" value="${label.name}"/>

<target name="syncToLabel">
        <exec dir="${path.p4}" executable="p4" spawn="true">
            <arg line="sync @${labelname}"/>
        </exec>
</target>

Do I have to single quote the @ sign? 

-- 
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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


RE: Question using @ in exec/arg

Posted by Bret Kumler <bk...@goldengate.com>.
Thank you.

-----Original Message-----
From: Rebhan, Gilbert [mailto:Gilbert.Rebhan@huk-coburg.de] 
Sent: Thursday, April 12, 2007 11:05 PM
To: Ant Users List; Bret Kumler
Subject: RE: Question using @ in exec/arg

 
Hi,


-----Original Message-----
From: Bret Kumler [mailto:bkumler@goldengate.com] 
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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org



-- 
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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


RE: Question using @ in exec/arg

Posted by "Rebhan, Gilbert" <Gi...@huk-coburg.de>.
 
Hi,


-----Original Message-----
From: Bret Kumler [mailto:bkumler@goldengate.com] 
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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org