org.apache.cactus.integration.ant.deployment
Class WebXmlMerger

java.lang.Object
  extended byorg.apache.cactus.integration.ant.deployment.WebXmlMerger

public class WebXmlMerger
extends java.lang.Object

Helper class that can merge two web deployment descriptors.

Since:
Cactus 1.5
Version:
$Id: WebXmlMerger.java,v 1.4 2003/06/10 09:20:32 cmlenz Exp $
Author:
Christopher Lenz

Constructor Summary
WebXmlMerger(WebXml theWebXml)
          Constructor.
 
Method Summary
 void merge(WebXml theMergeWebXml)
          Merges the merge descriptor with the original descriptor.
 void setLog(org.apache.commons.logging.Log theLog)
          Sets the log to which events should be written.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebXmlMerger

public WebXmlMerger(WebXml theWebXml)
Constructor.

Parameters:
theWebXml - The original descriptor
Method Detail

merge

public final void merge(WebXml theMergeWebXml)
Merges the merge descriptor with the original descriptor.

Parameters:
theMergeWebXml - The descriptor to merge in

setLog

public final void setLog(org.apache.commons.logging.Log theLog)
Sets the log to which events should be written. This method must be called before any of the other methods, because the class will rely on being able to log.

Parameters:
theLog - The log to use


Copyright © 2000-2003 Apache Software Foundation. All Rights Reserved.