source: trunk/j/src/bsh/commands/source.bsh @ 2

Last change on this file since 2 was 2, checked in by piso, 18 years ago

Initial checkin.

File size: 306 bytes
Line 
1
2bsh.help.source = "usage: source( filename | URL )";
3
4source( String filename ) {
5  return this.interpreter.source( filename, this.caller.namespace );
6}
7
8source( URL url ) {
9  return this.interpreter.eval(
10    new InputStreamReader(url.openStream()), this.caller.namespace, 
11    "URL: "+url.toString()
12  );
13}
14
Note: See TracBrowser for help on using the repository browser.