Class BaselineReport
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.felix.bundleplugin.baseline.AbstractBaselinePlugin
org.apache.felix.bundleplugin.baseline.BaselineReport
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
,org.apache.maven.reporting.MavenReport
@Mojo(name="baseline-report",
threadSafe=true,
defaultPhase=SITE)
public final class BaselineReport
extends AbstractBaselinePlugin
implements org.apache.maven.reporting.MavenReport
BND Baseline report.
- Since:
- 2.4.1
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate File
Specifies the directory where the report will be generated.Fields inherited from class org.apache.felix.bundleplugin.baseline.AbstractBaselinePlugin
buildContext, comparisonArtifactId, comparisonClassifier, comparisonGroupId, comparisonPackaging, comparisonVersion, factory, failOnError, failOnWarning, project, resolver, session, skip, supportedProjectTypes
Fields inherited from interface org.apache.maven.reporting.MavenReport
CATEGORY_PROJECT_INFORMATION, CATEGORY_PROJECT_REPORTS, ROLE
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
protected void
protected void
endBaseline
(Object context) protected void
protected void
endPackage
(Object context) void
private ResourceBundle
getDescription
(Locale locale) protected Object
boolean
void
setReportOutputDirectory
(File outputDirectory) protected void
startBaseline
(Object context, String generationDate, String bundleName, String currentVersion, String previousVersion) protected void
protected void
startPackage
(Object context, boolean mismatch, String packageName, String shortDelta, String delta, aQute.bnd.version.Version newerVersion, aQute.bnd.version.Version olderVersion, aQute.bnd.version.Version suggestedVersion, DiffMessage diffMessage, Map<String, String> attributes) Methods inherited from class org.apache.felix.bundleplugin.baseline.AbstractBaselinePlugin
execute, execute
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.maven.reporting.MavenReport
getOutputPath
-
Field Details
-
outputDirectory
Specifies the directory where the report will be generated.
-
-
Constructor Details
-
BaselineReport
public BaselineReport()
-
-
Method Details
-
init
- Specified by:
init
in classAbstractBaselinePlugin
-
close
- Specified by:
close
in classAbstractBaselinePlugin
-
startBaseline
protected void startBaseline(Object context, String generationDate, String bundleName, String currentVersion, String previousVersion) - Specified by:
startBaseline
in classAbstractBaselinePlugin
-
startPackage
protected void startPackage(Object context, boolean mismatch, String packageName, String shortDelta, String delta, aQute.bnd.version.Version newerVersion, aQute.bnd.version.Version olderVersion, aQute.bnd.version.Version suggestedVersion, DiffMessage diffMessage, Map<String, String> attributes) - Specified by:
startPackage
in classAbstractBaselinePlugin
-
startDiff
protected void startDiff(Object context, int depth, String type, String name, String delta, String shortDelta) - Specified by:
startDiff
in classAbstractBaselinePlugin
-
endDiff
- Specified by:
endDiff
in classAbstractBaselinePlugin
-
endPackage
- Specified by:
endPackage
in classAbstractBaselinePlugin
-
endBaseline
- Specified by:
endBaseline
in classAbstractBaselinePlugin
-
canGenerateReport
public boolean canGenerateReport()- Specified by:
canGenerateReport
in interfaceorg.apache.maven.reporting.MavenReport
-
generate
public void generate(org.apache.maven.doxia.sink.Sink sink, Locale locale) throws org.apache.maven.reporting.MavenReportException - Specified by:
generate
in interfaceorg.apache.maven.reporting.MavenReport
- Throws:
org.apache.maven.reporting.MavenReportException
-
getCategoryName
- Specified by:
getCategoryName
in interfaceorg.apache.maven.reporting.MavenReport
-
getDescription
- Specified by:
getDescription
in interfaceorg.apache.maven.reporting.MavenReport
-
getName
- Specified by:
getName
in interfaceorg.apache.maven.reporting.MavenReport
-
getBundle
-
getOutputName
- Specified by:
getOutputName
in interfaceorg.apache.maven.reporting.MavenReport
-
getReportOutputDirectory
- Specified by:
getReportOutputDirectory
in interfaceorg.apache.maven.reporting.MavenReport
-
isExternalReport
public boolean isExternalReport()- Specified by:
isExternalReport
in interfaceorg.apache.maven.reporting.MavenReport
-
setReportOutputDirectory
- Specified by:
setReportOutputDirectory
in interfaceorg.apache.maven.reporting.MavenReport
-