ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lou Fox" <lou...@cloud9.net>
Subject Re: How to put quotes inside the arg line for exec?
Date Fri, 28 Jun 2002 15:58:17 GMT
use &quot;
----- Original Message -----
From: "Sean LeBlanc" <sean@nutros.com>
To: <ant-user@jakarta.apache.org>
Sent: Friday, June 28, 2002 11:51 AM
Subject: How to put quotes inside the arg line for exec?


> Hi all, I'm trying to get quotes to show up on an actual command line. I'm
trying to
> get a task made that will get all files from Visual Source Safe. I have a
directory with
> spaces in it, so I need to put quotes around the -gl parm. Here's what I'm
trying to
> run:
>
> c:\development\visual studio\vss\win32\ss.exe get -i- -glc:\Program
Files\Apache Tomcat 4.0\webapps\Nutros\home\ -r
> $/MyProject/subproject/ -Yuser,pwd
>
> Here is my code:
>
> <!-- VSS: Get the pages -->
> <target name="getpages">
> <exec dir="${vsshome}" executable="ss.exe" os="Windows 2000">
> <arg line=" get -i- -gl${jsphome} -r
${jspproject} -Y${vssuser},${vsspassword}"/>
> </exec>
> </target>
>
> Because jsphome property has spaces in it, I get:
> c:\sean\ant\nutrosant.xml:121: Execute failed: java.io.IOException:
> CreateProcess: ss.exe get -i- -glc:\Program Files\Apache Tomcat
4.0\webapps\Nutros\home -r
> $/MyProject/subproject/ -Yuser,pwd error=2
>
> When I try:
> <!-- VSS: Get the pages -->
> <target name="getpages">
> <exec dir="${vsshome}" executable="ss.exe" os="Windows 2000">
> <arg line=" get -i- -\"gl${jsphome}\" -r
${jspproject} -Y${vssuser},${vsspassword}"/>
> </exec>
> </target>
>
> I get:
> c:\sean\ant\nutrosant.xml:122: Whitespace required before attributes.
>
>
>
>
> --
> To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>
>


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


Mime
View raw message