Examples of exec()


Examples of jeeves.server.dispatchers.guiservices.XmlFile.exec()

        Map<String, XmlFile> schemaInfo = schemaMan.getSchemaInfo(schema);

        for (Map.Entry<String, XmlFile> entry : schemaInfo.entrySet()) {
          XmlFile xf = entry.getValue();
          String fname = entry.getKey();
          Element response = xf.exec(new Element("junk"), context);
          response.setName(FilenameUtils.removeExtension(fname));
                    response.removeAttribute("noNamespaceSchemaLocation", Geonet.Namespaces.XSI);
          Element schemaElem = new Element(schema);
          schemaElem.addContent(response);
          schemas.addContent(schemaElem);
View Full Code Here

Examples of jp.ac.kobe_u.cs.prolog.lang.Predicate.exec()

          // if (engine.control.thread == null)
          // break main_loop;
          if (outOfLoop) {
            break main_loop;
          }
          code = code.exec(engine);
        }
        switch (engine.exceptionRaised) {
        case 1: // halt/0
          break main_loop;
        case 2: // freeze/2
View Full Code Here

Examples of net.neoremind.sshxcute.core.SSHExec.exec()

                        {

                                try
                                {
                                        ssh.connect();
                                        net.neoremind.sshxcute.core.Result res = ssh.exec(sampleTask);
                                        if (res.isSuccess)
                                        {
                                                label_restart_p2s_OK.setFont(font);
                                                label_restart_p2s_OK.setForeground(new Color(34,139,34));
                                                label_restart_p2s_OK.setText("OK");
View Full Code Here

Examples of net.schmizz.sshj.connection.channel.direct.Session.exec()

      commandString.append(app.getInputDataDirectory());
      commandString.append(" ; ");
      commandString.append("mkdir -p ");
      commandString.append(app.getOutputDataDirectory());

      Command cmd = session.exec(commandString.toString());
      cmd.join(Constants.COMMAND_EXECUTION_TIMEOUT, TimeUnit.SECONDS);
    } catch (ConnectionException e) {
      throw new GFacHandlerException(e.getMessage(), e, context);
    } catch (TransportException e) {
      throw new GFacHandlerException(e.getMessage(), e, context);
View Full Code Here

Examples of net.sourceforge.htmlunit.corejs.javascript.Script.exec()

  @GlobalFunction
  public static void loadClass( Context cx, Scriptable thisObj, Object[] args, Function funObj ) throws IllegalAccessException, InstantiationException, InvocationTargetException {
    Class clazz = getClass( args );
    if ( !Script.class.isAssignableFrom( clazz ) ) { throw reportRuntimeError( "msg.must.implement.Script" ); }
    Script script = (Script) clazz.newInstance();
    script.exec( cx, thisObj );
  }

  private static Class getClass( Object[] args ) throws IllegalAccessException, InstantiationException, InvocationTargetException {
    if ( args.length == 0 ) { throw reportRuntimeError( "msg.expected.string.arg" ); }
    Object arg0 = args[ 0 ];
View Full Code Here

Examples of net.yacy.cora.protocol.ftp.FTPClient.exec()

       
        // get a connection
        if (openConnection(ftpClient, entryUrl)) {
            // test if the specified file is a directory
            if (file.length() > 0) {
                ftpClient.exec("cd \"" + path + "\"", false);

                final boolean isFolder = ftpClient.isFolder(file);
                if (isFolder) {
                    path = fullPath + "/";
                    file = "";
View Full Code Here

Examples of nsf.playground.jsp.JspFragment.exec()

          }
          jspClass = bean.compileSnippet(jspClassName, sourceCode);
        }
        if(jspClass!=null) {
          JspFragment f = jspClass.newInstance();
          f.exec(new JspSampleWriter(pw),req,resp);
        }
      } catch(Throwable e) {
        pw.println("Execution error");
        pw.println("<pre>");
       
View Full Code Here

Examples of org.apache.accumulo.test.ShellServerIT.TestShell.exec()

        .getAbsolutePath());

    assertTrue(Property.CRYPTO_BLOCK_STREAM_SIZE.isExperimental());
    assertTrue(Property.CRYPTO_CIPHER_ALGORITHM_NAME.isExperimental());

    String configOutput = ts.exec("config");

    assertTrue(configOutput.contains(Property.CRYPTO_BLOCK_STREAM_SIZE.getKey()));
    assertFalse(configOutput.contains(Property.CRYPTO_CIPHER_ALGORITHM_NAME.getKey()));
  }
}
View Full Code Here

Examples of org.apache.bsf.BSFEngine.exec()

    protected BSFEngine createBSFEngine(String scriptName, String scriptSrc) {
        try {

            String scriptLanguage = BSFManager.getLangFromFilename(scriptName);
            BSFEngine bsfEngine = bsfManager.loadScriptingEngine(scriptLanguage);
            bsfEngine.exec(scriptName, 0, 0, scriptSrc);

            return bsfEngine;

        } catch (BSFException e) {
            throw new SynapseException(e.getTargetException());
View Full Code Here

Examples of org.apache.bsf.BSFManager.exec()

      enginesManager.registerBean(IScript.CONTEXT, scriptable);
      enginesManager.registerBean(IScript.SCRIPTED_OBJECT, scriptable
          .getScriptedObject());
    }
    try {
      enginesManager.exec(scriptable.getLanguage(), null, 0, 0, scriptable
          .getScript());
    } catch (BSFException ex) {
      throw new ScriptException(ex);
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.