KT-1529: Failing module compilation doesn't fail Maven build

This commit is contained in:
Evgeny Goldin
2012-03-07 20:43:07 +01:00
parent 25ae0bb127
commit 0ceac22872
@@ -114,7 +114,10 @@ public class BytecodeCompiler {
* @param classpath compilation classpath, can be <code>null</code> or empty
*/
public void moduleToJar ( String module, String jar, boolean includeRuntime, String stdlib, String[] classpath ) {
env( stdlib, classpath ).compileModuleScript( module, jar, null, includeRuntime );
boolean success = env( stdlib, classpath ).compileModuleScript( module, jar, null, includeRuntime );
if ( ! success ) {
throw new CompileEnvironmentException( compilationError( module ));
}
}
public List<CompilerPlugin> getCompilerPlugins() {