Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.shell.commands.repository
Class ScriptingCommand

java.lang.Object
  extended by org.nuxeo.ecm.shell.commands.repository.AbstractCommand
      extended by org.nuxeo.ecm.shell.commands.repository.ScriptingCommand
All Implemented Interfaces:
Command

public class ScriptingCommand
extends AbstractCommand

Author:
Bogdan Stefanescu

Constructor Summary
ScriptingCommand(CommandDescriptor descriptor, File file)
           
 
Method Summary
static CompiledScript compileScript(ScriptEngine engine, File file)
           
 CommandHeader getCommandHeader()
           
static String getExtension(File file)
           
 CompiledScript getScript()
           
 void run(CommandLine cmdLine)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScriptingCommand

public ScriptingCommand(CommandDescriptor descriptor,
                        File file)
Method Detail

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

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.