src/main/java/com/yelbota/plugins/adt/model/ApplicationDescriptorModel.java
/**
     * Pretty print to outputFile
     *
     * @param outputFile file to print.
     * @throws MojoFailureException
     */
Pretty print to outputFile
@param outputFile file to print.
Pretty print to outputFile @param outputFile file to print .
public void printToFile(File outputFile) throws MojoFailureException {
        configureDescriptor();
        OutputFormat format = new OutputFormat(dom);
        format.setLineWidth(65);
        format.setIndenting(true);
        format.setIndent(2);
        try {
            FileOutputStream out = new FileOutputStream(outputFile);
            XMLSerializer serializer = new XMLSerializer(out, format);
            serializer.serialize(dom);
        } catch (IOException e) {
            throw new MojoFailureException("Cant write to " + outputFile.getPath());
        }
    }
public void printToFile ( File outputFile ) throws MojoFailureException { configureDescriptor ( ) ; OutputFormat format = new OutputFormat ( dom ) ; format . setLineWidth ( 65 ) ; format . setIndenting ( true ) ; format . setIndent ( 2 ) ; try { FileOutputStream out = new FileOutputStream ( outputFile ) ; XMLSerializer serializer = new XMLSerializer ( out , format ) ; serializer . serialize ( dom ) ; } catch ( IOException e ) { throw new MojoFailureException ( "Cant write to " + outputFile . getPath ( ) ) ; } }
Pretty print to outputFile
 @param outputFile file to print.
Pretty print to outputFile @param outputFile file to print .