Files
kotlin-fork/compiler/testData/integration/ant/js/simpleWithJsFileAsAnotherLibModuleKind/build.xml
T
Ilya Goncharov c726360ad2 Change policy with legacy compiler backend
[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
2022-09-29 13:56:30 +00:00

27 lines
1.0 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.path" value="${test.data}/jslib-example"/>
<property name="temp.library.path" value="${temp}/lib"/>
<target name="build">
<mkdir dir="${temp.library.path}"/>
<kotlin2js src="${library.path}" output="${temp.library.path}/jslib-example.js" metaInfo="true" moduleKind="umd">
<compilerarg value="-Xuse-deprecated-legacy-compiler"/>
</kotlin2js>
<kotlin2js src="${test.data}/root1" output="${temp}/out.js" main="call" moduleKind="amd">
<libraries>
<pathelement path="${temp.library.path}/jslib-example.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>
<copy todir="${temp}" file="${test.data}/amd.js"/>
</target>
</project>