List Info

Thread: svn commit: r367316 - in /ant/core/trunk: CONTRIBUTORS WHATSNEW src/main/org/apache/tools/ant/taskde




svn commit: r367316 - in /ant/core/trunk: CONTRIBUTORS WHATSNEW src/main/org/apache/tools/ant/taskde
user name
2006-01-09 15:11:39
Author: mbenson
Date: Mon Jan  9 07:11:36 2006
New Revision: 367316

URL: http://svn.apache.org/viewcvs?rev=367316&view=rev
Log:
support failonerror when file locked or similar issue.
Bugzilla report 38175.
Submitted by Georges-Etienne Legendre.


Modified:
    ant/core/trunk/CONTRIBUTORS
    ant/core/trunk/WHATSNEW
   
ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Copy.j
ava

Modified: ant/core/trunk/CONTRIBUTORS
URL: ht
tp://svn.apache.org/viewcvs/ant/core/trunk/CONTRIBUTORS?rev=
367316&r1=367315&r2=367316&view=diff
============================================================
==================
--- ant/core/trunk/CONTRIBUTORS (original)
+++ ant/core/trunk/CONTRIBUTORS Mon Jan  9 07:11:36 2006
 -72,6
+72,7 
 Frederic Lavigne
 Gary S. Weaver
 Gautam Guliani
+Georges-Etienne Legendre
 Gero Vermaas
 Gerrit Riessen
 Glenn McAllister

Modified: ant/core/trunk/WHATSNEW
URL: http:/
/svn.apache.org/viewcvs/ant/core/trunk/WHATSNEW?rev=367316&a
mp;r1=367315&r2=367316&view=diff
============================================================
==================
--- ant/core/trunk/WHATSNEW (original)
+++ ant/core/trunk/WHATSNEW Mon Jan  9 07:11:36 2006
 -175,6
+175,9 
 * Project not set on ChainReaderHelpers used by the
Redirector.
   Bugzilla report 37958.
 
+* Copy task would fail on locked (or otherwise uncopyable)
files even if
+  failonerror set to false. Bugzilla report 38175.
+
 Other changes:
 --------------
 * Minor performance improvements Bugzilla report 37777

Modified:
ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Copy.j
ava
URL: http://svn.apache.org/view
cvs/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Co
py.java?rev=367316&r1=367315&r2=367316&view=diff

============================================================
==================
---
ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Copy.j
ava (original)
+++
ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Copy.j
ava Mon Jan  9 07:11:36 2006
 -799,7
+799,10 
                         if (targetFile.exists() &&
!targetFile.delete()) {
                             msg += " and I couldn't
delete the corrupt " + toFile;
                         }
-                        throw new BuildException(msg, ioe,
getLocation());
+                        if (failonerror) {
+                            throw new BuildException(msg,
ioe, getLocation());
+                        }
+                        log(msg, Project.MSG_ERR);
                     }
                 }
             }



------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribeant.apache.org
For additional commands, e-mail: dev-helpant.apache.org

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )