Package org.reficio.p2.utils
Class BundleUtils
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.apache.felix.bundleplugin.BundlePlugin
-
- org.reficio.p2.utils.BundleUtils
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
public class BundleUtils extends org.apache.felix.bundleplugin.BundlePlugin- Since:
- 1.0.0
- Author:
- Tom Bujok (tom.bujok@gmail.com)
Reficio (TM) - Reestablish your software!
http://www.reficio.org
-
-
Field Summary
Fields Modifier and Type Field Description static BundleUtilsINSTANCE-
Fields inherited from class org.apache.felix.bundleplugin.BundlePlugin
artifactFactory, artifactResolver, buildContext, classifier, createDependencyReducedPom, dependencyGraphBuilder, dependencyReducedPomLocation, dumpClasspath, dumpInstructions, excludeDependencies, exportScr, localRepository, manifestLocation, mavenProjectBuilder, niceManifest, noWarningProjectTypes, packaging, project, remoteArtifactRepositories, scrLocation, session, supportedProjectTypes, unpackBundle
-
-
Constructor Summary
Constructors Constructor Description BundleUtils()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.apache.maven.artifact.ArtifactaetherToMavenArtifactBasic(Artifact artifact)StringcalculateBundleSymbolicName(Artifact artifact)StringcalculateBundleVersion(Artifact artifact)StringcleanupVersion(String version)StringgetBundleName(aQute.bnd.osgi.Jar jar)StringgetBundleSymbolicName(aQute.bnd.osgi.Jar jar)StringgetBundleVersion(aQute.bnd.osgi.Jar jar)booleanisBundle(aQute.bnd.osgi.Jar jar)booleanisBundle(File file)booleanisReuseSnapshotVersionFromArtifact()booleanreportErrors(aQute.bnd.osgi.Analyzer analyzer)voidsetReuseSnapshotVersionFromArtifact(boolean in)static PropertiestransformDirectivesToProperties(Map<String,String> instructions)-
Methods inherited from class org.apache.felix.bundleplugin.BundlePlugin
addMavenInstructions, addMavenSourcePath, buildOSGiBundle, convertVersionToOsgi, dumpClasspath, dumpInstructions, dumpManifest, execute, execute, getBase, getBuildDirectory, getBundleName, getClasspath, getDefaultProperties, getEmbeddableArtifacts, getFile, getInstructions, getMaven2OsgiConverter, getMavenResourcePaths, getOptionalPackages, getOSGiBuilder, getOutputDirectory, getProject, includeJava9Fixups, includeMavenResources, isTransitivelyOptional, mergeManifest, mergeMavenManifest, removeTagFromInstruction, reportErrors, sanitize, sanitize, setBuildDirectory, setOutputDirectory, transformDirectives, updateExcludesInDeps
-
-
-
-
Field Detail
-
INSTANCE
public static final BundleUtils INSTANCE
-
-
Method Detail
-
reportErrors
public boolean reportErrors(aQute.bnd.osgi.Analyzer analyzer)
-
aetherToMavenArtifactBasic
public static org.apache.maven.artifact.Artifact aetherToMavenArtifactBasic(Artifact artifact)
-
isBundle
public boolean isBundle(File file)
-
isBundle
public boolean isBundle(aQute.bnd.osgi.Jar jar)
-
getBundleSymbolicName
public String getBundleSymbolicName(aQute.bnd.osgi.Jar jar)
-
getBundleVersion
public String getBundleVersion(aQute.bnd.osgi.Jar jar)
-
getBundleName
public String getBundleName(aQute.bnd.osgi.Jar jar)
-
transformDirectivesToProperties
public static Properties transformDirectivesToProperties(Map<String,String> instructions)
-
setReuseSnapshotVersionFromArtifact
public void setReuseSnapshotVersionFromArtifact(boolean in)
-
isReuseSnapshotVersionFromArtifact
public boolean isReuseSnapshotVersionFromArtifact()
-
-