Package eu.planets_project.services.utils

Examples of eu.planets_project.services.utils.ProcessRunner.run()


 
 
  private static OdfValidatorResult validateSubFile(File odfSubFile, File schema, OdfValidatorResult result) {
    ProcessRunner validator = new ProcessRunner();
    validator.setCommand(getJingValidateCmd(odfSubFile, schema));
    validator.run();
   
    String out = validator.getProcessOutputAsString();
 
    if(out.equalsIgnoreCase("")) {
      result.setValid(odfSubFile, true);
View Full Code Here


    return url;
  }
 
  public static String getToolVersion() {
    ProcessRunner cmd = new ProcessRunner(getJingVersionCmd());
    cmd.run();
    String out = cmd.getProcessOutputAsString();
    if(!out.equalsIgnoreCase("") && out!=null) {
      String[] parts = out.split("\n");
      String version = parts[0];
      String[] lineParts = version.split(" ");
View Full Code Here

            for (String s : argsString.split(" ")) {
                strings.add(s);
            }

            ProcessRunner pr = new ProcessRunner(strings);
            pr.run();

            FileUtils.deleteQuietly(inputFile);
            FileUtils.deleteQuietly(outputFile);

            boolean toolError = pr.getReturnCode() == -1;
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.