org.codehaus.mojo.properties
Class ReadPropertiesMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.properties.ReadPropertiesMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
public class ReadPropertiesMojo
- extends org.apache.maven.plugin.AbstractMojo
The read-project-properties goal reads property files and stores the properties as project properties. It serves as
an alternate to specifying properties in pom.xml.
- Version:
- $Id: ReadPropertiesMojo.java 8861 2009-01-21 15:35:38Z pgier $
- Author:
- Zarar Siddiqi, Krystian Nowak
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
Methods inherited from class org.apache.maven.plugin.AbstractMojo |
getLog, getPluginContext, setLog, setPluginContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReadPropertiesMojo
public ReadPropertiesMojo()
execute
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
resolveValues
protected void resolveValues(Properties p1,
Properties p2,
List<String> keys)
resolve
protected boolean resolve(String key,
List<String> keys)
updateProperties
protected void updateProperties(Properties p1,
Properties p2,
List<String> ignore)
- Copy properties from p2 into p1, overwriting p1 values as we go.
Ignore any properties with a key that appears in the ignore list
- Parameters:
p1
- p2
- ignore
-
getListFromCSV
protected static final List<String> getListFromCSV(String csv)
toEmpty
protected String toEmpty(String s)
exists
protected boolean exists(String location)
validate
protected boolean validate(String location)
throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
getInputStream
protected InputStream getInputStream(String location)
throws IOException
- Throws:
IOException
getProperties
protected Properties getProperties(String location)
throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
isQuiet
public boolean isQuiet()
setQuiet
public void setQuiet(boolean quiet)
getIgnore
public String getIgnore()
setIgnore
public void setIgnore(String ignoreProperties)
getProject
public org.apache.maven.project.MavenProject getProject()
getLocations
public String[] getLocations()
setLocations
public void setLocations(String[] locations)
isVerbose
public boolean isVerbose()
setVerbose
public void setVerbose(boolean verbose)
isSilent
public boolean isSilent()
setSilent
public void setSilent(boolean silent)
getIgnoreList
protected List<String> getIgnoreList()
updateProjectProperties
protected void updateProjectProperties(List<String> ignoreList)
throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
isResolveValues
public boolean isResolveValues()
setResolveValues
public void setResolveValues(boolean resolveValues)
getPropertyKeysToResolve
public String getPropertyKeysToResolve()
setPropertyKeysToResolve
public void setPropertyKeysToResolve(String propertyKeysToResolve)
Copyright © 2009-2012 The Kuali Foundation. All Rights Reserved.