Package org.codehaus.cargo.maven3.merge
Class MergeWebXml
- java.lang.Object
-
- org.codehaus.cargo.maven3.merge.MergeWebXml
-
- All Implemented Interfaces:
MergeProcessorFactory
public class MergeWebXml extends Object implements MergeProcessorFactory
Merge processor designed for web.xml files.
-
-
Constructor Summary
Constructors Constructor Description MergeWebXml(File configDirectory)
Saves attributes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MergeProcessor
create(WarArchiveMerger wam, org.codehaus.cargo.maven3.Merge xml)
Create a merge processor.File
getConfigDirectory()
protected MergeStrategy
makeStrategy(org.codehaus.plexus.util.xml.Xpp3Dom config)
Create the merge strategy.void
setConfigDirectory(File configDirectory)
-
-
-
Constructor Detail
-
MergeWebXml
public MergeWebXml(File configDirectory)
Saves attributes.- Parameters:
configDirectory
- Configuration directory.
-
-
Method Detail
-
getConfigDirectory
public File getConfigDirectory()
- Returns:
- the configDirectory
-
setConfigDirectory
public void setConfigDirectory(File configDirectory)
- Parameters:
configDirectory
- the configDirectory to set
-
create
public MergeProcessor create(WarArchiveMerger wam, org.codehaus.cargo.maven3.Merge xml)
Create a merge processor.- Specified by:
create
in interfaceMergeProcessorFactory
- Parameters:
wam
- WAR archive merger.xml
- XML merge.- Returns:
null
-
makeStrategy
protected MergeStrategy makeStrategy(org.codehaus.plexus.util.xml.Xpp3Dom config)
Create the merge strategy.- Parameters:
config
-Xpp3Dom
configuration.- Returns:
- Merge strategy with the given configuration.
-
-