----- Original Message ----- From: "Steve Loughran" <[EMAIL PROTECTED]> To: "Ant Users List" <[EMAIL PROTECTED]> Sent: Tuesday, March 26, 2002 6:10 PM Subject: Re: ftp-ing only new files
> > ----- Original Message ----- > From: "Denis McCarthy" <[EMAIL PROTECTED]> > To: "Ant Users List" <[EMAIL PROTECTED]> > Sent: Tuesday, March 26, 2002 3:04 AM > Subject: ftp-ing only new files > > > > Hi there, > >I am using ant to build a java/jsp project on my local machine and ftp the > classes to a unix box remotely. > >At the moment each time I deploy the project, all files are ftp'd across, > regardless of whether they are > >newer than the ones on the unix box or not. > >I thought that if I set the "depends=yes" option in the ftp task, only > newer files would be transferred. >Unfortunately, all files are still ftp'd > each time. > > it should work; certainly it works for me. > > If the dest was a NT box I would have a solution, but nothing springs to > mind for your problem. Run in -debug and see if that provides more info, > otherwise you are going to have to debug ftp. The behaviour seems funny; each time I ftp the files across to my AIX machine, they are given as a new timestamp the time at which they were ftp'd. It seems that with this behaviour the files will all be ftp'd across each time, because the ftp process will think that the files I want to ftp across were created right then, and thus are newer than the ones on the AIX machine. I have written a work-around task for this anyway, which involves keeping a mirror image of the last ftp'd versions of the files in a seperate directory on my windows machine, and checking my compiled classes against this mirror image. This way I can create a flat text file with the list of filenames that have changes since my last ftp, and pass this into a patternset. > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
