All Downloads are FREE. Search and download functionalities are using the official Maven repository.

bsh.commands.getResource.bsh Maven / Gradle / Ivy

Go to download

BeanShell is a small, free, embeddable Java source interpreter with object scripting language features, written in Java. BeanShell dynamically executes standard Java syntax and extends it with common scripting conveniences such as loose types, commands, and method closures like those in Perl and JavaScript.

The newest version!
/**
	Get a resource from the BeanShell classpath.
	This method takes into account modification to the BeanShell class path via
	addClassPath() and setClassPath();
*/

bsh.help.getResource = "usage: getResource( String name )";

import bsh.Interpreter;

URL getResource( String path ) 
{
	return this.interpreter.getClassManager().getResource( path );
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy