Author: hiranya
Date: Mon Jul 22 22:20:14 2013
New Revision: 1505834

URL: http://svn.apache.org/r1505834
Log:
Deleting activemq temp data after the tests

Modified:
    
synapse/trunk/java/modules/integration/src/test/java/org/apache/synapse/samples/framework/ActiveMQController.java

Modified: 
synapse/trunk/java/modules/integration/src/test/java/org/apache/synapse/samples/framework/ActiveMQController.java
URL: 
http://svn.apache.org/viewvc/synapse/trunk/java/modules/integration/src/test/java/org/apache/synapse/samples/framework/ActiveMQController.java?rev=1505834&r1=1505833&r2=1505834&view=diff
==============================================================================
--- 
synapse/trunk/java/modules/integration/src/test/java/org/apache/synapse/samples/framework/ActiveMQController.java
 (original)
+++ 
synapse/trunk/java/modules/integration/src/test/java/org/apache/synapse/samples/framework/ActiveMQController.java
 Mon Jul 22 22:20:14 2013
@@ -21,6 +21,7 @@ package org.apache.synapse.samples.frame
 
 import org.apache.activemq.broker.BrokerService;
 import org.apache.axiom.om.OMElement;
+import org.apache.commons.io.FileUtils;
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 import org.apache.synapse.samples.framework.config.SampleConfigConstants;
@@ -63,6 +64,7 @@ public class ActiveMQController extends 
     public boolean stopProcess() {
         try {
             broker.stop();
+            FileUtils.deleteQuietly(broker.getDataDirectoryFile());
             return true;
         } catch (Exception e) {
             log.error("Error while shutting down the broker", e);


Reply via email to