mil.dod.th.ose.shell/src/mil/dod/th/ose/shell/MissionProgramManagerCommands.java
@Descriptor("Execute a JavaScript")
    public void execute(final CommandSession session,
            @Descriptor("script to execute")
            final String script) throws ScriptException
    {
        final Object result;
        synchronized (m_ScriptEngine)
        {
            m_ScriptEngine.put(ScriptEngine.FILENAME, "(none)");
            result = m_ScriptEngine.eval(script);
        }
        session.getConsole().println(result);
    }
/**
     * Execute a JavaScript from the command line.
     * 
     * @param session
     *      command session that is executing the command
     * @param script
     *      script to execute
     * @throws ScriptException
     *      if the script fails in some way
     */
Execute a JavaScript from the command line.

@param session
command session that is executing the command
@param script
script to execute
@throws ScriptException
if the script fails in some way
Execute a JavaScript from the command line . @param session command session that is executing the command @param script script to execute @throws ScriptException if the script fails in some way
@Descriptor("Execute a JavaScript")
    public void execute(final CommandSession session,
            @Descriptor("script to execute")
            final String script) throws ScriptException
    {
        final Object result;
        synchronized (m_ScriptEngine)
        {
            m_ScriptEngine.put(ScriptEngine.FILENAME, "(none)");
            result = m_ScriptEngine.eval(script);
        }
        session.getConsole().println(result);
    }
@ Descriptor ( "Execute a JavaScript" ) public void execute ( final CommandSession session , @ Descriptor ( "script to execute" ) final String script ) throws ScriptException { final Object result ; synchronized ( m_ScriptEngine ) { m_ScriptEngine . put ( ScriptEngine . FILENAME , "(none)" ) ; result = m_ScriptEngine . eval ( script ) ; } session . getConsole ( ) . println ( result ) ; }
Execute a JavaScript from the command line.
Execute a JavaScript from the command line .