Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 45307 invoked from network); 2 Jun 2004 18:52:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 2 Jun 2004 18:52:47 -0000 Received: (qmail 36837 invoked by uid 500); 2 Jun 2004 18:52:51 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 36523 invoked by uid 500); 2 Jun 2004 18:52:49 -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 36510 invoked by uid 99); 2 Jun 2004 18:52:48 -0000 Received: from [62.156.147.74] (HELO relay.t-online-com.de) (62.156.147.74) by apache.org (qpsmtpd/0.27.1) with ESMTP; Wed, 02 Jun 2004 11:52:48 -0700 Received: from antbuild.com (internet-cafe-150.sapinternetcafe.de [155.56.24.150]) by relay.t-online-com.de (SMTPSVC(1.0.0.1)) with ESMTP id CE7DB150499 for ; Wed, 2 Jun 2004 20:42:41 +0200 (CEST) Message-ID: <40BE2171.5030702@antbuild.com> Date: Wed, 02 Jun 2004 20:50:25 +0200 From: =?ISO-8859-1?Q?Antoine_L=E9vy-Lambert?= User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ant Users List Subject: Re: Deployment Question References: <012d01c448d0$d3c97810$6a00a8c0@cmc.com> In-Reply-To: <012d01c448d0$d3c97810$6a00a8c0@cmc.com> X-Enigmail-Version: 0.82.4.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi Gary, do you expect the files to be changed both at the local and at the remote end ? do you expect files to be deleted at the remote end and do you want to delete them at the remote end too ? why do you say you do not want to depend on timestamps ? If you have a situation where the files are only changed at the local end and you are not deleting files at the local end, then you could ftp send a fileset restricted by the date selector, using as boundary date the timestamp of the last send. Another interesting selector for you is the modified selector, which has been introduced in ant 1.6 and works with md5 values, or other algorithms. Have a look at this URL to read about selectors : http://ant.apache.org/manual/CoreTypes/selectors.html Note that when using fileset(s) in the ftp task, selectors only work on the local end. Antoine Gary Eberhart wrote: >Hello > >I have a bunch of files in a directory called "Web Contents". I deploy these >files to a remote server in a directory called "application". I can only use >FTP, no mounted drives, to send files and I can not depend on time stamps. >The FTP task works great to send these files. However, I can't afford to >send every file with every little change. I only want to send the changed >files. > >What works, > >I calculate the value for all the local files in Web Contents. >This creates a file named filename.MD5 for each file in the Web Contents >directory and places the .MD5 file in the same directory as the file the >checksum value for. > >Then I run a remote Ant task, using AntServer/RemoteAnt, to do the same on >the remote files. > >Need Help, > >So, for each file in the Web Contents directory I want to compare the .MD5 >file to the remote .MD5 file, if they are different I know the local and >remote files are different. If so, I will use the FTP task to send the files >from the Web Contents directory to the application directory. > >How should I do this? > >Maybe, > >1. Run the check sum task on the local and the remote files. >2. FTP the remote .MD5 files back to the client. >3. Use the Foreach task to run the following tasks on each file in the Web >Contents directory. > a. Condition/filesmatch to compare the two checksum files. > b. Use an If task with nested FTP tasks to send the file if the checksums >did not match. > >I feel like I'm really missing the point. > >Gary > > >--------------------------------------------------------------------- >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