ant task fixes + first integration test

This commit is contained in:
Leonid Shalupov
2012-05-07 18:12:06 +04:00
parent ffcba10773
commit 58c0ad3c46
8 changed files with 103 additions and 9 deletions
@@ -0,0 +1,10 @@
OUT Buildfile: build.xml
OUT
OUT build:
OUT [kotlinc] Compiling [[TestData]\hello.kt] => [[Temp]\hello.jar]
OUT [kotlinc] LOGGING: For source: [TestData]\hello.kt
OUT [kotlinc] LOGGING: Emitting: Hello/namespace.class
OUT
OUT BUILD SUCCESSFUL
OUT Total time: 2 seconds
Return code: 0
@@ -0,0 +1,7 @@
<project name="Ant Task Test" default="build">
<taskdef resource="org/jetbrains/jet/buildtools/ant/antlib.xml" classpath="${kotlin.lib}/kotlin-ant.jar"/>
<target name="build">
<kotlinc src="${test.data}/hello.kt" output="${temp}/hello.jar"/>
</target>
</project>
@@ -0,0 +1,5 @@
package Hello
fun main(args : Array<String>) {
System.out?.println("Hello!")
}
@@ -0,0 +1,2 @@
OUT Hello!
Return code: 0