ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kendall Collett" <kcoll...@convio.com>
Subject Re: Apply/Exec
Date Fri, 08 Nov 2002 18:43:48 GMT
If there was a way of specifying the maximum number and/or length of
arguments (ala xargs' --max-args and --max-chars options; see
<http://nodevice.com/sections/ManIndex/man1940.html>), that might help.
That way, if you had a large number of files, you could pick some large
number that *usually* worked instead of having to say parallel="false" and
losing the performance benefit altogether.  You could still end up picking a
number that was close to the edge (where it could fail in some future
because the fileset picked up more files), but it might be better that
nothing,  (It's unfortunate that there isn't portable way to determine the
argument limits.)

Kendall

----- Original Message -----
From: "Stefan Bodewig" <bodewig@apache.org>
To: <ant-user@jakarta.apache.org>
Sent: Friday, November 08, 2002 09:12
Subject: Re: Apply/Exec


> On Fri, 08 Nov 2002, Anakreon Mejdi <amejdi@ertonline.gr> wrote:
>
> > tar is just an example, but what I mean is that if by splitting the
> > parameters it wouldn't work, if parallel is false it won't work
> > either.
>
> Absolutely true.
>
> My point was that Ant might be able to detect the command line was
> getting too long (but I even doubt that, as we'd need people to report
> values for *a lot* of platforms) - but that it couldn't act
> automatically and assume things have been OK after that.



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


Mime
View raw message