BuildTools: added tests for ant task Kotlin2JsCompilerTask.
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
OUT Buildfile: [TestData]/build.xml
|
||||
OUT
|
||||
OUT build:
|
||||
OUT [kotlin2js] Compiling [[TestData]/root1] => [[Temp]/out.js]
|
||||
OUT
|
||||
OUT BUILD SUCCESSFUL
|
||||
OUT Total time: [time]
|
||||
Return code: 0
|
||||
@@ -0,0 +1,7 @@
|
||||
<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">
|
||||
<kotlin2js src="${test.data}/root1" output="${temp}/out.js" outputPostfix="${test.data}/postfix" />
|
||||
</target>
|
||||
</project>
|
||||
@@ -0,0 +1,3 @@
|
||||
/*
|
||||
some postfix
|
||||
*/
|
||||
@@ -0,0 +1,3 @@
|
||||
package foo
|
||||
|
||||
fun box(): String = "OK"
|
||||
Reference in New Issue
Block a user