Return-Path: Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 62530 invoked by uid 500); 17 Jul 2003 14:01:00 -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 62517 invoked from network); 17 Jul 2003 14:01:00 -0000 Received: from mail.pncbank.com (HELO mailx2.pncbank.com) (170.201.41.60) by daedalus.apache.org with SMTP; 17 Jul 2003 14:01:00 -0000 Received: from eman1.pncbank.com (eman1 [170.201.41.76]) by mailx2.pncbank.com (8.10.0/8.10.0) with ESMTP id h6HE0Yc10883 for ; Thu, 17 Jul 2003 10:00:42 -0400 (EDT) Received: from vwall2.pncbank.com (localhost [127.0.0.1]) by eman1.pncbank.com (8.10.2+Sun/8.10.2) with ESMTP id h6HE10112663 for ; Thu, 17 Jul 2003 10:01:00 -0400 (EDT) Received: from ppntmm01.pncbank.com (localhost [127.0.0.1]) by vwall2.pncbank.com (8.9.3+Sun/8.9.3) with ESMTP id KAA15599 for ; Thu, 17 Jul 2003 10:00:45 -0400 (EDT) From: mark.russel@pncbank.com Subject: Re: copy only if newer To: "Ant Users List" X-Mailer: Lotus Notes Release 5.0.8 June 18, 2001 Message-ID: Date: Thu, 17 Jul 2003 10:00:41 -0400 X-MIMETrack: Serialize by Router on PNCPGHM01/PGH/MAIL/PNC(Release 5.0.8 |June 18, 2001) at 07/17/2003 10:00:43 AM MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Antoine, thanks for the pointer to filters. I actually did it like this: Mark Russell PNC 412-768-9603 |--------+-----------------------> | | "Antoine | | | Levy-Lambert"| | | | | | | | | 07/16/2003 | | | 05:38 PM | | | Please | | | respond to | | | "Ant Users | | | List" | | | | |--------+-----------------------> >-----------------------------------------------------------------------------------------------------------------------| | | | To: "Ant Users List" | | cc: | | Subject: Re: copy only if newer | >-----------------------------------------------------------------------------------------------------------------------| ----- Original Message ----- From: Sent: Wednesday, July 16, 2003 8:54 PM Subject: copy only if newer > > I have a set of files in /opt/app/foo and a staging area ~/stage. > the files in /opt/app/foo are owned by admin > the files in ~/stage are owned by user > > via scp user can copy the files to /opt/app/foo under the admin id > > I need an ant task to build a fileset that will only give me the files that > are out of date. > You need a custom selector. In ant 1.6 there is a selector which finds different files between 2 directories, but this is not exactly what you want. Have a look here in the manual for general information about selectors. http://ant.apache.org/manual/CoreTypes/selectors.html Selectors can be nested in filesets to restrict the filesets. Antoine --------------------------------------------------------------------- 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