Introducing KotlinPaths to impose some discipline on compiler/library location
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
package Hello
|
||||
|
||||
fun main(args : Array<String>) {
|
||||
System.out.println("Hello!")
|
||||
for (s in arrayList("a"))
|
||||
println("Hello, $s!")
|
||||
|
||||
}
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
OUT Hello!
|
||||
OUT Hello, a!
|
||||
Return code: 0
|
||||
|
||||
@@ -25,10 +25,11 @@ import static junit.framework.Assert.assertEquals;
|
||||
public class AntTaskTest extends KotlinIntegrationTestBase {
|
||||
@Test
|
||||
public void antTaskJvm() throws Exception {
|
||||
final String jar = tmpdir.getTmpDir().getAbsolutePath() + File.separator + "hello.jar";
|
||||
String jar = tmpdir.getTmpDir().getAbsolutePath() + File.separator + "hello.jar";
|
||||
String runtime = new File("dist/kotlinc/lib/kotlin-runtime.jar").getAbsolutePath();
|
||||
|
||||
assertEquals("compilation failed", 0, runAnt("build.log", "build.xml"));
|
||||
runJava("hello.run", "-cp", jar, "Hello.namespace");
|
||||
runJava("hello.run", "-cp", jar + ":" + runtime, "Hello.namespace");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user