org.nuxeo.ecm.shell.commands.repository
Class ScriptingCommand
java.lang.Object
org.nuxeo.ecm.shell.commands.repository.AbstractCommand
org.nuxeo.ecm.shell.commands.repository.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(CommandDescriptor descriptor,
java.io.File file)
getCommandHeader
public CommandHeader getCommandHeader()
throws java.lang.Exception
- Throws:
java.lang.Exception
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
compileScript
public static javax.script.CompiledScript compileScript(javax.script.ScriptEngine engine,
java.io.File file)
throws javax.script.ScriptException
- Throws:
javax.script.ScriptException
getExtension
public static java.lang.String getExtension(java.io.File file)
getScript
public javax.script.CompiledScript getScript()
throws javax.script.ScriptException,
java.io.IOException,
java.text.ParseException
- Throws:
javax.script.ScriptException
java.io.IOException
java.text.ParseException
Copyright © 2010 Nuxeo SAS. All Rights Reserved.