org.apache.felix.obr.plugin
Class ObrUpdate
java.lang.Object
org.apache.felix.obr.plugin.ObrUpdate
public class ObrUpdate
- extends java.lang.Object
this class parse the old repository.xml file build the bundle resource description and update the repository.
- Author:
- Felix Project Team
Constructor Summary |
ObrUpdate(java.net.URI repositoryXml,
java.net.URI obrXml,
org.apache.maven.project.MavenProject project,
java.net.URI bundleJar,
java.lang.String mavenRepositoryPath,
Config userConfig,
org.apache.maven.plugin.logging.Log logger)
initialize information. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ObrUpdate
public ObrUpdate(java.net.URI repositoryXml,
java.net.URI obrXml,
org.apache.maven.project.MavenProject project,
java.net.URI bundleJar,
java.lang.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 descriptionbundleJar
- path to the bundle jar filemavenRepositoryPath
- path to the local maven repositoryuserConfig
- user informationlogger
- plugin logger
updateRepository
public void updateRepository()
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.
- Throws:
org.apache.maven.plugin.MojoExecutionException
- if the plugin failed