harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ndbe...@apache.org
Subject svn commit: r422304 - /incubator/harmony/enhanced/classlib/trunk/modules/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/util/DefaultPropertyHelper.java
Date Sat, 15 Jul 2006 22:22:58 GMT
Author: ndbeyer
Date: Sat Jul 15 15:22:58 2006
New Revision: 422304

URL: http://svn.apache.org/viewvc?rev=422304&view=rev
Log:
Apply patch for HARMONY-869: [classlib][logging] run of logging test lead to remove the deploy\jdk\jre\lib\logging.properties
file

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/util/DefaultPropertyHelper.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/util/DefaultPropertyHelper.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/util/DefaultPropertyHelper.java?rev=422304&r1=422303&r2=422304&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/util/DefaultPropertyHelper.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/util/DefaultPropertyHelper.java
Sat Jul 15 15:22:58 2006
@@ -88,9 +88,11 @@
 	}
 
 	public synchronized static void reset(File bak) {
-		File file = new File(propertyPath);
-		file.delete();
-		bak.renameTo(file);
+		if (bak.exists()) {
+			File file = new File(propertyPath);
+			file.delete();
+			bak.renameTo(file);
+		}
 	}
 
 }



Mime
View raw message