org.apache.felix.obrplugin
public class ObrUtils extends Object
Method Summary | |
---|---|
static URI | findObrXml(Collection resources) |
static URI | findRepositoryXml(String mavenRepository, String obrRepository) |
static URI | getArtifactURI(ArtifactRepository repository, Artifact artifact) |
static URI | getRelativeURI(URI repositoryXml, URI bundleJar) |
static URI | toFileURI(String path) |
Parameters: resources collection of resource locations
Returns: URI pointing to correct obr.xml, null if not found
Parameters: mavenRepository path to local maven repository obrRepository path to specific repository.xml
Returns: URI pointing to correct repository.xml
Parameters: repository maven repository artifact maven artifact
Returns: file URI pointing to artifact in repository
Parameters: repositoryXml URI pointing to repository.xml, or directory containing it bundleJar URI pointing to bundle jarfile
Returns: relative URI to bundle jarfile
Parameters: path filesystem path
Returns: file URI for the path