Re: Multiple files to task

2007-01-20 Thread Peter Kennard
OK - convoluted nastiness but it works to make a quoted space delimited list of file names. The two "commands" below are needed to translate all the '/' to ${file.separator} s in the original property which are coded with '/' separators. and expand it to the full path so it will compare charac

Re: Multiple files to task

2007-01-19 Thread Peter Kennard
well got 80% of the way there :) The below will make a list of the filename surrounded by quotes. (havn't tried it as part of a line= constrct yet. However I noticed a buggaboo - the only does simple string substitution so unless you specify ${path.separator} for every in

Re: Multiple files to task

2007-01-19 Thread Peter Kennard
Thanks The files may not but the paths they are in might. Can "pathconvert" manage to put quotes around all the entries? (I'll have to look up what pathconvert is :) Too bad there isn't a nested "fileset" in in an or item to do just this since many command line utilities do it like compile

Re: Multiple files to task

2007-01-19 Thread Antoine Levy-Lambert
Hi, if your list of file is not too long, that is if you are not going to overflow the maximum for command lines (4096 chars under Windows I think), and if none of your files contain spaces in their names or directories, you can use pathconvert to generate a property from a fileset. Then

Multiple files to task

2007-01-19 Thread Peter Kennard
I want to pass in a "list" of files as the last arguments to a java utility. Can this be done with the task? Any hints on how I might go about it? Traversing the apache docs, I couldn't find how to do what I would think is one of the first things people would need. From the command line