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 FileSpecifies 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, supportedProjectTypesFields inherited from interface org.apache.maven.reporting.MavenReport
CATEGORY_PROJECT_INFORMATION, CATEGORY_PROJECT_REPORTS, ROLEFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected voidprotected voidendBaseline(Object context) protected voidprotected voidendPackage(Object context) voidprivate ResourceBundlegetDescription(Locale locale) protected ObjectbooleanvoidsetReportOutputDirectory(File outputDirectory) protected voidstartBaseline(Object context, String generationDate, String bundleName, String currentVersion, String previousVersion) protected voidprotected voidstartPackage(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, executeMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
initin classAbstractBaselinePlugin
-
close
- Specified by:
closein classAbstractBaselinePlugin
-
startBaseline
protected void startBaseline(Object context, String generationDate, String bundleName, String currentVersion, String previousVersion) - Specified by:
startBaselinein 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:
startPackagein classAbstractBaselinePlugin
-
startDiff
protected void startDiff(Object context, int depth, String type, String name, String delta, String shortDelta) - Specified by:
startDiffin classAbstractBaselinePlugin
-
endDiff
- Specified by:
endDiffin classAbstractBaselinePlugin
-
endPackage
- Specified by:
endPackagein classAbstractBaselinePlugin
-
endBaseline
- Specified by:
endBaselinein classAbstractBaselinePlugin
-
canGenerateReport
public boolean canGenerateReport()- Specified by:
canGenerateReportin 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:
generatein interfaceorg.apache.maven.reporting.MavenReport- Throws:
org.apache.maven.reporting.MavenReportException
-
getCategoryName
- Specified by:
getCategoryNamein interfaceorg.apache.maven.reporting.MavenReport
-
getDescription
- Specified by:
getDescriptionin interfaceorg.apache.maven.reporting.MavenReport
-
getName
- Specified by:
getNamein interfaceorg.apache.maven.reporting.MavenReport
-
getBundle
-
getOutputName
- Specified by:
getOutputNamein interfaceorg.apache.maven.reporting.MavenReport
-
getReportOutputDirectory
- Specified by:
getReportOutputDirectoryin interfaceorg.apache.maven.reporting.MavenReport
-
isExternalReport
public boolean isExternalReport()- Specified by:
isExternalReportin interfaceorg.apache.maven.reporting.MavenReport
-
setReportOutputDirectory
- Specified by:
setReportOutputDirectoryin interfaceorg.apache.maven.reporting.MavenReport
-