ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kjersti Berg" <kjersti.b...@gmail.com>
Subject Re: List of file names as arguments to a java task
Date Fri, 24 Feb 2006 08:57:02 GMT
>
> So my problem is to
> get a space delimited list of file names and to add it to the list of
> arguments to my java command.


I had a case where I needed to run a Java program on a set of files. I used
the apply task for that, but I don't know if this matches your requirements
exactly. As far as I understood it, this will execute the a command once for
each file in the fileset. It doesnt appear that the java task takes a
fileset as an argument.

Subsidiary question :
> Is there a limit to the length of the string given as argument to a java
> command ?


Not in Java per se I think, but Windows has a limit on how long a command
line can be.
See this for ex: http://gcc.gnu.org/ml/gcc-help/2005-11/msg00254.html

Kjersti

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message