Examples of moduleManagerFactory()


Examples of com.redhat.ceylon.compiler.typechecker.TypeCheckerBuilder.moduleManagerFactory()

            if (!resolver.getSourceModules().isEmpty()) {
                tcb.setModuleFilters(resolver.getSourceModules());
            }
            tcb.statistics(opts.isProfile());
            JsModuleManagerFactory.setVerbose(opts.isVerbose());
            tcb.moduleManagerFactory(new JsModuleManagerFactory(encoding));
        }
        //getting the type checker does process all types in the source directory
        tcb.verbose(opts.isVerbose()).setRepositoryManager(repoman);
        tcb.usageWarnings(false).encoding(encoding);
View Full Code Here

Examples of com.redhat.ceylon.compiler.typechecker.TypeCheckerBuilder.moduleManagerFactory()

                    .systemRepo(options.getSystemRepo())
                    .userRepos(options.getRepos())
                    .outRepo(options.getOutRepo())
                    .buildManager();
            TypeCheckerBuilder tcb = new TypeCheckerBuilder().usageWarnings(false);//.verbose(true);
            tcb.moduleManagerFactory(new JsModuleManagerFactory((String)null));
            tcb.addSrcDirectory(new java.io.File("src/test/resources/loader/pass2"));
            tcb.setRepositoryManager(repoman);
            jstc = tcb.getTypeChecker();
            jstc.process();
        }
View Full Code Here

Examples of com.redhat.ceylon.compiler.typechecker.TypeCheckerBuilder.moduleManagerFactory()

    @Test
    public void test() throws IOException {
        //Compile module with 2 packages
        System.out.println("Compiling usemulti");
        TypeCheckerBuilder tcb = new TypeCheckerBuilder().usageWarnings(false);
        tcb.moduleManagerFactory(new JsModuleManagerFactory("UTF-8"));
        tcb.addSrcDirectory(new java.io.File("src/test/resources/multi/pass2"));
        tcb.setRepositoryManager(repoman);
        TypeChecker tc = tcb.getTypeChecker();
        tc.process();
        Options options = new Options().addRepo("build/test/test_modules").outRepo("build/test/test_modules")
View Full Code Here

Examples of com.redhat.ceylon.compiler.typechecker.TypeCheckerBuilder.moduleManagerFactory()

        List<File> srcs = FileUtil.applyCwd(cwd, sourceFolders);
        List<String> expandedModules = ModuleWildcardsHelper.expandWildcards(srcs , moduleSpecs);
        final List<ModuleSpec> modules = ModuleSpec.parseEachList(expandedModules);
       
        // we need to plug in the module manager which can load from .cars
        builder.moduleManagerFactory(new ModuleManagerFactory(){
            @Override
            public ModuleManager createModuleManager(Context context) {
                return new CeylonDocModuleManager(CeylonDocTool.this, context, modules, outputRepositoryManager, log);
            }
        });
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.