Class AbstractMerger
java.lang.Object
org.codehaus.plexus.metadata.merge.AbstractMerger
- All Implemented Interfaces:
Merger
- Direct Known Subclasses:
ComponentsXmlMerger,PlexusXmlMerger
Base class for common mergers.
- Author:
- Brett Porter
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidmergeDescriptors(File outputDescriptor, List<File> descriptors) voidwriteMergedDocument(org.jdom2.Document mergedDocument, File file) Allows writing out a merged JDom Document to the specified file.
-
Constructor Details
-
AbstractMerger
public AbstractMerger()
-
-
Method Details
-
writeMergedDocument
Description 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:
-
mergeDescriptors
- Specified by:
mergeDescriptorsin interfaceMerger- Throws:
IOException
-