Set failOnError = true by default in kotlinc Ant task as in javac

#KT-8742 Fixed
This commit is contained in:
Alexander Udalov
2015-08-06 16:07:10 +03:00
parent 7e7374e28b
commit 9f2feb1d27
5 changed files with 35 additions and 1 deletions
@@ -0,0 +1,20 @@
OUT:
Buildfile: [TestData]/build.xml
build:
[kotlinc] Compiling [[TestData]] => [[Temp]]
[kotlinc] [TestData]/incorrectKotlinCode.kt:1:5: error: expecting a top level declaration
[kotlinc] xxxx
[kotlinc] ^
[kotlinc] [TestData]/incorrectKotlinCode.kt:1:1: error: unresolved reference: xxxx
[kotlinc] xxxx
[kotlinc] ^
ERR:
BUILD FAILED
[TestData]/build.xml:5: Compile failed; see the compiler error output for details.
Total time: [time]
Return code: 1
@@ -0,0 +1,7 @@
<project name="Ant Task Test" default="build">
<taskdef resource="org/jetbrains/kotlin/ant/antlib.xml" classpath="${kotlin.lib}/kotlin-ant.jar"/>
<target name="build">
<kotlinc src="${test.data}" output="${temp}"/>
</target>
</project>
@@ -0,0 +1 @@
xxxx