Set failOnError = true by default in kotlinc Ant task as in javac
#KT-8742 Fixed
This commit is contained in:
+20
@@ -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>
|
||||
+1
@@ -0,0 +1 @@
|
||||
xxxx
|
||||
Reference in New Issue
Block a user