org.apache.felix.obrplugin

Class ObrUtils

public class ObrUtils extends Object

Various OBR utility methods

Author: Felix Project Team

Method Summary
static URIfindObrXml(Collection resources)
static URIfindRepositoryXml(String mavenRepository, String obrRepository)
static URIgetArtifactURI(ArtifactRepository repository, Artifact artifact)
static URIgetRelativeURI(URI repositoryXml, URI bundleJar)
static URItoFileURI(String path)

Method Detail

findObrXml

public static URI findObrXml(Collection resources)

Parameters: resources collection of resource locations

Returns: URI pointing to correct obr.xml, null if not found

findRepositoryXml

public static URI findRepositoryXml(String mavenRepository, String obrRepository)

Parameters: mavenRepository path to local maven repository obrRepository path to specific repository.xml

Returns: URI pointing to correct repository.xml

getArtifactURI

public static URI getArtifactURI(ArtifactRepository repository, Artifact artifact)

Parameters: repository maven repository artifact maven artifact

Returns: file URI pointing to artifact in repository

getRelativeURI

public static URI getRelativeURI(URI repositoryXml, URI bundleJar)

Parameters: repositoryXml URI pointing to repository.xml, or directory containing it bundleJar URI pointing to bundle jarfile

Returns: relative URI to bundle jarfile

toFileURI

public static URI toFileURI(String path)

Parameters: path filesystem path

Returns: file URI for the path

Copyright © 2006-2009 Apache Software Foundation. All Rights Reserved.