Package scap.check.exec

Examples of scap.check.exec.StaticFileExecutionStrategy



    public int exec(CheckSystem checkSystem, CheckInterpreterConfiguration config, final OutputStream out) throws IOException, InterruptedException, FileNotFoundException {
      String ovalDir = checkSystem.getPropertyValue(config, OVALCheckSystem.PROP_OVAL_DIR);
      String ovalBin = checkSystem.getPropertyValue(config, OVALCheckSystem.PROP_OVAL_BIN);
      StaticFileExecutionStrategy executionStrategy = new StaticFileExecutionStrategy(new File(ovalDir), ovalBin);

        String executable = executionStrategy.getExecutableFile().getCanonicalPath();
        FileExecutor executor = new FileExecutor(executionStrategy);
//        executor.setRedirectErrorStream( this.outputInfoAndErrorsToSTDOUT );
        executor.setRedirectErrorStream(true);

        List<String> arguments = buildArgumentList();
View Full Code Here

TOP

Related Classes of scap.check.exec.StaticFileExecutionStrategy

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.