home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Freelog Special Freeware 25
/
FreelogHS25.iso
/
Dessin
/
ArtOfIllusion2.2.1
/
ArtOfIllusion.jar
/
bsh
/
servlet
/
getVersion.bsh
< prev
next >
Wrap
Text File
|
2005-05-23
|
515b
|
21 lines
/*
Return a verbose version string.
Unfortunately, I was an idiot and didn't include a good version number
mechanism in the earliest releases of bsh. (It was in text in one of the
commands, but commands aren't packaged with all uses of bsh).
*/
import bsh.EvalError;
String getVersion()
{
try {
ver = this.interpreter.eval(
"import bsh.Interpreter; Interpreter.VERSION");
return "BeanShell version: "+ver;
} catch ( EvalError e ) {
return "BeanShell version 1.1 or older (Please upgrade)";
}
}