Examples of call()


Examples of org.drools.runtime.pipeline.Callable.call()

        Expression expr = PipelineFactory.newMvelExpression( "this.values" );
        action.setReceiver( expr );
        expr.setReceiver( callable );         
       
        assertNull( mock.getValues() );
        List<Integer> list = ( List<Integer> ) callable.call( mock, new BasePipelineContext( Thread.currentThread().getContextClassLoader() ) );

       
        System.out.println( list.get( 0 ));
        assertEquals( 5, list.size());
        assertEquals( 0,list.get( 0 ).intValue() );
View Full Code Here

Examples of org.easybatch.core.impl.EasyBatchEngine.call()

                .registerRecordValidator(new BeanValidationRecordValidator<Greeting>())
                .registerRecordProcessor(new GreetingSlowProcessor())
                .build();

        // Run easy batch engine
        EasyBatchReport easyBatchReport = easyBatchEngine.call();

        // Print the batch execution report
        System.out.println(easyBatchReport);

    }
View Full Code Here

Examples of org.eclipse.jgit.api.AddCommand.call()

      for (String file : allFiles) {
        String toAdd = translateFilePathUsingPrefix(file, prefix);
        log("Adding " + toAdd, Project.MSG_VERBOSE);
        gitAdd.addFilepattern(toAdd);
      }
      gitAdd.call();
    } catch (Exception e) {
      throw new BuildException("Could not add files to index." + src, e);
    }

  }
View Full Code Here

Examples of org.eclipse.jgit.api.ApplyCommand.call()

      Git git = new Git(db);
      ApplyCommand applyCommand = git.apply();
      applyCommand.setPatch(IOUtilities.toInputStream(patch));
      // TODO: ignore all errors for now, see bug 366008
      try {
        ApplyResult applyResult = applyCommand.call();
        JSONObject resp = new JSONObject();
        JSONArray modifiedFieles = new JSONArray();
        for (File file : applyResult.getUpdatedFiles()) {
          modifiedFieles.put(stripGlobalPaths(db, file.getAbsolutePath()));
        }
View Full Code Here

Examples of org.eclipse.jgit.api.ArchiveCommand.call()

          .setTree(tree)
          .setFormat(format)
          .setOutputStream(stream);
        if (output != null)
          cmd.setFilename(output);
        cmd.call();
    } catch (GitAPIException e) {
      throw die(e.getMessage());
    }
    } catch (FileNotFoundException e) {
      throw die(e.getMessage());
View Full Code Here

Examples of org.eclipse.jgit.api.BlameCommand.call()

        object = repository.resolve(objectId);
      }
      BlameCommand blameCommand = new BlameCommand(repository);
      blameCommand.setFilePath(blobPath);
      blameCommand.setStartCommit(object);
      BlameResult blameResult = blameCommand.call();
      RawText rawText = blameResult.getResultContents();
      int length = rawText.size();
      for (int i = 0; i < length; i++) {
        RevCommit commit = blameResult.getSourceCommit(i);
        AnnotatedLine line = new AnnotatedLine(commit, i + 1, rawText.getString(i));
View Full Code Here

Examples of org.eclipse.jgit.api.CheckoutCommand.call()

                if (!branchExists(git, branch)) {
                    checkout.setCreateBranch(true);
                    pull = false;
                }
                checkout.setName(branch);
                checkout.call();
            }
            if (pull) {
                git.pull().call();
            } else {
                git.fetch().call();
View Full Code Here

Examples of org.eclipse.jgit.api.CleanCommand.call()

          Git git = Git.wrap(repository);
          CleanCommand command = git.clean().setDryRun(true);
          command.setCleanDirectories(cleanDirectories);
          command.setIgnore(!includeIgnored);
          try {
            final Set<String> paths = command.call();

            getShell().getDisplay().syncExec(new Runnable() {
              public void run() {
                cleanTable.setInput(paths);
              }
View Full Code Here

Examples of org.eclipse.jgit.api.CloneCommand.call()

    log("Cloning repository " + uri);
   
    CloneCommand clone = Git.cloneRepository();
    try {
      clone.setURI(uri).setDirectory(destination).setBranch(branch).setBare(bare);
      clone.call().getRepository().close();
    } catch (Exception e) {
      log("Could not clone repository: " + e, e, Project.MSG_ERR);
      throw new BuildException("Could not clone repository: " + e.getMessage(), e);
    }
  }
View Full Code Here

Examples of org.eclipse.jgit.api.CommitCommand.call()

    commitCmd.setAmend(amend);
    commitCmd.setAll(all);
    Ref head = db.getRef(Constants.HEAD);
    RevCommit commit;
    try {
      commit = commitCmd.call();
    } catch (JGitInternalException e) {
      throw die(e.getMessage());
    }

    String branchName;
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.