[jboss-cvs] JBossAS SVN: r92490 - branches/JBPAPP_5_0/testsuite/src/main/org/jboss/test/jmx/test.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Aug 18 04:26:53 EDT 2009
Author: jason.greene at jboss.com
Date: 2009-08-18 04:26:53 -0400 (Tue, 18 Aug 2009)
New Revision: 92490
Modified:
branches/JBPAPP_5_0/testsuite/src/main/org/jboss/test/jmx/test/AbstractURLDeploymentScannerTest.java
Log:
More work on JBPAPP-2151
Modified: branches/JBPAPP_5_0/testsuite/src/main/org/jboss/test/jmx/test/AbstractURLDeploymentScannerTest.java
===================================================================
--- branches/JBPAPP_5_0/testsuite/src/main/org/jboss/test/jmx/test/AbstractURLDeploymentScannerTest.java 2009-08-18 08:25:42 UTC (rev 92489)
+++ branches/JBPAPP_5_0/testsuite/src/main/org/jboss/test/jmx/test/AbstractURLDeploymentScannerTest.java 2009-08-18 08:26:53 UTC (rev 92490)
@@ -201,7 +201,20 @@
if( dest.exists() == true )
{
boolean deleted = Files.delete(dest);
- if( deleted == false )
+ int tries = 0; int wait=100;
+ while (!deleted && tries++ < 10)
+ {
+ try
+ {
+ Thread.sleep(wait<<=1);
+ }
+ catch(Exception e)
+ {
+ }
+
+ deleted = Files.delete(dest);
+ }
+ if (!deleted)
throw new IOException("delete of previous content failed for: "+dest.getAbsolutePath());
}
}
More information about the jboss-cvs-commits
mailing list