ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Conor MacNeill" <co...@m64.com>
Subject RE: quotes in Exec task
Date Thu, 06 Jul 2000 15:55:03 GMT
Todd,

Since the build file is XML, try using &quot; rather than the \". I think
that will work. Also you may need to double up the $ character.

Conor

--
Conor MacNeill
Home: conor@m64.com
Work: conor@cortexebusiness.com.au
Web:  www.cortexebusiness.com.au


> -----Original Message-----
> From: Todd McGrath [mailto:toddmcgrath@yahoo.com]
> Sent: Friday, 7 July 2000 1:52
> To: ant-dev@jakarta.apache.org
> Subject: quotes in Exec task
>
>
> Hi,
>
> I using an exec task and having problems with quotes.
> I need to run this command: ss get "$/Gen II/JSP/" -R
> -W
>
> So, in my build.xml I have the following:
>
> <exec dir="${web}" command="ss get \"$/Gen II/JSP/\"
> -R -W" output="sslog.txt" />
>
> See how I need the quotes around the $/Gen II/JSP/.
>
> I'm getting this error:
>
> BUILD CONFIG ERROR
>
> Whitespace required before attributes.
> build.xml:56: Whitespace required before attributes.
> Exception in thread "main" build.xml:56: Whitespace
> require before attributes.
>      at
> org.apache.tools.ant.ProjectHelper.parse(ProjectHelper.java:112)
>      at org.apache.tools.ant.Main.runBuild(Main.java,
> Compiled Code)
>      at org.apache.tools.ant.Main.main(Main.java:106)
>
>
> Any ideas?
>
> Todd
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Send instant messages & get email alerts with Yahoo! Messenger.
> http://im.yahoo.com/
>


Mime
View raw message