public class WarArchiveMerger extends Object implements MergeProcessor
Constructor and Description |
---|
WarArchiveMerger()
Constructor Class for merging War archives together.
|
Modifier and Type | Method and Description |
---|---|
void |
addMergeItem(Object mergeItem)
Add an item to be merged.
|
void |
addMergeProcessor(String path,
MergeProcessor merger)
Add a merging processor that merges specified items witin the war files.
|
WebXmlMerger |
getWebXmlMerger()
Get the class used for web xml merging.
|
Object |
performMerge()
Perform the merge.
|
void |
performMerge(File targetFile)
Perform the archive merge, using the specified file as the output destination.
|
void |
setMergeJarFiles(boolean doMergeJarFiles)
Control whether the merge should include JAR files.
|
public WarArchiveMerger()
public void addMergeProcessor(String path, MergeProcessor merger)
path
- in the path to merge tomerger
- in the mergerpublic void addMergeItem(Object mergeItem) throws MergeException
addMergeItem
in interface MergeProcessor
mergeItem
- in the item to merge.MergeException
- on exceptionsMergeProcessor.addMergeItem(java.lang.Object)
public Object performMerge()
performMerge
in interface MergeProcessor
MergeProcessor.performMerge()
public void performMerge(File targetFile) throws IOException, org.jdom.JDOMException
targetFile
- The target file to output to.org.jdom.JDOMException
- If a JDOM exception occursIOException
- If an IO exception occurspublic void setMergeJarFiles(boolean doMergeJarFiles)
doMergeJarFiles
- true if we do (default)public WebXmlMerger getWebXmlMerger()
Copyright © 2004-2013 Codehaus. All Rights Reserved.