activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r1457073 - /activemq/trunk/activemq-amqp/src/test/java/org/apache/activemq/transport/amqp/joram/ActiveMQAdmin.java
Date Fri, 15 Mar 2013 19:15:52 GMT
Author: tabish
Date: Fri Mar 15 19:15:51 2013
New Revision: 1457073

URL: http://svn.apache.org/r1457073
Log:
apply patch for: https://issues.apache.org/jira/browse/AMQ-4379

Modified:
    activemq/trunk/activemq-amqp/src/test/java/org/apache/activemq/transport/amqp/joram/ActiveMQAdmin.java

Modified: activemq/trunk/activemq-amqp/src/test/java/org/apache/activemq/transport/amqp/joram/ActiveMQAdmin.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-amqp/src/test/java/org/apache/activemq/transport/amqp/joram/ActiveMQAdmin.java?rev=1457073&r1=1457072&r2=1457073&view=diff
==============================================================================
--- activemq/trunk/activemq-amqp/src/test/java/org/apache/activemq/transport/amqp/joram/ActiveMQAdmin.java
(original)
+++ activemq/trunk/activemq-amqp/src/test/java/org/apache/activemq/transport/amqp/joram/ActiveMQAdmin.java
Fri Mar 15 19:15:51 2013
@@ -58,7 +58,8 @@ public class ActiveMQAdmin implements Ad
 
     static public void enableJMSFrameTracing() throws FileNotFoundException {
         final SimpleFormatter formatter = new SimpleFormatter();
-        final PrintStream out = new PrintStream(new FileOutputStream(new File("/tmp/amqp-trace.txt")));
+        String outputStreamName = System.getProperty("java.io.tmpdir") + "/amqp-trace.txt";
+        final PrintStream out = new PrintStream(new FileOutputStream(new File(outputStreamName)));
         Handler handler = new Handler() {
             @Override
             public void publish(LogRecord r) {



Mime
View raw message