maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bri...@apache.org
Subject svn commit: r591922 - /maven/components/trunk/maven-core/src/test/java/org/apache/maven/extension/DefaultExtensionManagerTest.java
Date Mon, 05 Nov 2007 09:08:41 GMT
Author: brianf
Date: Mon Nov  5 01:08:40 2007
New Revision: 591922

URL: http://svn.apache.org/viewvc?rev=591922&view=rev
Log:
fixed windows test error

Modified:
    maven/components/trunk/maven-core/src/test/java/org/apache/maven/extension/DefaultExtensionManagerTest.java

Modified: maven/components/trunk/maven-core/src/test/java/org/apache/maven/extension/DefaultExtensionManagerTest.java
URL: http://svn.apache.org/viewvc/maven/components/trunk/maven-core/src/test/java/org/apache/maven/extension/DefaultExtensionManagerTest.java?rev=591922&r1=591921&r2=591922&view=diff
==============================================================================
--- maven/components/trunk/maven-core/src/test/java/org/apache/maven/extension/DefaultExtensionManagerTest.java
(original)
+++ maven/components/trunk/maven-core/src/test/java/org/apache/maven/extension/DefaultExtensionManagerTest.java
Mon Nov  5 01:08:40 2007
@@ -86,7 +86,15 @@
 
             if ( f.exists() )
             {
-                FileUtils.forceDelete( f );
+			    try 
+				{
+                    FileUtils.forceDelete( f );
+				}
+				catch (IOException e)
+				{
+				    //the files on windows can still be locked. They were creaed in a temp directory
anyway and will get removed in a subsequent clean.
+					//we can safely ignore this error.
+				}
             }
         }
     }



Mime
View raw message