Hi, After more investigation, I have found that due to folders and files relating to CVS (I am checking out the code from CVS, which is creating CVS folders all over the directory structure), the move task does not complete successfully. CVS folders are hidden and this may be affecting the "move" task. Is there any way I can force the task to copy all folders and files, including hidden ones? I also tried manually changing the attributes to "not hidden" before running the move task, but that didn't work either.
Thanks, Rizwan Merchant Software Developer Alpha-IT Technologies 416-449-2166 [EMAIL PROTECTED] -----Original Message----- From: Matt Benson [mailto:[EMAIL PROTECTED] Sent: Friday, September 23, 2005 12:41 PM To: Ant Users List Subject: RE: moving directories If you want to unconditionally move a whole directory structure, you can, in the latest releases of Ant, simple specify the directory as the file attribute of your move task. It is usually quicker this way as well, as it amounts to a rename of the directory. HTH, Matt --- Rizwan Merchant <[EMAIL PROTECTED]> wrote: > > Hi, > I'm using version 1.6.5 > > Rizwan Merchant > Software Developer > Alpha-IT Technologies > 416-449-2166 > [EMAIL PROTECTED] > > -----Original Message----- > From: Matt Benson [mailto:[EMAIL PROTECTED] > Sent: Friday, September 23, 2005 12:21 PM > To: Ant Users List > Subject: Re: moving directories > > --- Rizwan Merchant <[EMAIL PROTECTED]> wrote: > > > > > > > Hi, > > > > I've posted before regarding this topic, but > haven't > > been able to solve my > > problem. I am trying to back up a directory by > > moving it to another location > > using the following move task > > > > > > > > <move todir="${backUp.dir}" failonerror="true"> > > > > <fileset dir="${root.dir}"> > > > > <include > > name="UHM-dev*/**"/> > > > > </fileset> > > > > </move> > > > > > > > > The above task does move the directory, all its > > subfolders and files to the > > new location, but it leaves behind the directory > > structure (i.e empty > > folders). I know that the "includeEmptyDirs" > > attribute for the move task is > > defaulted to true, which means nothing should be > > left behind. > > > > Any help is appreciated. > > > What version of Ant are you using? > > -Matt > > > > > __________________________________ > Yahoo! Mail - PC Magazine Editors' Choice 2005 > http://mail.yahoo.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]