org.kuali.common.util
Class MavenUtils
java.lang.Object
org.kuali.common.util.MavenUtils
public class MavenUtils
- extends Object
Maven utilities that don't depend on Maven libraries
Method Summary |
static void |
augmentProjectProperties(Properties mavenProperties)
Add organization, group, and path properties and tokenize the version number adding properties for each token along with a boolean property indicating if this is a SNAPSHOT
build |
protected static List<String> |
getList(org.springframework.core.env.Environment env,
Properties properties,
String key)
|
protected static List<String> |
getList(Properties properties,
String key)
|
static SpringContext |
getMavenizedSpringContext(Class<?> propertySourceConfig)
|
static SpringContext |
getMavenizedSpringContext(Properties mavenProperties,
Class<?> propertySourceConfig)
|
static ProjectProperties |
getMavenProjectProperties(Properties mavenProperties)
|
protected static org.springframework.core.env.PropertySource<?> |
getPropertySource(Class<?> annotatedClass,
String mavenPropertiesBeanName,
Properties mavenProperties)
|
protected static org.springframework.core.env.PropertySource<?> |
getPropertySource(Properties mavenProperties,
Class<?> annotatedClass)
|
static boolean |
skip(boolean forceMojoExecution,
boolean skip,
String packaging)
Always return false if forceMojoExecution is true, otherwise return true only if skip is true or packaging is pom. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
POM
public static final String POM
- See Also:
- Constant Field Values
PROJECT_VERSION_KEY
public static final String PROJECT_VERSION_KEY
- See Also:
- Constant Field Values
PROJECT_ENCODING_KEY
public static final String PROJECT_ENCODING_KEY
- See Also:
- Constant Field Values
MavenUtils
public MavenUtils()
getMavenizedSpringContext
public static SpringContext getMavenizedSpringContext(Class<?> propertySourceConfig)
getMavenizedSpringContext
public static SpringContext getMavenizedSpringContext(Properties mavenProperties,
Class<?> propertySourceConfig)
getPropertySource
protected static org.springframework.core.env.PropertySource<?> getPropertySource(Properties mavenProperties,
Class<?> annotatedClass)
getPropertySource
protected static org.springframework.core.env.PropertySource<?> getPropertySource(Class<?> annotatedClass,
String mavenPropertiesBeanName,
Properties mavenProperties)
augmentProjectProperties
public static void augmentProjectProperties(Properties mavenProperties)
- Add organization, group, and path properties and tokenize the version number adding properties for each token along with a boolean property indicating if this is a SNAPSHOT
build
getMavenProjectProperties
public static ProjectProperties getMavenProjectProperties(Properties mavenProperties)
getList
protected static List<String> getList(Properties properties,
String key)
getList
protected static List<String> getList(org.springframework.core.env.Environment env,
Properties properties,
String key)
skip
public static final boolean skip(boolean forceMojoExecution,
boolean skip,
String packaging)
- Always return false if
forceMojoExecution
is true, otherwise return true only if skip
is true or packaging
is pom.
Copyright © 2010-2013 The Kuali Foundation. All Rights Reserved.