Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 59855 invoked from network); 4 Feb 2005 15:07:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 4 Feb 2005 15:07:21 -0000 Received: (qmail 54669 invoked by uid 500); 4 Feb 2005 15:07:15 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 54627 invoked by uid 500); 4 Feb 2005 15:07:15 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 54613 invoked by uid 99); 4 Feb 2005 15:07:15 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from smtp-vbr10.xs4all.nl (HELO smtp-vbr10.xs4all.nl) (194.109.24.30) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 04 Feb 2005 07:07:13 -0800 Received: from zuus.HOMEDOM (213-84-127-199.adsl.xs4all.nl [213.84.127.199]) (authenticated bits=0) by smtp-vbr10.xs4all.nl (8.12.11/8.12.11) with ESMTP id j14F79kT066565 for ; Fri, 4 Feb 2005 16:07:09 +0100 (CET) (envelope-from gerard@janssenenjansen.nl) From: Gerard Janssen To: user@ant.apache.org Subject: Re: Copy taks, include files exclude subfolders Date: Fri, 4 Feb 2005 16:07:09 +0100 User-Agent: KMail/1.7.1 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200502041607.09202.gerard@janssenenjansen.nl> X-Virus-Scanned: by XS4ALL Virus Scanner X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi, I would expect the folowing should work: the * means all files in the specified dir. ** would mean recursively, which is what you don't want. Also * means all files, it does not care about extentions. So in windoze terms it could be seen as * AND *.*. If this does not help, please post your code here. Gerard On Tuesday 01 February 2005 11:28, Matt Benic wrote: > 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 > > > -----Original Message----- > From: James Abley [mailto:james.abley@volantis.com] > 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: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org