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

Examples of com.redhat.ceylon.compiler.java.runtime.tools.Runner


        options.setSystemRepository(SystemRepo);
        options.addUserRepository("flat:"+FlatRepoLib);
        options.addUserRepository(OutputRepository);
        options.addExtraModule("modules.extra", "1");

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


        options.addUserRepository("flat:"+FlatRepoLib);
        options.addUserRepository("flat:"+FlatRepoOverrides);
        options.addUserRepository(OutputRepository);
        options.addExtraModule("modules.extra", "1");
       
        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();
    }
View Full Code Here

TOP

Related Classes of com.redhat.ceylon.compiler.java.runtime.tools.Runner

Copyright © 2018 www.massapicom. 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.