commandExecutor.setLogger( logger );
commandExecutor.executeCommand( getExecutable(), getCommands(), getExecutionPath(), true );
}
catch ( ExecutionException e )
{
throw new ExecutionException( "NPANDAY-063-000: Execution Path = " +
( ( getExecutionPath() != null ) ? getExecutionPath().getAbsolutePath() : "unknown" ) + ", Executable = " + getExecutable() + ", Args = " +
commands, e );
}
if ( commandExecutor.getStandardOut().contains( "error" )
&& !commandExecutor.getStandardOut().contains( "exit code = 0" ) )
{
throw new ExecutionException(
"NPANDAY-063-001: Execution Path = " +
( ( getExecutionPath() != null ) ? getExecutionPath().getAbsolutePath() : "unknown" ) + ", Executable = " + getExecutable() + ", Args = " +
commands );
}
}