org.kuali.common.util
Class MavenUtils
java.lang.Object
org.kuali.common.util.MavenUtils
public class MavenUtils
- extends Object
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)
|
static SpringContext |
getMavenizedSpringContext(SpringService service,
Properties mavenProperties,
Class<?> propertySourceConfig)
|
static ProjectProperties |
getMavenProjectProperties(org.springframework.core.env.Environment env,
Properties mavenProperties)
|
protected static org.springframework.core.env.PropertySource<?> |
getPropertySource(SpringService service,
Class<?> annotatedClass,
String mavenPropertiesBeanName,
Properties mavenProperties)
|
protected static org.springframework.core.env.PropertySource<?> |
getPropertySource(SpringService service,
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. |
static void |
trim(org.springframework.core.env.Environment env,
Properties mavenProperties)
|
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
INCLUDE
public static final String INCLUDE
- See Also:
- Constant Field Values
EXCLUDE
public static final String EXCLUDE
- See Also:
- Constant Field Values
PROJECT_VERSION_KEY
public static final String PROJECT_VERSION_KEY
- See Also:
- Constant Field Values
MavenUtils
public MavenUtils()
getMavenizedSpringContext
public static SpringContext getMavenizedSpringContext(SpringService service,
Properties mavenProperties,
Class<?> propertySourceConfig)
getPropertySource
protected static org.springframework.core.env.PropertySource<?> getPropertySource(SpringService service,
Properties mavenProperties,
Class<?> annotatedClass)
getPropertySource
protected static org.springframework.core.env.PropertySource<?> getPropertySource(SpringService service,
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
trim
public static void trim(org.springframework.core.env.Environment env,
Properties mavenProperties)
getMavenProjectProperties
public static ProjectProperties getMavenProjectProperties(org.springframework.core.env.Environment env,
Properties mavenProperties)
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.