<kotlinc> ant task now supports <src> element and multiple source directories
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
OUT Buildfile: build.xml
|
||||
OUT
|
||||
OUT build:
|
||||
OUT [kotlinc] Compiling [[[TestData]/root1, [TestData]/root2]] => [[Temp]/hello.jar]
|
||||
OUT
|
||||
OUT BUILD SUCCESSFUL
|
||||
OUT Total time: [time]
|
||||
Return code: 0
|
||||
@@ -0,0 +1,10 @@
|
||||
<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 output="${temp}/hello.jar">
|
||||
<src path="${test.data}/root1"/>
|
||||
<src path="${test.data}/root2"/>
|
||||
</kotlinc>
|
||||
</target>
|
||||
</project>
|
||||
@@ -0,0 +1,2 @@
|
||||
OUT Hello, a!
|
||||
Return code: 0
|
||||
@@ -0,0 +1,7 @@
|
||||
package Hello
|
||||
|
||||
fun main(args : Array<String>) {
|
||||
for (s in arrayList("a"))
|
||||
println("Hello, $s!")
|
||||
foo()
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
package Hello
|
||||
|
||||
fun foo() {}
|
||||
Reference in New Issue
Block a user