/** * Loads the script from the argument. */ private String loadScript() throws CmdLineException, IOException, InterruptedException { if(script==null) throw new CmdLineException(null, "No script is specified"); if (script.equals("=")) return IOUtils.toString(stdin); return checkChannel().call(new ScriptLoader(script)); } }
var loader = new ScriptLoader(); loader.add(file) loader.loaded(function(failedCallbackF) {
/** * Loads the script from the argument. */ private String loadScript() throws CmdLineException, IOException, InterruptedException { if(script==null) throw new CmdLineException(null, "No script is specified"); if (script.equals("=")) return IOUtils.toString(stdin); return checkChannel().call(new ScriptLoader(script)); } }