Package com.redhat.ceylon.cmr.api

Examples of com.redhat.ceylon.cmr.api.ModuleInfo


    // Check the properties descriptor file for problems and at the same time
    // remove all classes that are found within the imported modules
    // from the given set of external class names
    private void checkModuleProperties(File descriptorFile, Set<String> externalClasses, Set<ModuleDependencyInfo> expectedDependencies) throws IOException {
        try{
            ModuleInfo dependencies = PropertiesDependencyResolver.INSTANCE.resolveFromFile(descriptorFile);
            checkDependencies(dependencies, externalClasses, expectedDependencies);
        }catch(ImportJarException x){
            throw x;
        }catch(IOException x){
            throw x;
View Full Code Here


    // Check the XML descriptor file for problems and at the same time
    // remove all classes that are found within the imported modules
    // from the given set of external class names
    private void checkModuleXml(File descriptorFile, Set<String> externalClasses, Set<ModuleDependencyInfo> expectedDependencies) throws IOException {
        try{
            ModuleInfo dependencies = XmlDependencyResolver.INSTANCE.resolveFromFile(descriptorFile);
            checkDependencies(dependencies, externalClasses, expectedDependencies);
        }catch(ImportJarException x){
            throw x;
        }catch(IOException x){
            throw x;
View Full Code Here

        private Module loadFromResolver(File file, ZipFile zipFile, ZipEntry moduleDescriptor,
                                        DependencyResolver dependencyResolver, String name, String version,
                                        Type moduleType) throws IOException {
            InputStream inputStream = zipFile.getInputStream(moduleDescriptor);
            try{
                ModuleInfo moduleDependencies = dependencyResolver.resolveFromInputStream(inputStream);
                Module module = new Module(name, version, moduleType, file);
                for(ModuleDependencyInfo dep : moduleDependencies.getDependencies()){
                    module.addDependency(dep.getName(), dep.getVersion(), dep.isOptional(), dep.isExport());
                }
                return module;
            }finally{
                inputStream.close();
View Full Code Here

TOP

Related Classes of com.redhat.ceylon.cmr.api.ModuleInfo

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.