}
public File compile()
throws InvalidArtifactException
{
CommandExecutor commandExecutor = CommandExecutor.Factory.createDefaultCommmandExecutor();
commandExecutor.setLogger( compilerContext.getPlexusLogger() );
try
{
commandExecutor.executeCommand( getCompilerFileName(), getCommands(), failOnErrorOutput() );
}
catch ( CompilerException e )
{
throw new InvalidArtifactException( e );
}