[jboss-svn-commits] JBL Code SVN: r28888 - labs/jbosstm/workspace/adinn/byteman/trunk/src/org/jboss/byteman/rule/helper.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Mon Aug 10 07:16:30 EDT 2009


Author: adinn
Date: 2009-08-10 07:16:30 -0400 (Mon, 10 Aug 2009)
New Revision: 28888

Modified:
   labs/jbosstm/workspace/adinn/byteman/trunk/src/org/jboss/byteman/rule/helper/Helper.java
Log:
added the strings "out" and "err" as trace streams aliased to System.out and System.err -- fixes BYTEMAN-21

Modified: labs/jbosstm/workspace/adinn/byteman/trunk/src/org/jboss/byteman/rule/helper/Helper.java
===================================================================
--- labs/jbosstm/workspace/adinn/byteman/trunk/src/org/jboss/byteman/rule/helper/Helper.java	2009-08-10 10:36:18 UTC (rev 28887)
+++ labs/jbosstm/workspace/adinn/byteman/trunk/src/org/jboss/byteman/rule/helper/Helper.java	2009-08-10 11:16:30 UTC (rev 28888)
@@ -984,4 +984,10 @@
      */
     private static HashMap<Object, Rendezvous> rendezvousMap = new HashMap<Object, Rendezvous>();
 
+    // initialise the trace map so it contains the system  output and error keyed under "out" and "err"
+
+    static {
+        traceMap.put("out", System.out);
+        traceMap.put("err", System.err);
+    }
 }



More information about the jboss-svn-commits mailing list