ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fergus Gallagher <Fergus.Gallag...@OrbisUK.com>
Subject Re: quotes in Exec task
Date Thu, 06 Jul 2000 16:09:48 GMT
XML allows double or single quote as attribute delimiters, so you can use

         command='ss get "$/Gen II/JSP/" -R -W'

or (probably)

         command="ss get '$/Gen II/JSP/' -R -W"



At 08:52 06/07/00 -0700, you wrote:
>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/

--
Fergus Gallagher
Orbis
http://www.orbisuk.com/
+44-(0)20-8987 0717


Mime
View raw message