org.kuali.common.util
Class ProjectUtils

java.lang.Object
  extended by org.kuali.common.util.ProjectUtils

public class ProjectUtils
extends Object


Field Summary
static String KUALI_COMMON_GROUP_ID
           
 
Constructor Summary
ProjectUtils()
           
 
Method Summary
static void clearProjectPropertiesCache()
          Provide a way to clear the cache
protected static String getBeanProperty(String key, String startsWith)
           
static List<Dependency> getDependencies(String csv)
           
static String getGav(Project project)
           
static String getGav(ProjectContext context)
           
static String getGav(String groupId, String artifactId)
           
static Project getProject(Properties properties)
          Return a Project object by copying values from the properties object into a Project object.
static Project getProject(String gav)
          Create a skeleton Project object from the gav.
static String getPropertiesFileLocation(Project project)
           
protected static Properties loadAndCache(Project project, String gav)
           
static Project loadProject(ProjectContext context)
          Create a Project object from the context.
static Project loadProject(String gav)
          Create a Project object from the gav.
static ProjectProperties loadProjectProperties(ProjectContext context)
           
static Properties loadProperties(Project project)
           
static Properties loadProperties(String gav)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KUALI_COMMON_GROUP_ID

public static final String KUALI_COMMON_GROUP_ID
See Also:
Constant Field Values
Constructor Detail

ProjectUtils

public ProjectUtils()
Method Detail

loadProjectProperties

public static ProjectProperties loadProjectProperties(ProjectContext context)

loadProject

public static Project loadProject(ProjectContext context)
Create a Project object from the context. This includes loading the corresponding project.properties file from disk.


getGav

public static String getGav(ProjectContext context)

getGav

public static String getGav(Project project)

getGav

public static String getGav(String groupId,
                            String artifactId)

loadProject

public static Project loadProject(String gav)
Create a Project object from the gav. This includes loading the corresponding project.properties file from disk.


clearProjectPropertiesCache

public static void clearProjectPropertiesCache()
Provide a way to clear the cache


getProject

public static Project getProject(String gav)
Create a skeleton Project object from the gav. Nothing but the GAV info gets filled in. Does not read project.properties from disk.


getDependencies

public static List<Dependency> getDependencies(String csv)

getProject

public static Project getProject(Properties properties)
Return a Project object by copying values from the properties object into a Project object.


getBeanProperty

protected static String getBeanProperty(String key,
                                        String startsWith)

loadProperties

public static Properties loadProperties(String gav)

loadProperties

public static Properties loadProperties(Project project)

loadAndCache

protected static Properties loadAndCache(Project project,
                                         String gav)

getPropertiesFileLocation

public static String getPropertiesFileLocation(Project project)


Copyright © 2010-2013 The Kuali Foundation. All Rights Reserved.