Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 5583 invoked from network); 24 Mar 2004 15:13:42 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 24 Mar 2004 15:13:42 -0000 Received: (qmail 37808 invoked by uid 500); 24 Mar 2004 15:13:28 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 37774 invoked by uid 500); 24 Mar 2004 15:13:27 -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 37759 invoked from network); 24 Mar 2004 15:13:27 -0000 Received: from unknown (HELO msgdirector4.onetel.net.uk) (212.67.96.160) by daedalus.apache.org with SMTP; 24 Mar 2004 15:13:27 -0000 Received: from bolek.coachhouse ([213.78.162.108]) by msgdirector4.onetel.net.uk (Mirapoint Messaging Server MOS 3.3.6-GR) with ESMTP id BMW54394; Wed, 24 Mar 2004 15:13:22 GMT Received: (Exim 3.35) #1 (Debian)) protocol: esmtp id 1B6A4D-0005wi-00 ; Wed, 24 Mar 2004 15:13:17 +0000 Message-ID: <4061A58D.2070100@numerixtechnology.de> Date: Wed, 24 Mar 2004 15:13:17 +0000 From: T E Schmitz Reply-To: mailing@numerixtechnology.de User-Agent: Mozilla Thunderbird 0.5 (Windows/20040207) 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> <40619A4F.9050007@corvil.com> In-Reply-To: <40619A4F.9050007@corvil.com> Content-Type: text/plain; charset=us-ascii; 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 Because this always copied all files regardless whether they were up-to-date or not. Or am I missing something here? Regards, Tarlika Peter Reilly wrote: > 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