|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.common.util.project.ProjectUtils
public class ProjectUtils
Constructor Summary | |
---|---|
ProjectUtils()
|
Method Summary | |
---|---|
static File |
getBasedir(Project project)
Convenience method for extracting the value of the property project.basedir |
static Build |
getBuild(Project project)
Get a build object with local file system directories filled in. |
static File |
getBuildDirectory(Project project)
Convenience method for extracting the value of the property project.build.directory |
static File |
getBuildOutputDirectory(Project project)
Convenience method for extracting the value of the property project.build.outputDirectory |
static String |
getClasspathPrefix(FeatureIdentifier feature)
Deprecated. |
static String |
getClasspathPrefix(ProjectIdentifier project)
Return a classpath prefix. |
static String |
getClasspathPrefix(String groupId)
Return a classpath prefix. |
static String |
getClasspathPrefix(String groupId,
String artifactId)
Return a classpath prefix. |
static String |
getClassPathPrefix(String groupId,
String artifactId)
Deprecated. |
static String |
getClasspathResource(ProjectIdentifier project,
String filename)
classpath:org/kuali/common/kuali-util/myfile.txt |
static String |
getEncoding(Project project)
Convenience method for extracting the value of the property project.encoding |
static ProjectIdentifier |
getIdentifier(String projectId)
Convert a project id into a ProjectIdentifier's
Example project id: |
static List<ProjectIdentifier> |
getIdentifiers(List<String> projectIds)
Convert a list of project ids into a list of ProjectIdentifier's
Example project id: |
static String |
getPath(ProjectResource resource)
[prefix]org/kuali/common/kuali-util/[path] |
static Project |
getProject(Properties properties)
Get a Project from a Properties |
static File |
getResourceDirectory(File directory,
String groupId,
String artifactId)
Return a resource directory relative to directory |
static String |
getResourcePath(String groupId,
String artifactId)
Return a resource friendly prefix. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProjectUtils()
Method Detail |
---|
public static Project getProject(Properties properties)
Project
from a Properties
public static ProjectIdentifier getIdentifier(String projectId)
ProjectIdentifier's
Example project id:
org.kuali.common:kuali-util
public static List<ProjectIdentifier> getIdentifiers(List<String> projectIds)
ProjectIdentifier's
Example project id:
org.kuali.common:kuali-util
public static Build getBuild(Project project)
kuali-util/ kuali-util/target kuali-util/target/classes
public static File getBuildDirectory(Project project)
project.build.directory
public static File getBasedir(Project project)
project.basedir
public static File getBuildOutputDirectory(Project project)
project.build.outputDirectory
public static String getEncoding(Project project)
project.encoding
public static File getResourceDirectory(File directory, String groupId, String artifactId)
directory
/tmp/x/y/z + org.kuali.common:kuali-util -> /tmp/x/y/z/org/kuali/common/kuali-util
public static String getResourcePath(String groupId, String artifactId)
org.kuali.common:kuali-util -> org/kuali/common/kuali-util
@Deprecated public static String getClassPathPrefix(String groupId, String artifactId)
getClasspathPrefix()
instead. (lowercase "p" in the word classpath)
public static String getClasspathPrefix(String groupId, String artifactId)
org.kuali.common:kuali-util -> classpath:org/kuali/common/kuali-util
public static String getClasspathPrefix(ProjectIdentifier project)
org.kuali.common:kuali-util -> classpath:org/kuali/common/kuali-util
public static String getClasspathPrefix(String groupId)
org.kuali.common -> classpath:org/kuali/common
@Deprecated public static String getClasspathPrefix(FeatureIdentifier feature)
org.kuali.common:kuali-util:metainf -> classpath:org/kuali/common/kuali-util/metainf
public static String getClasspathResource(ProjectIdentifier project, String filename)
classpath:org/kuali/common/kuali-util/myfile.txt
public static String getPath(ProjectResource resource)
[prefix]org/kuali/common/kuali-util/[path]
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |