org.lsst.ccs.utilities.jars
Class MavenResources

java.lang.Object
  extended by org.lsst.ccs.utilities.jars.MavenResources

public class MavenResources
extends Object

Author:
bamade

Constructor Summary
MavenResources()
           
 
Method Summary
static Properties getMavenProjectProperties(String project)
          a facility method to fetch our $Project.maven.properties based on standard resource algorithm (it supposes there is only one jar for the same project in the ClassPath).
static URL[] getMavenProjectURLs(String project)
          returns an URL for our specific $Project.maven.properties file linked to a maven project.
static Properties getPomProperties(String org, String project)
          a facility method based on standard resource algorithm (it supposes there is only one jar for the same project in the ClassPath).
static URL[] getPomURLs(String org, String project)
          returns an URL for the pom.properties file linked to a maven project.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MavenResources

public MavenResources()
Method Detail

getPomURLs

public static URL[] getPomURLs(String org,
                               String project)
returns an URL for the pom.properties file linked to a maven project.
It returns an array just in case there were many jars with the same projects (an unlikely occurence!)

Parameters:
org - the organisation (e.g. "org.lsst")
project - such as "org-lsst-ccs-core"
Returns:

getMavenProjectURLs

public static URL[] getMavenProjectURLs(String project)
returns an URL for our specific $Project.maven.properties file linked to a maven project.
It returns an array just in case there were many jars with the same projects (an unlikely occurence!)

Parameters:
project - such as "org-lsst-ccs-core"
Returns:

getPomProperties

public static Properties getPomProperties(String org,
                                          String project)
a facility method based on standard resource algorithm (it supposes there is only one jar for the same project in the ClassPath).

Parameters:
org - the organisation (e.g. "org.lsst")
project - such as "org-lsst-ccs-core"
Returns:

getMavenProjectProperties

public static Properties getMavenProjectProperties(String project)
a facility method to fetch our $Project.maven.properties based on standard resource algorithm (it supposes there is only one jar for the same project in the ClassPath).

Parameters:
project - such as "org-lsst-ccs-core"
Returns:


Copyright © 2013 LSST. All Rights Reserved.