You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by Nikolay Diakov <ni...@fredhopper.com> on 2006/06/08 17:18:18 UTC

- typos / feature in BeanShellInterpreter.java

Guys,

Would someone unquote the string "initFile" to make it a variable, at 
lines 122 and 125 of BeanShellInterpreter.java:

if (!in.exists()) {
   throw new FileNotFoundException("initFile");
}
if (!in.canRead()) {
   throw new IOException("initFile");
}

This representsa variable, not a string and unquoted it gives the name 
of the file not being found. Greatly enhances the logging.

Cheers,
   Nikolay

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org


Re: - typos / feature in BeanShellInterpreter.java

Posted by sebb <se...@gmail.com>.
OK, will do. Good catch.

S.
On 08/06/06, Nikolay Diakov <ni...@fredhopper.com> wrote:
> Guys,
>
> Would someone unquote the string "initFile" to make it a variable, at
> lines 122 and 125 of BeanShellInterpreter.java:
>
> if (!in.exists()) {
>   throw new FileNotFoundException("initFile");
> }
> if (!in.canRead()) {
>   throw new IOException("initFile");
> }
>
> This representsa variable, not a string and unquoted it gives the name
> of the file not being found. Greatly enhances the logging.
>
> Cheers,
>   Nikolay
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org