org.nuxeo.ecm.shell.commands.scripting
Class ScriptingCommand
java.lang.Object
org.nuxeo.ecm.shell.commands.repository.AbstractCommand
org.nuxeo.ecm.shell.commands.scripting.ScriptingCommand
- All Implemented Interfaces:
- Command
public class ScriptingCommand
- extends AbstractCommand
- Author:
- Bogdan Stefanescu
ScriptingCommand
public ScriptingCommand(File file)
throws ScriptException
- Throws:
ScriptException
run
public void run(CommandLine cmdLine)
throws Exception
- Specified by:
run
in interface Command
- Specified by:
run
in class AbstractCommand
- Throws:
Exception
getEngineByExtension
public static ScriptEngine getEngineByExtension(String extension)
compileScript
public static CompiledScript compileScript(File file)
throws ScriptException
- Throws:
ScriptException
compileScript
public static CompiledScript compileScript(ScriptEngine engine,
File file)
throws ScriptException
- Throws:
ScriptException
Copyright © 2011 Nuxeo SAS. All Rights Reserved.