{
commandExecutor.executeCommand( getCompilerFileName(), getCommands(), failOnErrorOutput() );
}
catch ( CompilerException e )
{
throw new InvalidArtifactException( e );
}
if ( compiledArtifact == null || !compiledArtifact.exists() )
{
throw new InvalidArtifactException( "Could not find main artifact" );
}
return compiledArtifact;
}