[Beanshell-dev] bsh build with j2se

I just downloaded the source code to 1.2b4. It seems like bsh now
requires j2ee (javax.servlet.*). I was able to get it to compile by
removing all references to servlet from the build.xml file and adding
bsh/servlet/* to the excludes. I ran the tests in RunAllTests.bsh and
got the failures/errors below. Could bsh be packaged in a way so that
it will work with minor (or no) tweaking for j2se? Or should I simply
come into the modern age and use j2ee?
Thanks,
Phil
Running test: caller.bsh
Test Passed...
Test Passed...
Test Passed...
Test Passed...
Test Passed...
Test Passed...
Test Passed...
Test FAILED: Line: -1 : <invoked from Java code> : while evaluating
file: caller.bsh
Test Passed...
void: Completed ok.
Test FAILED: Line: -1 : <invoked from Java code> : while evaluating
file: import2.bsh
void: Completed ok.
Running test: strings.bsh
Test Passed...
Script: strings.bsh produced an eval Error: Error parsing string: "\1"
Test: strings.bsh FAILED!
Running test: useinterpreter.bsh
Test Passed...
void: Completed ok.
----------------------------------------
FAILED Tests:
strings.bsh

Thread view

I just downloaded the source code to 1.2b4. It seems like bsh now
requires j2ee (javax.servlet.*). I was able to get it to compile by
removing all references to servlet from the build.xml file and adding
bsh/servlet/* to the excludes. I ran the tests in RunAllTests.bsh and
got the failures/errors below. Could bsh be packaged in a way so that
it will work with minor (or no) tweaking for j2se? Or should I simply
come into the modern age and use j2ee?
Thanks,
Phil
Running test: caller.bsh
Test Passed...
Test Passed...
Test Passed...
Test Passed...
Test Passed...
Test Passed...
Test Passed...
Test FAILED: Line: -1 : <invoked from Java code> : while evaluating
file: caller.bsh
Test Passed...
void: Completed ok.
Test FAILED: Line: -1 : <invoked from Java code> : while evaluating
file: import2.bsh
void: Completed ok.
Running test: strings.bsh
Test Passed...
Script: strings.bsh produced an eval Error: Error parsing string: "\1"
Test: strings.bsh FAILED!
Running test: useinterpreter.bsh
Test Passed...
void: Completed ok.
----------------------------------------
FAILED Tests:
strings.bsh

On Fri, Feb 15, 2002 at 02:18:50PM -0500, Philip Miller wrote:
> I just downloaded the source code to 1.2b4. It seems like bsh now
> requires j2ee (javax.servlet.*). I was able to get it to compile by
> removing all references to servlet from the build.xml file and adding
> bsh/servlet/* to the excludes. I ran the tests in RunAllTests.bsh and
> got the failures/errors below. Could bsh be packaged in a way so that
> it will work with minor (or no) tweaking for j2se? Or should I simply
> come into the modern age and use j2ee?
Sorry about that. I'll add a build switch to specify whether or not to build
the new servlet package.
> Running test: caller.bsh
> Test Passed...
> Test Passed...
> Test Passed...
> Test Passed...
> Test Passed...
> Test Passed...
> Test Passed...
> Test FAILED: Line: -1 : <invoked from Java code> : while evaluating
> file: caller.bsh
> Test Passed...
> void: Completed ok.
>
> Test FAILED: Line: -1 : <invoked from Java code> : while evaluating
> file: import2.bsh
> void: Completed ok.
>
> Running test: strings.bsh
> Test Passed...
> Script: strings.bsh produced an eval Error: Error parsing string: "\1"
> Test: strings.bsh FAILED!
I was aware of the last but I'm not sure why the test harness isn't complaining
about the first two errors. I'll have to take a look.
Pat