24 lines
851 B
XML
24 lines
851 B
XML
<project name="Ant Task Test" default="build">
|
|
|
|
<path id="classpath">
|
|
<fileset dir="${idea.sdk}/lib" includes="annotations.jar"/>
|
|
<fileset dir="${kotlin.home}" includes="kotlin-runtime.jar"/>
|
|
</path>
|
|
|
|
<typedef name = "withKotlin" classname = "org.jetbrains.jet.buildtools.ant.KotlinCompilerAdapter"/>
|
|
|
|
<target name="build">
|
|
<delete dir="${temp}/classes" failonerror="false"/>
|
|
<mkdir dir="${temp}/classes"/>
|
|
<javac destdir="${temp}/classes" includeAntRuntime="false" srcdir="${test.data}/root1">
|
|
<classpath refid="classpath"/>
|
|
<withKotlin externalannotations="${test.data}/root1/b/">
|
|
<externalannotations path="${test.data}/root1/a/" />
|
|
</withKotlin>
|
|
</javac>
|
|
<jar destfile="${temp}/hello.jar">
|
|
<fileset dir="${temp}/classes"/>
|
|
</jar>
|
|
</target>
|
|
</project>
|