Package com.redhat.ceylon.common.tools

Examples of com.redhat.ceylon.common.tools.SourceArgumentsResolver


                .addSrcDirectory(src);
        } else {
            t0=System.nanoTime();
            tcb = new TypeCheckerBuilder();
           
            SourceArgumentsResolver resolver = new SourceArgumentsResolver(roots, resources, Constants.CEYLON_SUFFIX, Constants.JS_SUFFIX);
            resolver
                .cwd(cwd)
                .expandAndParse(files);
            onlySources = resolver.getSourceFiles();
            onlyResources = resolver.getResourceFiles();
           
            if (opts.isVerbose()) {
                append("Adding source directories to typechecker:" + roots).newline();
            }
            for (File root : roots) {
                tcb.addSrcDirectory(root);
            }
            if (!resolver.getSourceModules().isEmpty()) {
                tcb.setModuleFilters(resolver.getSourceModules());
            }
            tcb.statistics(opts.isProfile());
            JsModuleManagerFactory.setVerbose(opts.isVerbose());
            tcb.moduleManagerFactory(new JsModuleManagerFactory(encoding));
        }
View Full Code Here


            System.out.flush();
        }
    }

    private void validateSourceArguments(List<String> modulesOrFiles) throws IOException {
        SourceArgumentsResolver resolver = new SourceArgumentsResolver(this.sources, this.resources, Constants.CEYLON_SUFFIX, Constants.JAVA_SUFFIX);
        resolver.cwd(cwd).parse(modulesOrFiles);
    }
View Full Code Here

    // Now add the files for each of the modules that were given on the command line
    @SuppressWarnings("unchecked")
    private List<File> addModuleFiles(List<File> filenames) throws IOException {
        Iterable<File> srcdirs = (Iterable<File>) ((JavacFileManager)fileManager).getLocation(StandardLocation.SOURCE_PATH);
        Iterable<File> resdirs = (Iterable<File>) ((JavacFileManager)fileManager).getLocation(CeylonLocation.RESOURCE_PATH);
        SourceArgumentsResolver resolver = new SourceArgumentsResolver(srcdirs, resdirs, Constants.CEYLON_SUFFIX, Constants.JAVA_SUFFIX);
        resolver.parse(classnames.toList());
        filenames = appendAll(filenames, resolver.getSourceFiles());
        filenames = appendAll(filenames, resolver.getResourceFiles());
        return filenames;
    }
View Full Code Here

TOP

Related Classes of com.redhat.ceylon.common.tools.SourceArgumentsResolver

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.