Package com.envoisolutions.sxc.compiler

Examples of com.envoisolutions.sxc.compiler.Compiler


                throw new BuildException(e);
            }
        }

        // compile the generated code
        Compiler compiler = Compiler.newInstance(this.compiler);
        ClassLoader classLoader = compiler.compile(codeWriter.getSources());

        // Only delete if the output directory hasn't been set
        if (System.getProperty("com.envoisolutions.sxc.output.directory") == null) {
            Util.delete(codeWriter.getBaseDir());
        }
View Full Code Here


    }

    public Collection<JAXBClass> compile() {
        if (!jaxbObjectBuilders.isEmpty() || !jaxbEnumBuilders.isEmpty() || !jaxbObjectFactoryBuilders.isEmpty()) {
            // compile the generated code
            Compiler compiler = Compiler.newInstance((String) properties.get("org.sxc.compiler"));
            ClassLoader classLoader = compiler.compile(getSources());

            // load the generated classes
            for (Class type : jaxbObjectBuilders.keySet()) {
                JAXBClass jaxbClass = JAXBIntrospectorImpl.loadJAXBClass(type, classLoader);
                if (jaxbClass != null) {
View Full Code Here

TOP

Related Classes of com.envoisolutions.sxc.compiler.Compiler

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.