Class AbstractMerger
- java.lang.Object
-
- org.codehaus.plexus.metadata.merge.AbstractMerger
-
- All Implemented Interfaces:
Merger
- Direct Known Subclasses:
ComponentsXmlMerger,PlexusXmlMerger
public abstract class AbstractMerger extends Object implements Merger
Base class for common mergers.- Author:
- Brett Porter
-
-
Constructor Summary
Constructors Constructor Description AbstractMerger()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidmergeDescriptors(File outputDescriptor, List<File> descriptors)voidwriteMergedDocument(org.jdom2.Document mergedDocument, File file)Allows writing out a merged JDom Document to the specified file.
-
-
-
Method Detail
-
writeMergedDocument
public void writeMergedDocument(org.jdom2.Document mergedDocument, File file) throws IOExceptionDescription copied from interface:MergerAllows writing out a merged JDom Document to the specified file.- Specified by:
writeMergedDocumentin interfaceMerger- Parameters:
mergedDocument- the mergedDocumentinstance.file- File to write the merged contents to.- Throws:
IOException- if there was an error while writing merged contents to the specified file.- See Also:
Merger.writeMergedDocument(org.jdom2.Document, java.io.File)
-
mergeDescriptors
public void mergeDescriptors(File outputDescriptor, List<File> descriptors) throws IOException
- Specified by:
mergeDescriptorsin interfaceMerger- Throws:
IOException
-
-