tests for KT-7618 Compiling Maven project targeting JS fails when no source file present

This commit is contained in:
Michael Nedzelsky
2015-06-11 00:56:27 +03:00
parent dd60c7b79f
commit 744e760444
14 changed files with 87 additions and 1 deletions
@@ -4,7 +4,6 @@ Buildfile: [TestData]/build.xml
build:
[mkdir] Created dir: [Temp]/classes
[javac] Compiling 1 source file to [Temp]/classes
[javac] Compiling [[TestData]] => [[Temp]/classes]
[javac] Running javac...
[javac] [TestData]/J.java:3: package kotlin does not exist
[javac] import kotlin.Unit;
@@ -0,0 +1,5 @@
package test;
import kotlin.Unit;
public class J {}
@@ -0,0 +1,12 @@
OUT:
Buildfile: [TestData]/build.xml
build:
[mkdir] Created dir: [Temp]/classes
[javac] Compiling 1 source file to [Temp]/classes
[javac] Running javac...
BUILD SUCCESSFUL
Total time: [time]
Return code: 0
@@ -0,0 +1,10 @@
<project name="Ant Task Test" default="build">
<taskdef resource="org/jetbrains/kotlin/ant/antlib.xml" classpath="${kotlin.lib}/kotlin-ant.jar"/>
<target name="build">
<mkdir dir="${temp}/classes"/>
<javac srcdir="${test.data}" destdir="${temp}/classes" includeantruntime="false">
<withKotlin/>
</javac>
</target>
</project>