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
ScriptingCommand
public ScriptingCommand(CommandDescriptor descriptor,
File file)
getCommandHeader
public CommandHeader getCommandHeader()
throws Exception
- Throws:
Exception
run
public void run(CommandLine cmdLine)
throws Exception
- Specified by:
run
in interface Command
- Specified by:
run
in class AbstractCommand
- Throws:
Exception
compileScript
public static CompiledScript compileScript(ScriptEngine engine,
File file)
throws ScriptException
- Throws:
ScriptException
getExtension
public static String getExtension(File file)
getScript
public CompiledScript getScript()
throws ScriptException,
IOException,
ParseException
- Throws:
ScriptException
IOException
ParseException
Copyright © 2011 Nuxeo SAS. All Rights Reserved.