PageRenderTime 166ms CodeModel.GetById 163ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 1ms

/jEdit/tags/jedit-4-0-pre3/bsh/commands/source.bsh

#
Unknown | 14 lines | 10 code | 4 blank | 0 comment | 0 complexity | 7c5b46e170e520d0a7c839406aacf267 MD5 | raw file
 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