Package com.redhat.ceylon.compiler.java.runtime.tools

Examples of com.redhat.ceylon.compiler.java.runtime.tools.Runner.cleanup()


        options.addUserRepository(OutputRepository);
        options.addExtraModule("modules.extra", "1");

        Runner runner = CeylonToolProvider.getRunner(Backend.JavaScript, options, "modules.hello", "1");
        runner.run();
        runner.cleanup();
    }

    @Test
    public void testJavaRunner() throws Exception{
        runInNewJVM();
View Full Code Here


        Runner runner = CeylonToolProvider.getRunner(Backend.Java, options, "modules.usesProvided", "1");
        runner.run();
        // make sure we only got our two modules in the CL
        Assert.assertTrue(runner instanceof JavaRunnerImpl);
        Assert.assertEquals(2, ((JavaRunnerImpl) runner).getClassLoaderURLs().length);
        runner.cleanup();
    }

    private void testCompiler(Compiler compiler, String module, String expectedVersion) throws IOException {
        File moduleStart = new File("test-jvm/"+module.replace('.', '/'));
        final List<File> ceylonFiles = new LinkedList<File>();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.