ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dave Pawson" <dave.paw...@gmail.com>
Subject Re: arg and jvmarg
Date Fri, 11 Apr 2008 16:49:35 GMT
On 11/04/2008, Rick Genter <rgenter@silverlink.com> wrote:

>  > I seem to have found just the opposite?
>  > line="-o filename" works fine, but as was pointed out,
>  > if I want to use value I have to use two arg elements?
>
>
> Your example has 2 arguments: '-o' and 'filename'. I recommend reading
>  the documentation for the command line processor you are using for how
>  it processes command lines and what the definition of an 'argument' is.

Saxon XSLT processor.
-o filename is the parameter. I'd always thought of it as one param.
Name (-o)
value (filename)
Ant seems to view it differently.


>
>  'line=' won't work if your filename has an embedded space. 'line=' does
>  simple parsing, splitting the arguments on space boundaries. 'line=-o
>  C:\Documents and Settings\user\My Documents\filename.out' generates 5
>  arguments:
>
>  -o
>  C:\Documents
>  and
>  Settings\user\My
>  Doucments\filename.out
>
>  which is almost certainly *NOT* what was wanted.

Not for saxon (http://saxonica.com)


>
>  'value=' explicitly specifies exactly one argument.

Different strokes, different folks I guess.

regards



-- 
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk

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


Mime
View raw message