sebb        2004/01/27 06:25:06

  Modified:    src/core/org/apache/jmeter/junit JMeterTestCase.java
  Log:
  Use split() from JOrphanUtils to fix bad dependency
  
  Revision  Changes    Path
  1.9       +8 -7      
jakarta-jmeter/src/core/org/apache/jmeter/junit/JMeterTestCase.java
  
  Index: JMeterTestCase.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-jmeter/src/core/org/apache/jmeter/junit/JMeterTestCase.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- JMeterTestCase.java       23 Jan 2004 16:47:53 -0000      1.8
  +++ JMeterTestCase.java       27 Jan 2004 14:25:04 -0000      1.9
  @@ -11,6 +11,7 @@
   import junit.framework.TestCase;
   import org.apache.jmeter.util.JMeterUtils;
   import org.apache.jorphan.logging.LoggingManager;
  +import org.apache.jorphan.util.JOrphanUtils;
   import org.apache.log.Logger;
   
   /**
  @@ -66,13 +67,13 @@
                        logprop("os.name");
                        logprop("os.version");
                        logprop("os.arch");
  -                     logprop("java.class.path");
  -                     //TODO re-enable when split() is available in jorphan?
  -//                   String cp = System.getProperty("java.class.path");
  -//                   String cpe[]= JMeterUtils.split(cp,";","");
  -//                   for (int i=0;i<cpe.length;i++){
  -//                           System.out.println(cpe[i]);
  -//                   }
  +                     //logprop("java.class.path");
  +                     String cp = System.getProperty("java.class.path");
  +                     String cpe[]= JOrphanUtils.split(cp,";");
  +                     System.out.println("java.class.path=");
  +                     for (int i=0;i<cpe.length;i++){
  +                             System.out.println(cpe[i]);
  +                     }
        } else {
                filePrefix="";
        }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to