org.codehaus.mojo.cis
Class WebXmlMerger

java.lang.Object
  extended by org.codehaus.mojo.cis.WebXmlMerger

public class WebXmlMerger
extends java.lang.Object

This class is used to merge two or more web.xml files.


Constructor Summary
WebXmlMerger()
           
 
Method Summary
 org.w3c.dom.Document merge(org.w3c.dom.Document[] pDocuments)
          Returns a web.xml file, which is obtained by merging the input files.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebXmlMerger

public WebXmlMerger()
Method Detail

merge

public org.w3c.dom.Document merge(org.w3c.dom.Document[] pDocuments)
                           throws javax.xml.parsers.ParserConfigurationException,
                                  org.apache.maven.plugin.MojoFailureException
Returns a web.xml file, which is obtained by merging the input files.

Parameters:
pDocuments - A set of web.xml files, which are being merged.
Returns:
The result document.
Throws:
javax.xml.parsers.ParserConfigurationException
org.apache.maven.plugin.MojoFailureException


Copyright © 2007-2011 The Apache Software Foundation. All Rights Reserved.