PageRenderTime 68ms CodeModel.GetById 52ms app.highlight 1ms RepoModel.GetById 11ms app.codeStats 0ms

/jEdit/tags/jedit-4-0-pre5/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