Package org.apache.maven.model.io

Examples of org.apache.maven.model.io.DefaultModelWriter


        // FIXME: Looks like there are cases where the model is loaded more than once

        executeManager.install(model);

        if (log.isDebugEnabled()) {
            DefaultModelWriter writer = new DefaultModelWriter();
            StringWriter buff = new StringWriter();
            writer.write(buff, null, model);
            log.debug("Read groovy model: \n" + buff);
        }

        return model;
    }
View Full Code Here


    public void write(final Writer output, final Map<String,Object> options, final Model model) throws IOException {
        assert output != null;
        assert model != null;

        StringWriter buff = new StringWriter();
        DefaultModelWriter writer = new DefaultModelWriter();
        writer.write(buff, options, model);

        Dom2Groovy converter = new Dom2Groovy(new IndentPrinter(new PrintWriter(output), "  "));

        try {
            DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
View Full Code Here

TOP

Related Classes of org.apache.maven.model.io.DefaultModelWriter

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.