Thanks, I'll try '*.', Up until now I've been using '*'. Regards, Matt Benic Axapta Developer UTi Sun Couriers Division "The universal aptitude for ineptitude makes any human accomplishment an incredible miracle." - Col. John P. Stapp www.smallfrymobile.com <http://www.smallfrymobile.com>
-----Original Message----- From: Lieve Van den Heuvel [mailto:[EMAIL PROTECTED] Sent: 01 February 2005 01:04 PM To: user@ant.apache.org Subject: RE: Copy taks, include files exclude subfolders Hi Have you tried to make a double fileset? <fileset ..> <include name="*.*"/> <include name="*."/> </fileset> normally *. means the files without any extension? but I don't know yet how ant handles this.. maybe it helps.. greetz Lieve >>> [EMAIL PROTECTED] 1/02/2005 11:28:48 >>> I have read through the ant manual page on directory tasks and still found no answers, and I am using a pattern of *. I can't use *.* because my files do not necessarily have extensions. I'm essentially looking for a way to copy from a folder non-recursively. I'm sorry, I wish I had the current code to post, but I do not have it available right now. Regards, Matt Benic Axapta Developer UTi Sun Couriers Division "The universal aptitude for ineptitude makes any human accomplishment an incredible miracle." - Col. John P. Stapp www.smallfrymobile.com <http://www.smallfrymobile.com> -----Original Message----- From: James Abley [mailto:[EMAIL PROTECTED] Sent: 01 February 2005 12:21 PM To: Ant Users List Subject: Re: Copy taks, include files exclude subfolders On Tue, 2005-02-01 at 10:16, James Abley wrote: > On Tue, 2005-02-01 at 10:10, Matt Benic wrote: > > Hi there, > > I am having trouble implementing a copy task. Given the following folder > > layout: > > /sourcefolder > > file1 > > file2.dat > > /subfolder1 > > file3 > > /subfolder2 > > file4 > > > > I want to be able to copy all files in the top level directory, but not > > recurse through the subfolders. ie I would like to see the target directory > > ending up like this: > > /targetdir > > file1 > > file2 > > > > I'm guessing that your include fileset is defined using a '**'? '**' > will recursively traverse a directory. This might be helpful too! http://ant.apache.org/manual/dirtasks.html --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]