public class MetaInfUtils extends Object
Modifier and Type | Field and Description |
---|---|
static FeatureIdentifier |
FEATURE_ID
Deprecated.
|
static String |
METAINF_DIRECTORY_NAME |
static String |
PROPERTY_PREFIX |
static String |
RESOURCES_FILENAME_EXTENSION |
Constructor and Description |
---|
MetaInfUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
getClasspathPrefix()
classpath:META-INF |
static String |
getClasspathResource(ProjectIdentifier project,
MetaInfGroup group)
classpath:META-INF/org/kuali/util/kuali-util/[group].resources |
static String |
getClasspathResource(ProjectIdentifier project,
com.google.common.base.Optional<String> qualifier,
com.google.common.base.Optional<MetaInfDataLocation> location,
com.google.common.base.Optional<MetaInfDataType> type,
String filename)
classpath:META-INF/org/kuali/util/kuali-util/[qualifier]/[filename].resources where [qualifier] , [location] , and |
static String |
getClasspathResource(ProjectIdentifier project,
String filename)
classpath:META-INF/org/kuali/util/kuali-util/[filename].resources |
static String |
getClasspathResource(ProjectIdentifier project,
String qualifier,
MetaInfGroup group)
classpath:META-INF/org/kuali/util/kuali-util/[qualifier]/[group].resources |
static String |
getClasspathResource(ProjectIdentifier project,
String qualifier,
String filename)
classpath:META-INF/org/kuali/util/kuali-util/[qualifier]/[filename].resources |
static String |
getClasspathResource(Project project,
MetaInfGroup group)
classpath:META-INF/org/kuali/util/kuali-util/[group].resources |
static String |
getClasspathResource(Project project,
com.google.common.base.Optional<String> qualifier,
com.google.common.base.Optional<MetaInfDataLocation> location,
com.google.common.base.Optional<MetaInfDataType> type,
String filename)
classpath:META-INF/org/kuali/util/kuali-util/[qualifier]/[filename].resources where [qualifier] , [location] , and |
static String |
getClasspathResource(Project project,
String filename)
classpath:META-INF/org/kuali/util/kuali-util/[filename].resources |
static String |
getClasspathResource(Project project,
String qualifier,
MetaInfGroup group)
classpath:META-INF/org/kuali/util/kuali-util/[qualifier]/[group].resources |
static String |
getClasspathResource(Project project,
String qualifier,
String filename)
classpath:META-INF/org/kuali/util/kuali-util/[qualifier]/[filename].resources |
static String |
getClasspathResource(String groupId,
String artifactId,
MetaInfGroup group)
classpath:META-INF/org/kuali/util/kuali-util/[group].resources |
static String |
getClasspathResource(String groupId,
String artifactId,
com.google.common.base.Optional<String> qualifier,
com.google.common.base.Optional<MetaInfDataLocation> location,
com.google.common.base.Optional<MetaInfDataType> type,
String filename)
classpath:META-INF/org/kuali/util/kuali-util/[qualifier]/[filename].resources where [qualifier] , [location] , and |
static String |
getClasspathResource(String groupId,
String artifactId,
com.google.common.base.Optional<String> qualifier,
String filename)
classpath:META-INF/org/kuali/util/kuali-util/[qualifier]/[filename].resources where [qualifier] is optional |
static String |
getClasspathResource(String groupId,
String artifactId,
String filename)
classpath:META-INF/org/kuali/util/kuali-util/[filename].resources |
static String |
getClasspathResourcePrefix(Project project)
classpath:META-INF/org/kuali/util/kuali-util |
static String |
getClasspathResourcePrefix(ProjectIdentifier project)
classpath:META-INF/org/kuali/util/kuali-util |
static String |
getFilename(MetaInfGroup group)
Returns
[group].resources (always lowercase) |
static String |
getFilename(String filename)
Returns
[filename].resources |
static String |
getGroupPrefix(Project project)
META-INF/org/kuali/util |
static String |
getGroupPrefix(String groupId)
META-INF/org/kuali/util |
static File |
getOutputFile(Project project,
Build build,
MetaInfGroup group)
${project.build.outputDirectory}/META-INF/org/kuali/util/kuali-util/[group].resources |
static File |
getOutputFile(Project project,
Build build,
com.google.common.base.Optional<String> qualifier,
com.google.common.base.Optional<MetaInfDataLocation> location,
com.google.common.base.Optional<MetaInfDataType> type,
String filename)
${project.build.outputDirectory}/META-INF/org/kuali/util/kuali-util/[qualifier]/[location]/[type]/[filename].resources where [qualifier] ,
[location] , and |
static File |
getOutputFile(Project project,
Build build,
com.google.common.base.Optional<String> qualifier,
String filename)
${project.build.outputDirectory}/META-INF/org/kuali/util/kuali-util/[qualifier]/[filename].resources where [qualifier] is optional |
static File |
getOutputFile(Project project,
Build build,
String filename)
${project.build.outputDirectory}/META-INF/org/kuali/util/kuali-util/[filename].resources |
static File |
getOutputFile(Project project,
Build build,
String qualifier,
MetaInfGroup group)
${project.build.outputDirectory}/META-INF/org/kuali/util/kuali-util/[qualifier]/[group].resources |
static File |
getOutputFile(Project project,
Build build,
String qualifier,
String filename)
${project.build.outputDirectory}/META-INF/org/kuali/util/kuali-util/[qualifier]/[filename].resources |
static List<String> |
getPatternedClasspathResources(ProjectIdentifier project,
com.google.common.base.Optional<String> qualifier,
com.google.common.base.Optional<MetaInfDataLocation> location,
com.google.common.base.Optional<MetaInfDataType> type,
String filename)
List of
classpath:META-INF/org/kuali/util/kuali-util/[qualifier]/[location]/[type]/[filename].resources where [qualifier] , [location] ,
and [qualifier] and [filename] can contain an Ant-style pattern |
static List<String> |
getPatternedClasspathResources(ProjectIdentifier project,
String filename)
List of
classpath:META-INF/org/kuali/util/kuali-util/[filename].resources where [filename] can contain an Ant-style pattern |
static List<String> |
getPatternedClasspathResources(ProjectIdentifier project,
String qualifier,
MetaInfGroup group)
List of
classpath:META-INF/org/kuali/util/kuali-util/[qualifier]/[group].resources where [qualifier] can contain an Ant-style pattern |
static List<String> |
getPatternedClasspathResources(ProjectIdentifier project,
String qualifier,
String filename)
List of
classpath:META-INF/org/kuali/util/kuali-util/[qualifier]/[filename].resources where [qualifier] and [filename] can contain an
Ant-style pattern |
static List<String> |
getPatternedClasspathResources(Project project,
com.google.common.base.Optional<String> qualifier,
com.google.common.base.Optional<MetaInfDataLocation> location,
com.google.common.base.Optional<MetaInfDataType> type,
String filename)
List of
classpath:META-INF/org/kuali/util/kuali-util/[qualifier]/[location]/[type]/[filename].resources where [qualifier] , [location] ,
and [qualifier] and [filename] can contain an Ant-style pattern |
static List<String> |
getPatternedClasspathResources(Project project,
String filename)
List of
classpath:META-INF/org/kuali/util/kuali-util/[filename].resources where [filename] can contain an Ant-style pattern |
static List<String> |
getPatternedClasspathResources(Project project,
String qualifier,
MetaInfGroup group)
List of
classpath:META-INF/org/kuali/util/kuali-util/[qualifier]/[group].resources where [qualifier] can contain an Ant-style pattern |
static List<String> |
getPatternedClasspathResources(Project project,
String qualifier,
String filename)
List of
classpath:META-INF/org/kuali/util/kuali-util/[qualifier]/[filename].resources where [qualifier] and [filename] can contain an
Ant-style pattern |
static List<String> |
getPatternedClasspathResources(String groupId,
String artifactId,
com.google.common.base.Optional<String> qualifier,
com.google.common.base.Optional<MetaInfDataLocation> location,
com.google.common.base.Optional<MetaInfDataType> type,
String filename)
List of
classpath:META-INF/org/kuali/util/kuali-util/[qualifier]/[filename].resources where [qualifier] , [location] , and
[qualifier] and [filename] can contain an Ant-style pattern |
static List<String> |
getPatternedClasspathResources(String groupId,
String artifactId,
com.google.common.base.Optional<String> qualifier,
String filename)
List of
classpath:META-INF/org/kuali/util/kuali-util/[qualifier]/[filename].resources where [qualifier] is optional * and [qualifier]
and [filename] can contain an Ant-style pattern |
static List<String> |
getPatternedClasspathResources(String groupId,
String artifactId,
String filename)
List of
classpath:META-INF/org/kuali/util/kuali-util/[filename].resources where [filename] can contain an Ant-style pattern |
static List<String> |
getQualifiers(File baseDirectory,
List<String> includes,
List<String> excludes) |
static List<String> |
getQualifiers(File baseDirectory,
ProjectIdentifier project,
List<String> includes,
List<String> excludes) |
static List<String> |
getQualifiers(File baseDirectory,
Project project,
List<String> includes,
List<String> excludes) |
static String |
getResourcePrefix(Project project)
META-INF/org/kuali/util/kuali-util |
static String |
getResourcePrefix(ProjectIdentifier project)
META-INF/org/kuali/util/kuali-util |
static String |
getResourcePrefix(String groupId,
String artifactId)
META-INF/org/kuali/util/kuali-util |
public static final String RESOURCES_FILENAME_EXTENSION
public static final String METAINF_DIRECTORY_NAME
@Deprecated public static final FeatureIdentifier FEATURE_ID
public static final String PROPERTY_PREFIX
public MetaInfUtils()
public static File getOutputFile(Project project, Build build, MetaInfGroup group)
${project.build.outputDirectory}/META-INF/org/kuali/util/kuali-util/[group].resources
public static File getOutputFile(Project project, Build build, String filename)
${project.build.outputDirectory}/META-INF/org/kuali/util/kuali-util/[filename].resources
public static File getOutputFile(Project project, Build build, String qualifier, MetaInfGroup group)
${project.build.outputDirectory}/META-INF/org/kuali/util/kuali-util/[qualifier]/[group].resources
public static File getOutputFile(Project project, Build build, String qualifier, String filename)
${project.build.outputDirectory}/META-INF/org/kuali/util/kuali-util/[qualifier]/[filename].resources
public static File getOutputFile(Project project, Build build, com.google.common.base.Optional<String> qualifier, String filename)
${project.build.outputDirectory}/META-INF/org/kuali/util/kuali-util/[qualifier]/[filename].resources
where [qualifier]
is optionalpublic static File getOutputFile(Project project, Build build, com.google.common.base.Optional<String> qualifier, com.google.common.base.Optional<MetaInfDataLocation> location, com.google.common.base.Optional<MetaInfDataType> type, String filename)
${project.build.outputDirectory}/META-INF/org/kuali/util/kuali-util/[qualifier]/[location]/[type]/[filename].resources
where [qualifier]
,
[location]
, and public static String getClasspathResource(ProjectIdentifier project, MetaInfGroup group)
classpath:META-INF/org/kuali/util/kuali-util/[group].resources
public static String getClasspathResource(ProjectIdentifier project, String filename)
classpath:META-INF/org/kuali/util/kuali-util/[filename].resources
public static String getClasspathResource(ProjectIdentifier project, String qualifier, MetaInfGroup group)
classpath:META-INF/org/kuali/util/kuali-util/[qualifier]/[group].resources
public static String getClasspathResource(ProjectIdentifier project, String qualifier, String filename)
classpath:META-INF/org/kuali/util/kuali-util/[qualifier]/[filename].resources
public static String getClasspathResource(ProjectIdentifier project, com.google.common.base.Optional<String> qualifier, com.google.common.base.Optional<MetaInfDataLocation> location, com.google.common.base.Optional<MetaInfDataType> type, String filename)
classpath:META-INF/org/kuali/util/kuali-util/[qualifier]/[filename].resources
where [qualifier]
, [location]
, and public static String getClasspathResource(Project project, MetaInfGroup group)
classpath:META-INF/org/kuali/util/kuali-util/[group].resources
public static String getClasspathResource(Project project, String filename)
classpath:META-INF/org/kuali/util/kuali-util/[filename].resources
public static String getClasspathResource(Project project, String qualifier, MetaInfGroup group)
classpath:META-INF/org/kuali/util/kuali-util/[qualifier]/[group].resources
public static String getClasspathResource(Project project, String qualifier, String filename)
classpath:META-INF/org/kuali/util/kuali-util/[qualifier]/[filename].resources
public static String getClasspathResource(Project project, com.google.common.base.Optional<String> qualifier, com.google.common.base.Optional<MetaInfDataLocation> location, com.google.common.base.Optional<MetaInfDataType> type, String filename)
classpath:META-INF/org/kuali/util/kuali-util/[qualifier]/[filename].resources
where [qualifier]
, [location]
, and public static String getClasspathResource(String groupId, String artifactId, MetaInfGroup group)
classpath:META-INF/org/kuali/util/kuali-util/[group].resources
public static String getClasspathResource(String groupId, String artifactId, String filename)
classpath:META-INF/org/kuali/util/kuali-util/[filename].resources
public static String getClasspathResource(String groupId, String artifactId, com.google.common.base.Optional<String> qualifier, String filename)
classpath:META-INF/org/kuali/util/kuali-util/[qualifier]/[filename].resources
where [qualifier]
is optionalpublic static String getClasspathResource(String groupId, String artifactId, com.google.common.base.Optional<String> qualifier, com.google.common.base.Optional<MetaInfDataLocation> location, com.google.common.base.Optional<MetaInfDataType> type, String filename)
classpath:META-INF/org/kuali/util/kuali-util/[qualifier]/[filename].resources
where [qualifier]
, [location]
, and public static List<String> getPatternedClasspathResources(ProjectIdentifier project, String filename)
classpath:META-INF/org/kuali/util/kuali-util/[filename].resources
where [filename]
can contain an Ant-style patternpublic static List<String> getPatternedClasspathResources(ProjectIdentifier project, String qualifier, MetaInfGroup group)
classpath:META-INF/org/kuali/util/kuali-util/[qualifier]/[group].resources
where [qualifier]
can contain an Ant-style patternpublic static List<String> getPatternedClasspathResources(ProjectIdentifier project, String qualifier, String filename)
classpath:META-INF/org/kuali/util/kuali-util/[qualifier]/[filename].resources
where [qualifier]
and [filename]
can contain an
Ant-style patternpublic static List<String> getPatternedClasspathResources(ProjectIdentifier project, com.google.common.base.Optional<String> qualifier, com.google.common.base.Optional<MetaInfDataLocation> location, com.google.common.base.Optional<MetaInfDataType> type, String filename)
classpath:META-INF/org/kuali/util/kuali-util/[qualifier]/[location]/[type]/[filename].resources
where [qualifier]
, [location]
,
and [qualifier]
and [filename]
can contain an Ant-style patternpublic static List<String> getPatternedClasspathResources(Project project, String filename)
classpath:META-INF/org/kuali/util/kuali-util/[filename].resources
where [filename]
can contain an Ant-style patternpublic static List<String> getPatternedClasspathResources(Project project, String qualifier, MetaInfGroup group)
classpath:META-INF/org/kuali/util/kuali-util/[qualifier]/[group].resources
where [qualifier]
can contain an Ant-style patternpublic static List<String> getPatternedClasspathResources(Project project, String qualifier, String filename)
classpath:META-INF/org/kuali/util/kuali-util/[qualifier]/[filename].resources
where [qualifier]
and [filename]
can contain an
Ant-style patternpublic static List<String> getPatternedClasspathResources(Project project, com.google.common.base.Optional<String> qualifier, com.google.common.base.Optional<MetaInfDataLocation> location, com.google.common.base.Optional<MetaInfDataType> type, String filename)
classpath:META-INF/org/kuali/util/kuali-util/[qualifier]/[location]/[type]/[filename].resources
where [qualifier]
, [location]
,
and [qualifier]
and [filename]
can contain an Ant-style patternpublic static List<String> getPatternedClasspathResources(String groupId, String artifactId, String filename)
classpath:META-INF/org/kuali/util/kuali-util/[filename].resources
where [filename]
can contain an Ant-style patternpublic static List<String> getPatternedClasspathResources(String groupId, String artifactId, com.google.common.base.Optional<String> qualifier, String filename)
classpath:META-INF/org/kuali/util/kuali-util/[qualifier]/[filename].resources
where [qualifier]
is optional * and [qualifier]
and [filename]
can contain an Ant-style patternpublic static List<String> getPatternedClasspathResources(String groupId, String artifactId, com.google.common.base.Optional<String> qualifier, com.google.common.base.Optional<MetaInfDataLocation> location, com.google.common.base.Optional<MetaInfDataType> type, String filename)
classpath:META-INF/org/kuali/util/kuali-util/[qualifier]/[filename].resources
where [qualifier]
, [location]
, and
[qualifier]
and [filename]
can contain an Ant-style patternpublic static String getFilename(MetaInfGroup group)
[group].resources
(always lowercase)public static String getFilename(String filename)
[filename].resources
public static String getGroupPrefix(Project project)
META-INF/org/kuali/util
public static String getGroupPrefix(String groupId)
META-INF/org/kuali/util
public static String getClasspathPrefix()
classpath:META-INF
public static String getResourcePrefix(Project project)
META-INF/org/kuali/util/kuali-util
public static String getResourcePrefix(String groupId, String artifactId)
META-INF/org/kuali/util/kuali-util
public static String getResourcePrefix(ProjectIdentifier project)
META-INF/org/kuali/util/kuali-util
public static String getClasspathResourcePrefix(ProjectIdentifier project)
classpath:META-INF/org/kuali/util/kuali-util
public static String getClasspathResourcePrefix(Project project)
classpath:META-INF/org/kuali/util/kuali-util
public static List<String> getQualifiers(File baseDirectory, ProjectIdentifier project, List<String> includes, List<String> excludes)
public static List<String> getQualifiers(File baseDirectory, Project project, List<String> includes, List<String> excludes)
Copyright © 2010–2014 The Kuali Foundation. All rights reserved.