Package railo.commons.cli

Examples of railo.commons.cli.CommandResult


      //synchronized(monitor){
      try {

        process = Command.createProcess(command,true);

        CommandResult result = Command.execute(process);
        String rst = result.getOutput();

        finished = true;
        if(!aborted) {
          if(outputfile==null && variable==null) pc.write(rst);
          else {
            if(outputfile!=nullIOUtil.write(outputfile, rst, SystemUtil.getCharset(), false);
            if(variable!=nullpc.setVariable(variable,rst);
          }

          if(errorFile != null)      IOUtil.write(errorFile, result.getError(), SystemUtil.getCharset(), false);
          if(errorVariable != nullpc.setVariable(errorVariable, result.getError());
        }
      }
      catch(Exception ioe){
        exception=ioe;
      }
View Full Code Here

TOP

Related Classes of railo.commons.cli.CommandResult

Copyright © 2018 www.massapicom. 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.