@Component(role=ReportingConverter.class) public class DefaultReportingConverter extends java.lang.Object implements ReportingConverter
<reporting>
section into the configuration of Maven Site Plugin 3.x,
i.e. reportPlugins
and outputDirectory
parameters.Constructor and Description |
---|
DefaultReportingConverter() |
Modifier and Type | Method and Description |
---|---|
private void |
addDom(org.codehaus.plexus.util.xml.Xpp3Dom parent,
java.lang.String childName,
java.lang.String childValue) |
private org.codehaus.plexus.util.xml.Xpp3Dom |
convert(ReportPlugin plugin) |
private org.codehaus.plexus.util.xml.Xpp3Dom |
convert(ReportSet reportSet) |
void |
convertReporting(Model model,
ModelBuildingRequest request,
ModelProblemCollector problems)
Converts values from model's reporting section into the configuration for Maven Site Plugin 3.x.
|
private Plugin |
findSitePlugin(Build build) |
private boolean |
isSitePlugin(Plugin plugin) |
private org.codehaus.plexus.util.xml.Xpp3Dom |
newDom(java.lang.String name,
java.lang.String value) |
public void convertReporting(Model model, ModelBuildingRequest request, ModelProblemCollector problems)
ReportingConverter
convertReporting
in interface ReportingConverter
model
- The model whose reporting section should be converted, must not be null
.request
- The model building request that holds further settings, must not be null
.problems
- The container used to collect problems that were encountered, must not be null
.private boolean isSitePlugin(Plugin plugin)
private org.codehaus.plexus.util.xml.Xpp3Dom convert(ReportPlugin plugin)
private org.codehaus.plexus.util.xml.Xpp3Dom convert(ReportSet reportSet)
private void addDom(org.codehaus.plexus.util.xml.Xpp3Dom parent, java.lang.String childName, java.lang.String childValue)
private org.codehaus.plexus.util.xml.Xpp3Dom newDom(java.lang.String name, java.lang.String value)