added ant goal to compile the testlib test cases

This commit is contained in:
James Strachan
2012-02-20 10:01:57 +00:00
parent 33af436b38
commit 70bb9aec93
2 changed files with 35 additions and 0 deletions
+25
View File
@@ -61,6 +61,31 @@
</java>
</target>
<target name="compileTestlib" depends="jarRT">
<mkdir dir="${output}/classes/testlib"/>
<java classname="org.jetbrains.jet.cli.KotlinCompiler">
<classpath>
<path refid="classpath"/>
<pathelement location="${kotlin-home}/lib/kotlin-compiler.jar"/>
<!--
<pathelement location="${kotlin-home}/lib/kotlin-runtime.jar"/>
<pathelement location="${basedir}/testlib/lib/junit-4.9.jar"/>
<fileset dir="${basedir}/testlib/lib">
<include name="**/*.jar"/>
</fileset>
-->
</classpath>
<arg value="-stdlib"/>
<arg value="${kotlin-home}/lib/kotlin-runtime.jar"/>
<arg value="-src"/>
<arg value="${basedir}/testlib/test"/>
<arg value="-output"/>
<arg value="${output}/classes/testlib"/>
<arg value="-module"/>
<arg value="${basedir}/testlib/module.kt"/>
</java>
</target>
<target name="compileJDKHeaders" depends="jar">
<mkdir dir="${output}/classes/stdlib"/>
<java classname="org.jetbrains.jet.cli.KotlinCompiler">
+10
View File
@@ -0,0 +1,10 @@
import kotlin.modules.*
fun project() {
module("testlib") {
// TODO how to refer to the dir of the module?
classpath += "testlib/lib/junit-4.9.jar"
addSourceFiles("test")
}
}