Don't always run code in Ant task tests

But when running code, do it via <java> task, not via custom testing code. Most
of the time the compiled code need not be runned, because it's irrelevant to
the Ant task itself
This commit is contained in:
Alexander Udalov
2015-06-04 22:02:23 +03:00
parent 968d362b77
commit 0f6c23e1c4
21 changed files with 34 additions and 72 deletions
@@ -4,6 +4,7 @@ Buildfile: [TestData]/build.xml
build:
[kotlinc] Compiling [[TestData]/hello.kt] => [[Temp]/hello.jar]
[kotlinc] WARNING: [TestData]/hello.kt: (15, 9) Variable 'result' is never used
[java] OK
BUILD SUCCESSFUL
Total time: [time]
@@ -3,5 +3,12 @@
<target name="build">
<kotlinc src="${test.data}/hello.kt" output="${temp}/hello.jar"/>
<java classname="hello.HelloPackage" fork="true">
<classpath>
<pathelement location="${temp}/hello.jar"/>
<pathelement location="${kotlin.runtime.jar}"/>
</classpath>
</java>
</target>
</project>
@@ -8,7 +8,7 @@ import sun.nio.ByteBuffered
fun main(args : Array<String>) {
val a = Big5() // charsets.jar
val c = DNSNameService() // dnsns.ajr
val c = DNSNameService() // dnsns.jar
val e : Cipher? = null // jce.jar
val f : SunJCE? = null // sunjce_provider.jar
val j : ByteBuffered? = null // rt.jar
@@ -1,4 +0,0 @@
OUT:
OK
Return code: 0