Package com.redhat.ceylon.compiler.java.metadata

Examples of com.redhat.ceylon.compiler.java.metadata.Module


        final ClassLoaderHolder clh = createClassLoader(name, mv, conf);

        mv = clh.getVersion();
        final ClassLoader cl = clh.getClassLoader();

        Module runtimeModule = loadModuleMetaData(cl, name);
        if (runtimeModule != null) {
            final String mn = runtimeModule.name();
            if (name.equals(mn) == false) {
                throw new CeylonRuntimeException("Input module name doesn't match module's name: " + name + " != " + mn);
            }

            final String version = runtimeModule.version();
            if (mv.equals(version) == false && Constants.DEFAULT.toString().equals(name) == false) {
                throw new CeylonRuntimeException("Input module version doesn't match module's version: " + mv + " != " + version);
            }
        } else if (Constants.DEFAULT.toString().equals(name) == false) {
            // Don't throw, we might be executing a plain Java module!
View Full Code Here

TOP

Related Classes of com.redhat.ceylon.compiler.java.metadata.Module

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.