org.kuali.common.maven.spring
Class MavenAwareUtils

java.lang.Object
  extended by org.kuali.common.maven.spring.MavenAwareUtils

public class MavenAwareUtils
extends Object

Maven related utilities that are aware of the Maven model objects eg MavenProject


Constructor Summary
MavenAwareUtils()
           
 
Method Summary
static List<org.kuali.common.util.Dependency> convertToSimplePojos(List<org.apache.maven.model.Dependency> dependencies)
          Convert the formal Maven dependency objects into vanilla pojo objects
static String getDependenciesCSV(List<org.kuali.common.util.Dependency> dependencies)
          Convert the list of dependencies into a CSV string
static Properties getInternalProperties(org.apache.maven.project.MavenProject project)
           
static String getPomLocation(org.apache.maven.project.MavenProject project)
           
static void nullSafeSet(Properties properties, String key, String value)
          Don't call setProperty() if value is null
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MavenAwareUtils

public MavenAwareUtils()
Method Detail

getInternalProperties

public static Properties getInternalProperties(org.apache.maven.project.MavenProject project)

nullSafeSet

public static void nullSafeSet(Properties properties,
                               String key,
                               String value)
Don't call setProperty() if value is null


getPomLocation

public static String getPomLocation(org.apache.maven.project.MavenProject project)

convertToSimplePojos

public static List<org.kuali.common.util.Dependency> convertToSimplePojos(List<org.apache.maven.model.Dependency> dependencies)
Convert the formal Maven dependency objects into vanilla pojo objects


getDependenciesCSV

public static String getDependenciesCSV(List<org.kuali.common.util.Dependency> dependencies)
Convert the list of dependencies into a CSV string



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