ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joe Schmetzer" <...@exubero.com>
Subject Re: arg and jvmarg
Date Fri, 11 Apr 2008 07:56:53 GMT
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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message