Package com.redhat.ceylon.compiler.js

Examples of com.redhat.ceylon.compiler.js.CeylonRunJsException


            Map<String,Object> model = JSUtils.readJsonModel(jsFile);
            if (model == null) {
                throw new CompilerErrorException("Can't find metamodel definition in " + jsFile.getAbsolutePath());
            }
            if (!model.containsKey("$mod-bin")) {
                throw new CeylonRunJsException("The JavaScript module " + jsFile +
                        " is not compatible with the current version of ceylon-js");
            } else if (!model.get("$mod-bin").toString().equals(BIN_VERSION)) {
                throw new CompilerErrorException(String.format("This Ceylon-JS module has binary version %s is incompatible with the compiler version %s",
                        model.get("$mod-bin"), BIN_VERSION));
            }
View Full Code Here

TOP

Related Classes of com.redhat.ceylon.compiler.js.CeylonRunJsException

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.