On Fri, April 11, 2008 8:42 am, Dave Pawson wrote:
> http://ant.apache.org/manual/using.html#arg
>
> mentions using <arg value in preference to <arg line=
>
> For an xslt task I want to specify
> -o filename
>
> Trying this
>
>  <arg value="-l"/>
>     <arg value="-o ${out.dir}/${main.outfile}"/>
>
> The single '-l' works OK,
> but the -o option causes a problem with the processor.
>
> How can I specify '-o filename' for <arg/> please?

<arg value="x"/> is interpreted as a single argument, even if "x" happens
to contain spaces. In your case, you actually have two arguments: "-o" and
"filename", so you need to specify it like this:

  <arg value="-o"/>
  <arg value="${out.dir}/${main.outfile}"/>

Cheers,
Joe


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

Reply via email to