activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r961180 - /activemq/sandbox/activemq-apollo-actor/activemq-broker/src/test/scala/org/apache/activemq/apollo/broker/perf/BrokerPerfSupport.scala
Date Wed, 07 Jul 2010 04:14:24 GMT
Author: chirino
Date: Wed Jul  7 04:14:23 2010
New Revision: 961180

URL: http://svn.apache.org/viewvc?rev=961180&view=rev
Log:
backup the previous report if it can't be parsed.

Modified:
    activemq/sandbox/activemq-apollo-actor/activemq-broker/src/test/scala/org/apache/activemq/apollo/broker/perf/BrokerPerfSupport.scala

Modified: activemq/sandbox/activemq-apollo-actor/activemq-broker/src/test/scala/org/apache/activemq/apollo/broker/perf/BrokerPerfSupport.scala
URL: http://svn.apache.org/viewvc/activemq/sandbox/activemq-apollo-actor/activemq-broker/src/test/scala/org/apache/activemq/apollo/broker/perf/BrokerPerfSupport.scala?rev=961180&r1=961179&r2=961180&view=diff
==============================================================================
--- activemq/sandbox/activemq-apollo-actor/activemq-broker/src/test/scala/org/apache/activemq/apollo/broker/perf/BrokerPerfSupport.scala
(original)
+++ activemq/sandbox/activemq-apollo-actor/activemq-broker/src/test/scala/org/apache/activemq/apollo/broker/perf/BrokerPerfSupport.scala
Wed Jul  7 04:14:23 2010
@@ -132,6 +132,9 @@ abstract class BrokerPerfSupport extends
           report_data = data.stripLineEnd
         case _ =>
           println("could not parse existing report file: "+htmlFile)
+          val backup: File = new File(htmlFile.getParentFile, htmlFile.getName + ".bak")
+          println("backing up to: "+backup)
+          IOHelper.copyFile(htmlFile, backup )
       }
     }
 



Mime
View raw message