Author: ozeigermann Date: Wed Nov 30 09:26:20 2005 New Revision: 349996 URL: http://svn.apache.org/viewcvs?rev=349996&view=rev Log: Better error reporting in FileHelper#moveRec when destination directories could not be created
Modified: jakarta/commons/proper/transaction/trunk/RELEASE-NOTES.txt jakarta/commons/proper/transaction/trunk/src/java/org/apache/commons/transaction/util/FileHelper.java Modified: jakarta/commons/proper/transaction/trunk/RELEASE-NOTES.txt URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/transaction/trunk/RELEASE-NOTES.txt?rev=349996&r1=349995&r2=349996&view=diff ============================================================================== --- jakarta/commons/proper/transaction/trunk/RELEASE-NOTES.txt (original) +++ jakarta/commons/proper/transaction/trunk/RELEASE-NOTES.txt Wed Nov 30 09:26:20 2005 @@ -30,6 +30,7 @@ - Fixed bug reported by Niklas Gustavsson on http://www.mail-archive.com/commons-dev@jakarta.apache.org/msg69441.html. Failed deletion of a file now throws an exception and enters an error state upon commit. - Reduced likelyhood of clash between internally generated and external tx id in generatedUniqueTxId +- Better error reporting in FileHelper#moveRec when destination directories could not be created KNOWN ISSUES ------------ Modified: jakarta/commons/proper/transaction/trunk/src/java/org/apache/commons/transaction/util/FileHelper.java URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/transaction/trunk/src/java/org/apache/commons/transaction/util/FileHelper.java?rev=349996&r1=349995&r2=349996&view=diff ============================================================================== --- jakarta/commons/proper/transaction/trunk/src/java/org/apache/commons/transaction/util/FileHelper.java (original) +++ jakarta/commons/proper/transaction/trunk/src/java/org/apache/commons/transaction/util/FileHelper.java Wed Nov 30 09:26:20 2005 @@ -131,7 +131,9 @@ file.delete(); } } else { - targetFile.mkdirs(); + if (targetFile.mkdirs()) { + throw new IOException("Could not create target directory: "+targetFile); + } moveRec(file, targetFile); } } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]