Return-Path: Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 93084 invoked by uid 500); 16 Jul 2003 21:37: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 93003 invoked from network); 16 Jul 2003 21:37:26 -0000 Received: from relay.t-intra.de (HELO relay.t-online-com.de) (62.156.147.74) by daedalus.apache.org with SMTP; 16 Jul 2003 21:37:26 -0000 Received: from DJ0X820J (p5080eee0.dip0.t-ipconnect.de [80.128.238.224]) by relay.t-online-com.de (SMTPSVC(1.0.0.1)) with ESMTP id D9EF7150128 for ; Thu, 17 Jul 2003 01:37:31 +0200 (CEST) Message-ID: <004301c34be2$9ffdfa60$020200c0@DJ0X820J> From: "Antoine Levy-Lambert" To: "Ant Users List" References: Subject: Re: copy only if newer Date: Wed, 16 Jul 2003 23:38:40 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N ----- 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