fix GroovyCompilerTest: order chunk rebuild when stub generation failed (with NCDFE)

This commit is contained in:
peter
2015-02-11 17:24:54 +01:00
parent b73d80eee7
commit af6c50944d
3 changed files with 6 additions and 1 deletions
@@ -184,6 +184,10 @@ public abstract class GroovycOutputParser {
LOG.debug("Error message: " + message);
return true;
}
if (message.getMessageText().contains(GroovyRtConstants.GROOVYC_STUB_GENERATION_FAILED)) {
LOG.debug("Stub failed message: " + message);
return true;
}
}
if (getStdErr().length() > 0) {
LOG.debug("Non-empty stderr: '" + getStdErr() + "'");
@@ -35,4 +35,5 @@ public class GroovyRtConstants {
public static final String CLEAR_PRESENTABLE = "$@#$%^ CLEAR_PRESENTABLE";
public static final String NO_GROOVY = "Cannot compile Groovy files: no Groovy library is defined";
public static final String OPTIMIZE = "optimize";
public static final String GROOVYC_STUB_GENERATION_FAILED = "Groovyc stub generation failed";
}
@@ -194,7 +194,7 @@ public class GroovyCompilerWrapper {
if (forStubs) {
collector.add(new CompilerMessage(GroovyCompilerMessageCategories.INFORMATION,
"Groovyc stub generation failed", null, -1, -1));
GroovyRtConstants.GROOVYC_STUB_GENERATION_FAILED, null, -1, -1));
}
final StringWriter writer = new StringWriter();