Nuxeo Enterprise Platform 5.4

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

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

public class ScriptingCommand
extends AbstractCommand

Author:
Bogdan Stefanescu

Constructor Summary
ScriptingCommand(File file)
           
 
Method Summary
static CompiledScript compileScript(File file)
           
static CompiledScript compileScript(ScriptEngine engine, File file)
           
static ScriptEngine getEngineByExtension(String extension)
           
 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(File file)
                 throws ScriptException
Throws:
ScriptException
Method Detail

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

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.