Package org.apache.felix.obrplugin
Class ObrUpdate
java.lang.Object
org.apache.felix.obrplugin.ObrUpdate
this class parse the old repository.xml file build the bundle resource description and update the repository.
- Author:
- Felix Project Team
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Parse the repository descriptor file.void
updateRepository
(URI bundleJar, URI sourceJar, URI docJar) update the repository descriptor file.void
-
Constructor Details
-
ObrUpdate
public ObrUpdate(URI repositoryXml, URI obrXml, org.apache.maven.project.MavenProject project, String mavenRepositoryPath, Config userConfig, org.apache.maven.plugin.logging.Log logger) initialize information.- Parameters:
repositoryXml
- path to the repository descriptor fileobrXml
- path and filename to the obr.xml fileproject
- maven project descriptionmavenRepositoryPath
- path to the local maven repositoryuserConfig
- user informationlogger
- plugin logger
-
-
Method Details
-
updateRepository
public void updateRepository(URI bundleJar, URI sourceJar, URI docJar) throws org.apache.maven.plugin.MojoExecutionException update the repository descriptor file. parse the old repository descriptor file, get the old reference of the bundle or determine the id for a new bundle, extract information from bindex set the new information in descriptor file and save it.- Parameters:
bundleJar
- path to the bundle jar filesourceJar
- path to the source jar filedocJar
- path to the docs jar file- Throws:
org.apache.maven.plugin.MojoExecutionException
- if the plugin failed
-
writeRepositoryXml
public void writeRepositoryXml() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
parseRepositoryXml
public void parseRepositoryXml() throws org.apache.maven.plugin.MojoExecutionExceptionParse the repository descriptor file.- Throws:
org.apache.maven.plugin.MojoExecutionException
- if the plugin failed
-