}
if (getResource() != null) {
CompilerDef res = getResource().getCompiler( Compiler.MAIN, null );
if ( res != null )
{
task.addConfiguredCompiler( res );
}
}
// Darren Sargent Feb 11 2010: Use Compiler.MAIN for "type"...appears the wrong "type" variable was being used
// since getCompiler() expects "main" or "test", whereas the "type" variable here is "executable", "shared" etc.