Re: Copying a static list of files

2010-06-29 Thread Stefan Bodewig
On 2010-06-26, Patrick Martin wrote: > I thought that using fileset with the includesfile attribute would > still trigger a source directory scan, which is what I want to avoid > to begin with. Isn't that correct? If neither of your patterns contain any wildcards DirectoryScanner should only chec

RE: Copying a static list of files

2010-06-26 Thread Martin Gainty
nt donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Date: Sat, 26 Jun 2010 13:49:58 +0200 > Subject: Re: Copying a static list of files > From: antu...@gmail.com > To: user@ant.apache

Re: Copying a static list of files

2010-06-26 Thread Patrick Martin
Hello, I thought that using fileset with the includesfile attribute would still trigger a source directory scan, which is what I want to avoid to begin with. Isn't that correct? However, this task does sound very interesting to add elements to the filelist (avoiding the "space in filename" issu

Re: Copying a static list of files

2010-06-25 Thread Matt Benson
On Jun 25, 2010, at 9:48 AM, Stefan Bodewig wrote: On 2010-06-25, Patrick Martin wrote: I tried that but then, copy (verbose="true") tells me something like: [copy] //host/share/dir1/dir2/one file.txt omitted as //host/share/dir1/dir2/one file.txt is up to date. So it means copy actually tr

Re: Copying a static list of files

2010-06-25 Thread Stefan Bodewig
On 2010-06-25, Patrick Martin wrote: > I tried that but then, copy (verbose="true") tells me something like: > [copy] //host/share/dir1/dir2/one file.txt omitted as > //host/share/dir1/dir2/one file.txt is up to date. > So it means copy actually tried to copy the files over themselves ? It > did

Re: Copying a static list of files

2010-06-25 Thread Stefan Bodewig
On 2010-06-25, Patrick Martin wrote: > I still don't get how will know which basedir to take from the > source files in order to recreate the correct folder structure in the > "todir" folder. > Let's say that my file list contains the full path: > //host/share/dir1/dir2/one file.txt > //host/sha

Re: Copying a static list of files

2010-06-25 Thread Patrick Martin
I tried that but then, copy (verbose="true") tells me something like: [copy] //host/share/dir1/dir2/one file.txt omitted as //host/share/dir1/dir2/one file.txt is up to date. So it means copy actually tried to copy the files over themselves ? It did not take its "todir" attribute into account ? O

Re: Copying a static list of files

2010-06-25 Thread Patrick Martin
I still don't get how will know which basedir to take from the source files in order to recreate the correct folder structure in the "todir" folder. Let's say that my file list contains the full path: //host/share/dir1/dir2/one file.txt //host/share/dir1/dir2/two files.txt //host/share/dir1/three

Re: Copying a static list of files

2010-06-25 Thread Stefan Bodewig
On 2010-06-25, Patrick Martin wrote: > This looks really promising! How do you use it with copy? is a resource collection, you can use it everywhere where Ant supports them. In particular you can use it as a nested element of di

Re: Copying a static list of files

2010-06-25 Thread Patrick Martin
This looks really promising! How do you use it with copy? where is the equivalent of the "dir" attribute of or ? On Fri, Jun 25, 2010 at 3:11 PM, Stefan Bodewig wrote: > On 2010-06-25, Michael Ludwig wrote: > >> Patrick Martin schrieb am 25.06.2010 um 09:06 (+0200): > >>> Using embedded would w

Re: Copying a static list of files

2010-06-25 Thread Stefan Bodewig
On 2010-06-25, Michael Ludwig wrote: > Patrick Martin schrieb am 25.06.2010 um 09:06 (+0200): >> Using embedded would work if i had the list of >> files upfront. But I only have it at runtime. > You could probably generate at runtime an Ant file filelist.xml > including all the you need and th

Re: Copying a static list of files

2010-06-25 Thread Michael Ludwig
Patrick Martin schrieb am 25.06.2010 um 09:06 (+0200): > Using embedded would work if i had the list of > files upfront. But I only have it at runtime. You could probably generate at runtime an Ant file filelist.xml including all the you need and then run a task to do what you want. But t

Re: Copying a static list of files

2010-06-25 Thread Patrick Martin
Hello, Thank you for your suggestions. Using embedded would work if i had the list of files upfront. But I only have it at runtime. I'll check if short filenames can help me. This can be tricky as I need to strip out the base directory with short file names from my file list... Thanks, On Thu,

Re: Copying a static list of files

2010-06-24 Thread Michael Ludwig
Martin Gainty schrieb am 24.06.2010 um 19:46 (-0400): > > spaces are considered whitespace delimiters by every almost every > parser on the planet so there are 2 workarounds > 1)use shortened name C:\Program Files becomes C:\PROGRA~1 > 2)use a fill character for the space e.g. C:\Program Files be

RE: Copying a static list of files

2010-06-24 Thread Martin Gainty
> Subject: Re: Copying a static list of files > > Patrick Martin schrieb am 24.06.2010 um 21:21 (+0200): > > Sorry, I meant to say that "spaces in filenames are unfriendly with > > filelist", not filesets > > Not sure I understand the problem you

Re: Copying a static list of files

2010-06-24 Thread Michael Ludwig
Patrick Martin schrieb am 24.06.2010 um 21:17 (+0200): > > My problem is not so much with slashes and back-slashes (which i am > quite used to deal with), but rather with spaces in filenames which > are unfriendly with fileset. Even if weren't able to copy with spacy filenames, you could use Mar

Re: Copying a static list of files

2010-06-24 Thread Michael Ludwig
Patrick Martin schrieb am 24.06.2010 um 21:21 (+0200): > Sorry, I meant to say that "spaces in filenames are unfriendly with > filelist", not filesets Not sure I understand the problem you're facing, but definitely works with filenames containing spaces, you just have to put them in a nested

Re: Copying a static list of files

2010-06-24 Thread Patrick Martin
Sorry, I meant to say that "spaces in filenames are unfriendly with filelist", not filesets On Thu, Jun 24, 2010 at 9:17 PM, Patrick Martin wrote: > Hello, > > My problem is not so much with slashes and back-slashes (which i am > quite used to deal with), but rather with spaces in filenames w

Re: Copying a static list of files

2010-06-24 Thread Patrick Martin
Hello, My problem is not so much with slashes and back-slashes (which i am quite used to deal with), but rather with spaces in filenames which are unfriendly with fileset. With or with resource collections, I don't see how to set the equivalent to the "dir" attribute to make it work properly wi

RE: Copying a static list of files

2010-06-24 Thread Martin Gainty
Good Afternoon Patrick- Ant uses the filesystem which is provided by the Operating System so if your on Windows using NTFS and your installation folder for program fubar was installed at C:\Program Files (C:\Program Files\fubar) which would map to C:\PROGRA~1\fubar but in the case of Ant,M