directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r109272 - /incubator/directory/eve/trunk/jndi-provider/src/test/org/apache/eve/jndi/AbstractJndiTest.java
Date Wed, 01 Dec 2004 03:08:49 GMT
Author: akarasulu
Date: Tue Nov 30 19:08:48 2004
New Revision: 109272

URL: http://svn.apache.org/viewcvs?view=rev&rev=109272
Log:
Test was failing on windows due to file locking preventing deletion of the
database files.  We catch the IOExceptions due to deletion and do not respond
to them because its not that important.

Modified:
   incubator/directory/eve/trunk/jndi-provider/src/test/org/apache/eve/jndi/AbstractJndiTest.java

Modified: incubator/directory/eve/trunk/jndi-provider/src/test/org/apache/eve/jndi/AbstractJndiTest.java
Url: http://svn.apache.org/viewcvs/incubator/directory/eve/trunk/jndi-provider/src/test/org/apache/eve/jndi/AbstractJndiTest.java?view=diff&rev=109272&p1=incubator/directory/eve/trunk/jndi-provider/src/test/org/apache/eve/jndi/AbstractJndiTest.java&r1=109271&p2=incubator/directory/eve/trunk/jndi-provider/src/test/org/apache/eve/jndi/AbstractJndiTest.java&r2=109272
==============================================================================
--- incubator/directory/eve/trunk/jndi-provider/src/test/org/apache/eve/jndi/AbstractJndiTest.java
(original)
+++ incubator/directory/eve/trunk/jndi-provider/src/test/org/apache/eve/jndi/AbstractJndiTest.java
Tue Nov 30 19:08:48 2004
@@ -75,14 +75,21 @@
      *
      * @throws IOException if there are failures while deleting.
      */
-    protected void doDelete( File wkdir ) throws IOException
+    protected void doDelete( File wkdir )
     {
-        if ( doDelete )
+        try 
         {
-            if ( wkdir.exists() )
+            if ( doDelete )
             {
-                FileUtils.deleteDirectory( wkdir );
+                if ( wkdir.exists() )
+                {
+                    FileUtils.deleteDirectory( wkdir );
+                }
             }
+        }
+        catch( IOException ioe )
+        {
+            ioe.printStackTrace();
         }
     }
 

Mime
View raw message