Date: 2004-03-30T13:43:30
   Editor: 192.132.24.81 <>
   Wiki: Ant Wiki
   Page: AntNewbies
   URL: http://wiki.apache.org/ant/AntNewbies

   no comment

New Page:

== This is the AntNewbies page where newbies that can ask difficult but clear 
questions. ==


""Q)"" How do you escape a " in an argument to an Exec command. This is what I 
have.

<code>
 <target name="RSM" depends="init">
        <property name="preflag" value="-wc -w"/>
        <property name="filedat" value=""/>
        <property name="datfile" value="'File dat 
c:\rsm\MyProject_${tstamp}.dat'"/>
        <property name="flags"   value="-r h,cpp,java"/>
        <property name="project" value="c:\rsm\MyProject_v1.0_rsm\DevSCM"/>
        <property name="string"  value="${preflag}${datfile} ${flags} 
${project}"/>
        <echo message="${string}"/>
        <exec dir="c:\rsm\rsm" executable="rsm.exe" output="dir.txt">
                <arg line="${string}"/>
        </exec>
</code>

This is what I'm trying to duplicate on the command line with Ant.

<code>
rsm -wc -w "File dat c:\rsm\MyProject_${tstamp}.dat" -r h,cpp,java 
c:\rsm\MyProject_v1.0_rsm\MyProject
</code>

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

Reply via email to