Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 71463 invoked from network); 24 Mar 2004 14:24:16 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 24 Mar 2004 14:24:16 -0000 Received: (qmail 44940 invoked by uid 500); 24 Mar 2004 14:23:58 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 44896 invoked by uid 500); 24 Mar 2004 14:23:57 -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 44748 invoked from network); 24 Mar 2004 14:23:56 -0000 Received: from unknown (HELO corvil.com) (213.94.219.177) by daedalus.apache.org with SMTP; 24 Mar 2004 14:23:56 -0000 Received: from corvil.com (angel.local.corvil.com [172.18.1.171]) by corvil.com (8.12.9/8.12.5) with ESMTP id i2OENu7x066149 for ; Wed, 24 Mar 2004 14:23:56 GMT (envelope-from peter.reilly@corvil.com) Message-ID: <40619A4F.9050007@corvil.com> Date: Wed, 24 Mar 2004 14:25:19 +0000 From: Peter Reilly User-Agent: Mozilla Thunderbird 0.5 (X11/20040208) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ant Users List Subject: Re: copy updated files from several source trees to a flat directory References: <40616EEB.2020802@numerixtechnology.de> In-Reply-To: <40616EEB.2020802@numerixtechnology.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Why do'nt you just use the copy task with a flatten attribute. Peter T E Schmitz wrote: > Hello, > > I am running Ant 1.5.3 with ant-contrib on Windows 2000. (I am holding > off with Ant 1.6 until NetBeans 3.6 is released.) > > I would like to copy a set of files from multiple source directory > trees to one flat target directory, but only if the source files are > newer than the target files. > > > I tried the following: > > My source trees are ${jakarta.home}, ${build.lib.dir}, .... > The target directory is ${dist.dir} > > --------------------------- > > > > > > > > > > > > > > > > > > > > > > from="\\(.*)\.jar$$" > to="${dist.dir}/\1.jar"/> > > > > copy files in foreach loop. > > --------------------------- > Problems: > 1) The above obviously only handles one source tree. I could specify > multiple filesets but then I can't get the mapping to work. > 2) ${dist.dir} is a subdirectory of ${basedir}. As I am working on > Windows, the path contains back-slashes. These get stripped in the > regexp mapper. I temporarily fudged ${dist.dir} by keying it in by > hand with forward-slashes. > > > Any help is much appreciated. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org