Package org.apache.maven.archetype.common.util

Examples of org.apache.maven.archetype.common.util.XMLOutputter


    public void write( Model project, Document document, OutputStream stream )
        throws java.io.IOException
    {
        updateModel( project, "project", new Counter( 0 ), document.getRootElement() );

        XMLOutputter outputter = new XMLOutputter();
        outputter.setFormat( Format.getPrettyFormat().setIndent( "  " ).setLineSeparator( LS ) );
        outputter.output( document, stream );
    } // -- void write(Model, Document, OutputStream)
View Full Code Here


    public void write( Model project, Document document, Writer writer, Format jdomFormat )
        throws java.io.IOException
    {
        updateModel( project, "project", new Counter( 0 ), document.getRootElement() );

        XMLOutputter outputter = new XMLOutputter();
        outputter.setFormat( jdomFormat );
        outputter.output( document, writer );
    } // -- void write(Model, Document, Writer, Format)
View Full Code Here

TOP

Related Classes of org.apache.maven.archetype.common.util.XMLOutputter

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.