Examples of Execute


Examples of com.acelet.lib.Execute

  public void run() {
    try {
      StringBuffer errBuffer = new StringBuffer("");
      StringBuffer outBuffer = new StringBuffer("");

      execute = new Execute();
      int exitCode = execute.execute(commandArray, envArray, dirName, errBuffer, outBuffer);

      String error = errBuffer.toString().trim();
      if (error.length() > 0)
        error += "; ";
View Full Code Here

Examples of com.amazonaws.services.simpleworkflow.flow.annotations.Execute

        Map<String, MethodConverterPair> signals = new HashMap<String, MethodConverterPair>();
        for (Method method : interfaze.getMethods()) {
            if (method.getDeclaringClass().getAnnotation(Workflow.class) == null) {
                continue;
            }
            Execute executeAnnotation = method.getAnnotation(Execute.class);
            Signal signalAnnotation = method.getAnnotation(Signal.class);
            GetState getStateAnnotation = method.getAnnotation(GetState.class);
            checkAnnotationUniqueness(method, executeAnnotation, signalAnnotation, getStateAnnotation);
            if (executeAnnotation != null) {
                if (workflowImplementationMethod != null) {
View Full Code Here

Examples of com.opengamma.engine.calcnode.msg.Execute

        s_logger.debug("message = {}", msgEnvelope.getMessage());
        final RemoteCalcNodeMessage message = dcontext.fudgeMsgToObject(RemoteCalcNodeMessage.class, msgEnvelope.getMessage());
        assertNotNull(message);
        s_logger.debug("request = {}", message);
        assertTrue(message instanceof Execute);
        final Execute job = (Execute) message;
        final Result result = new Result(JobDispatcherTest.createTestJobResult(job.getJob().getSpecification(), 0, "Test"));
        final FudgeSerializer scontext = new FudgeSerializer(fudgeContext);
        remoteNode.getFudgeMessageSender().send(FudgeSerializer.addClassHeader(scontext.objectToFudgeMsg(result), result.getClass(), RemoteCalcNodeMessage.class));
      }
    });
    jobDispatcher.dispatchJob(JobDispatcherTest.createTestJob(), resultReceiver);
View Full Code Here

Examples of eu.admire.ogsadai.scenario.Execute

            workflow.add(tupleToWRS[i]);
            workflow.add(deliverDT);
            workflow.add(deliverEval);
        }
               
        new Execute(service).execute(workflow);
           
        for (int i=0; i<count; i++)
        {
            System.out.println("  ---- Decision tree " + (i+1) + ":  ----  ");
            System.out.println(classifier[i].nextResult());
View Full Code Here

Examples of net.sf.services.soapjdbcgate.Execute

            } // if

            SoapJdbcResultSetMetaData metadata = mCachedMetadata.get( sql );

            Execute query = new Execute();

            query.setUsername( mUser );
            query.setPassword( mPassword );
            query.setDatabase( mDatabaseName );
            query.setSql( sql );
            query.setWithMetadata( metadata == null );

            prepareHTTPClient();

            processResultSet( sql, mPort.execute( query ).get_return(), metadata );
View Full Code Here

Examples of org.apache.maven.plugins.annotations.Execute

        assertEquals( "foo", mojo.name() );
        assertEquals( true, mojo.threadSafe() );
        assertEquals( false, mojo.aggregator() );
        assertEquals( LifecyclePhase.COMPILE, mojo.defaultPhase() );

        Execute execute = mojoAnnotatedClass.getExecute();

        assertEquals( "compiler", execute.goal() );
        assertEquals( "my-lifecycle", execute.lifecycle() );
        assertEquals( LifecyclePhase.PACKAGE, execute.phase() );

        Collection<ComponentAnnotationContent> components = mojoAnnotatedClass.getComponents().values();
        Assertions.assertThat( components ).isNotNull().isNotEmpty().hasSize( 2 );

        Collection<ParameterAnnotationContent> parameters = mojoAnnotatedClass.getParameters().values();
View Full Code Here

Examples of org.apache.tools.ant.taskdefs.Execute

                log("Compilation arguments:", Project.MSG_VERBOSE);
                log(DefaultGroovyMethods.join(commandLine, "\n"), Project.MSG_VERBOSE);

                if (fork) {
                    // use the main method in FileSystemCompiler
                    final Execute executor = new Execute(); // new LogStreamHandler ( attributes , Project.MSG_INFO , Project.MSG_WARN ) ) ;
                    executor.setAntRun(getProject());
                    executor.setWorkingDirectory(getProject().getBaseDir());
                    executor.setCommandline(commandLine);
                    try {
                        executor.execute();
                    } catch (final IOException ioe) {
                        throw new BuildException("Error running forked groovyc.", ioe);
                    }
                    final int returnCode = executor.getExitValue();
                    if (returnCode != 0) {

                        if (failOnError) {
                            throw new BuildException("Forked groovyc returned error code: " + returnCode);
                        } else {
View Full Code Here

Examples of org.apache.tools.ant.taskdefs.Execute

      // System.err.print(new String(written));
      // super.stop();
      // }
      // };

      Execute exe = new Execute(handler);
      exe.setAntRun(project);
      exe.setWorkingDirectory(project.getBaseDir());
      exe.setCommandline(args);
      try {
        if (executingInOtherVM) {
          String s = "already running in other vm?";
          throw new BuildException(s, location);
        }
        executingInOtherVM = true;
        exe.execute();
      } finally {
        executingInOtherVM = false;
      }
      return exe.getExitValue();
    } catch (IOException e) {
      String m = "Error executing command " + Arrays.asList(args);
      throw new BuildException(m, e, location);
    }
  }
View Full Code Here

Examples of org.apache.tools.ant.taskdefs.Execute

            FILE_UTILS.tryHardToDelete(propsFile);
            throw new BuildException("Error creating temporary properties "
                                     + "file.", e, getLocation());
        }

        Execute execute = new Execute(
            new JUnitLogStreamHandler(
                this,
                Project.MSG_INFO,
                Project.MSG_WARN),
            watchdog);
        execute.setCommandline(cmd.getCommandline());
        execute.setAntRun(getProject());
        if (dir != null) {
            execute.setWorkingDirectory(dir);
        }

        String[] environment = env.getVariables();
        if (environment != null) {
            for (int i = 0; i < environment.length; i++) {
                log("Setting environment variable: " + environment[i],
                    Project.MSG_VERBOSE);
            }
        }
        execute.setNewenvironment(newEnvironment);
        execute.setEnvironment(environment);

        log(cmd.describeCommand(), Project.MSG_VERBOSE);

        checkForkedPath(cmd);

        TestResultHolder result = new TestResultHolder();
        try {
            result.exitCode = execute.execute();
        } catch (IOException e) {
            throw new BuildException("Process fork failed.", e, getLocation());
        } finally {
            String vmCrashString = "unknown";
            BufferedReader br = null;
View Full Code Here

Examples of org.apache.tools.ant.taskdefs.Execute

                cmdl.createArgument().setValue("-v");
            }
            cmdl.createArgument().setValue("-jp_paramfile=" + paramfile.getAbsolutePath());

            LogStreamHandler handler = new LogStreamHandler(this, Project.MSG_INFO, Project.MSG_WARN);
            Execute exec = new Execute(handler);
            log(cmdl.describeCommand(), Project.MSG_VERBOSE);
            exec.setCommandline(cmdl.getCommandline());

            // JProbe process always return 0 so  we will not be
            // able to check for failure ! :-(
            int exitValue = exec.execute();
            if (exitValue != 0) {
                throw new BuildException("JProbe Coverage Merging failed (" + exitValue + ")");
            }
        } catch (IOException e) {
            throw new BuildException("Failed to run JProbe Coverage Merge: " + e);
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.