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
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScriptingCommand
public ScriptingCommand(java.io.File file)
throws javax.script.ScriptException
- Throws:
javax.script.ScriptException
run
public void run(CommandLine cmdLine)
throws java.lang.Exception
- Specified by:
run
in interface Command
- Specified by:
run
in class AbstractCommand
- Throws:
java.lang.Exception
getEngineByExtension
public static javax.script.ScriptEngine getEngineByExtension(java.lang.String extension)
compileScript
public static javax.script.CompiledScript compileScript(java.io.File file)
throws javax.script.ScriptException
- Throws:
javax.script.ScriptException
compileScript
public static javax.script.CompiledScript compileScript(javax.script.ScriptEngine engine,
java.io.File file)
throws javax.script.ScriptException
- Throws:
javax.script.ScriptException
Copyright © 2010 Nuxeo SAS. All Rights Reserved.