Best regards,
--
Ovidiu Predescu <[EMAIL PROTECTED]>
http://www.geocities.com/SiliconValley/Monitor/7464/ (Apache, GNU, Emacs ...)
Begin forwarded message:
From: "Francis ANDRE" <[EMAIL PROTECTED]> Date: Wed May 29, 2002 05:18:55 AM US/Pacific To: "Ovidiu Predescu" <[EMAIL PROTECTED]> Subject: Move.diff/ fix of a bug in the Move task. X-Mailer: Microsoft Outlook Express 5.50.4807.1700
Ovidiu
Here is a fix I found in the Move task. I have tried many time to subscribe to the ant-dev list but without success. So would you be
kind to submit this patch for me since
I am blocked with an external build.xml file that is using the Move task with a directory.
Many thanks.
Francis
Index: Move.java
===================================================================
RCS file:
/home/cvspublic/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Move.java,v
retrieving revision 1.25
diff -u -r1.25 Move.java
--- Move.java 15 Apr 2002 15:33:09 -0000 1.25
+++ Move.java 29 May 2002 12:11:30 -0000
@@ -306,7 +306,7 @@
}
}
- if (destFile.exists()) {
+ if (destFile.exists() && destFile.isFile()) {
if (!destFile.delete()) {
throw new BuildException("Unable to remove existing "
+ "file " + destFile);
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
