sebb        2004/01/22 17:27:08

  Modified:    src/functions/org/apache/jmeter/functions FileWrapper.java
  Log:
  Handle case where alias open was not successful
  
  Revision  Changes    Path
  1.2       +10 -4     
jakarta-jmeter/src/functions/org/apache/jmeter/functions/FileWrapper.java
  
  Index: FileWrapper.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-jmeter/src/functions/org/apache/jmeter/functions/FileWrapper.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- FileWrapper.java  23 Jan 2004 01:14:11 -0000      1.1
  +++ FileWrapper.java  23 Jan 2004 01:27:08 -0000      1.2
  @@ -178,9 +178,15 @@
                FileWrapper fw = (FileWrapper) (my).get(file);
                if (fw == null) // First call
                {
  -                     log.info("Attaching "+file);
  -                     open(file,file);
  -                     fw = (FileWrapper) my.get(file);
  +                     if (file.startsWith("*")) {
  +                             log.warn("Cannot perform initial open using alias 
"+file);
  +                     }
  +                     else
  +                     {
  +                             log.info("Attaching "+file);
  +                             open(file,file);
  +                             fw = (FileWrapper) my.get(file);
  +                     }
                        //TODO improve the error handling
                        if (fw == null) return "";
                }
  
  
  

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

Reply via email to