Author: sebb
Date: Sun Jun 29 18:46:43 2014
New Revision: 1606562

URL: http://svn.apache.org/r1606562
Log:
Preserve the log file at end of class test

Modified:
    
commons/proper/jcs/trunk/commons-jcs-core/src/test/java/org/apache/commons/jcs/auxiliary/remote/server/BasicRemoteCacheClientServerUnitTest.java

Modified: 
commons/proper/jcs/trunk/commons-jcs-core/src/test/java/org/apache/commons/jcs/auxiliary/remote/server/BasicRemoteCacheClientServerUnitTest.java
URL: 
http://svn.apache.org/viewvc/commons/proper/jcs/trunk/commons-jcs-core/src/test/java/org/apache/commons/jcs/auxiliary/remote/server/BasicRemoteCacheClientServerUnitTest.java?rev=1606562&r1=1606561&r2=1606562&view=diff
==============================================================================
--- 
commons/proper/jcs/trunk/commons-jcs-core/src/test/java/org/apache/commons/jcs/auxiliary/remote/server/BasicRemoteCacheClientServerUnitTest.java
 (original)
+++ 
commons/proper/jcs/trunk/commons-jcs-core/src/test/java/org/apache/commons/jcs/auxiliary/remote/server/BasicRemoteCacheClientServerUnitTest.java
 Sun Jun 29 18:46:43 2014
@@ -105,6 +105,11 @@ public class BasicRemoteCacheClientServe
         if (server != null) { // in case setup failed, no point throwing NPE 
as well
             server.shutdown("localhost", remotePort);
         }
+        // Debug: unfortunately Surefire restarts JVM so log files get 
overwritten
+        // There's probably a better way to fix this ...
+        java.io.File jcsLog = new java.io.File("target/jcs.log");
+        java.io.File logSave = new 
java.io.File("target/BasicRemoteCacheClientServerUnitTest_jcs.log");
+        System.out.println("Renamed log file? "+jcsLog.renameTo(logSave));
     }
 
     /**


Reply via email to