sebb        2004/10/08 15:37:39

  Modified:    src/protocol/java/org/apache/jmeter/protocol/java/sampler
                        Tag: rel-2_0 BeanShellSampler.java
  Log:
  Oops! log was set in wrong place, and no point sourcing null...!
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.6.2.2   +4 -4      
jakarta-jmeter/src/protocol/java/org/apache/jmeter/protocol/java/sampler/BeanShellSampler.java
  
  Index: BeanShellSampler.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-jmeter/src/protocol/java/org/apache/jmeter/protocol/java/sampler/BeanShellSampler.java,v
  retrieving revision 1.6.2.1
  retrieving revision 1.6.2.2
  diff -u -r1.6.2.1 -r1.6.2.2
  --- BeanShellSampler.java     25 Sep 2004 20:59:50 -0000      1.6.2.1
  +++ BeanShellSampler.java     8 Oct 2004 22:37:39 -0000       1.6.2.2
  @@ -53,13 +53,13 @@
                String init="";
                try{
                        bshInterpreter = new Interpreter();
  +                     bshInterpreter.set("log",log);  //$NON-NLS-1$
                        init = JMeterUtils.getPropDefault(INIT_FILE,null);
                        if (init != null)
                        {
                                try
                                {
  -                                      bshInterpreter.source(null);
  -                                      bshInterpreter.set("log",log);  //$NON-NLS-1$
  +                                      bshInterpreter.source(init);
                                } catch (IOException e){
                                        log.warn("Error processing init file "+init+" 
"+e);
                                } catch (Exception e){
  
  
  

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

Reply via email to