c726360ad2
[JS] Remove incremental js jps test [JS] Remove test of maven js archetype [JS] Fix another one test [JS] Fix tests for jps [JS] Try to fix maven test data [JS] Fix test data [JS] Fix test data for ant [JS] Fix jsExtraHelp test [JS] Fix test run from not-Gradle build tools [JS] Set flag without compiler error [JS] Disable warnings and errors in legacy compiler called from Gradle [JS] Proofread messages [JS] Not proofread messages KT-42326
34 lines
1.4 KiB
XML
Vendored
34 lines
1.4 KiB
XML
Vendored
<project name="Ant Task Test" default="build">
|
|
<taskdef resource="org/jetbrains/kotlin/ant/antlib.xml" classpath="${kotlin.lib}/kotlin-ant.jar"/>
|
|
<property name="library.path1" value="${test.data}/jslib-example1"/>
|
|
<property name="library.path2" value="${test.data}/jslib-example2"/>
|
|
<property name="temp.library.path" value="${temp}/lib"/>
|
|
<target name="build">
|
|
<mkdir dir="${temp.library.path}"/>
|
|
|
|
<kotlin2js src="${library.path1}" output="${temp.library.path}/jslib-example1.js" metaInfo="true">
|
|
<compilerarg value="-Xuse-deprecated-legacy-compiler"/>
|
|
</kotlin2js>
|
|
<kotlin2js src="${library.path2}" output="${temp.library.path}/jslib-example2.js" metaInfo="true">
|
|
<libraries>
|
|
<pathelement path="${temp.library.path}/jslib-example1.meta.js"/>
|
|
</libraries>
|
|
<compilerarg value="-Xuse-deprecated-legacy-compiler"/>
|
|
</kotlin2js>
|
|
|
|
<kotlin2js src="${test.data}/root1" output="${temp}/out.js" main="call">
|
|
<libraries>
|
|
<pathelement path="${temp.library.path}/jslib-example1.meta.js"/>
|
|
<pathelement path="${temp.library.path}/jslib-example2.meta.js"/>
|
|
</libraries>
|
|
<compilerarg value="-Xuse-deprecated-legacy-compiler"/>
|
|
</kotlin2js>
|
|
<copy todir="${temp}">
|
|
<fileset dir="${temp.library.path}">
|
|
<include name="**/*.js"/>
|
|
<exclude name="META-INF/**"/>
|
|
</fileset>
|
|
</copy>
|
|
</target>
|
|
</project>
|