org.kuali.maven.common
Class PropertiesUtils

java.lang.Object
  extended by org.kuali.maven.common.PropertiesUtils

public class PropertiesUtils
extends Object


Constructor Summary
PropertiesUtils()
           
 
Method Summary
 Properties getEnvironmentProperties()
           
 Properties getMavenProperties(org.apache.maven.project.MavenProject project)
          Return properties as viewed by Maven.
 Properties getProperties(List<String> locations)
           
 Properties getProperties(String location)
           
 String getResolvedValue(String value, Properties properties)
           
 boolean isXml(String location)
           
static String[] splitAndTrim(String csv, String separator)
          Split the string trimming as we go
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertiesUtils

public PropertiesUtils()
Method Detail

splitAndTrim

public static String[] splitAndTrim(String csv,
                                    String separator)
Split the string trimming as we go


getResolvedValue

public String getResolvedValue(String value,
                               Properties properties)

getProperties

public Properties getProperties(List<String> locations)
                         throws IOException
Throws:
IOException

getMavenProperties

public Properties getMavenProperties(org.apache.maven.project.MavenProject project)
Return properties as viewed by Maven. ie, project properties get overridden by system properties and environment properties are prefixed with "env"


getEnvironmentProperties

public Properties getEnvironmentProperties()

getProperties

public Properties getProperties(String location)
                         throws IOException
Throws:
IOException

isXml

public boolean isXml(String location)


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