Package org.apache.maven.model.plugin
Class DefaultReportingConverter
- java.lang.Object
-
- org.apache.maven.model.plugin.DefaultReportingConverter
-
- All Implemented Interfaces:
ReportingConverter
@Named @Singleton public class DefaultReportingConverter extends java.lang.Object implements ReportingConverter
Handles conversion of the<reporting>section into the configuration of Maven Site Plugin 3.x, i.e.reportPluginsandoutputDirectoryparameters.
-
-
Field Summary
Fields Modifier and Type Field Description private InputLocationlocation
-
Constructor Summary
Constructors Constructor Description DefaultReportingConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidaddDom(org.codehaus.plexus.util.xml.Xpp3Dom parent, java.lang.String childName, java.lang.String childValue)private voidaddDom(org.codehaus.plexus.util.xml.Xpp3Dom parent, java.lang.String childName, java.lang.String childValue, InputLocation location)private org.codehaus.plexus.util.xml.Xpp3Domconvert(ReportPlugin plugin)private org.codehaus.plexus.util.xml.Xpp3Domconvert(ReportSet reportSet)voidconvertReporting(Model model, ModelBuildingRequest request, ModelProblemCollector problems)Converts values from model's reporting section into the configuration for Maven Site Plugin 3.x.private PluginfindSitePlugin(Build build)private booleanisSitePlugin(Plugin plugin)private org.codehaus.plexus.util.xml.Xpp3DomnewDom(java.lang.String name, java.lang.String value, InputLocation location)
-
-
-
Field Detail
-
location
private final InputLocation location
-
-
Method Detail
-
convertReporting
public void convertReporting(Model model, ModelBuildingRequest request, ModelProblemCollector problems)
Description copied from interface:ReportingConverterConverts values from model's reporting section into the configuration for Maven Site Plugin 3.x.- Specified by:
convertReportingin interfaceReportingConverter- Parameters:
model- The model whose reporting section should be converted, must not benull.request- The model building request that holds further settings, must not benull.problems- The container used to collect problems that were encountered, must not benull.
-
isSitePlugin
private boolean isSitePlugin(Plugin plugin)
-
convert
private org.codehaus.plexus.util.xml.Xpp3Dom convert(ReportPlugin plugin)
-
convert
private org.codehaus.plexus.util.xml.Xpp3Dom convert(ReportSet reportSet)
-
addDom
private void addDom(org.codehaus.plexus.util.xml.Xpp3Dom parent, java.lang.String childName, java.lang.String childValue)
-
addDom
private void addDom(org.codehaus.plexus.util.xml.Xpp3Dom parent, java.lang.String childName, java.lang.String childValue, InputLocation location)
-
newDom
private org.codehaus.plexus.util.xml.Xpp3Dom newDom(java.lang.String name, java.lang.String value, InputLocation location)
-
-