Bug 31031 - Move tasks fails on directories when the target exists
Summary: Move tasks fails on directories when the target exists
Status: RESOLVED FIXED
Alias: None
Product: Ant
Classification: Unclassified
Component: Core tasks (show other bugs)
Version: nightly
Hardware: Other other
: P3 major (vote)
Target Milestone: ---
Assignee: Ant Notifications List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-03 06:34 UTC by william.barker
Modified: 2008-02-22 12:18 UTC (History)
0 users



Attachments
Suggested patch to fix this (830 bytes, patch)
2004-09-08 05:55 UTC, william.barker
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description william.barker 2004-09-03 06:34:15 UTC
When the attempt to rename a directory, the Move task doesn't fail gracefully 
back to its previous move-all-sub-files behavior.  To reproduce:
  <target name="move-text">
   <mkdir dir="${to.dir}" />
   <move todir="${to.dir}">
     <fileset dir="${from.dir}" />
   </move>
  </target>
Comment 1 william.barker 2004-09-08 05:55:33 UTC
Created attachment 12668 [details]
Suggested patch to fix this
Comment 2 Matt Benson 2004-09-20 18:58:40 UTC
working on the right solution...
Comment 3 Stefan Bodewig 2004-10-07 10:46:46 UTC
If modified the Gump descriptor to send nag mails to the Ant dev list when
Tomcat DBCP fails to build - since the failure is caused by this bug.
Comment 4 Matt Benson 2004-10-07 14:14:10 UTC
I have finished this and I will commit it today.
Comment 5 Matt Benson 2004-10-07 16:31:57 UTC
Fixed in CVS HEAD.