com.github.maven_nar
Class NarProperties
java.lang.Object
com.github.maven_nar.NarProperties
public class NarProperties
- extends Object
|
Method Summary |
static NarProperties |
getInstance(org.apache.maven.project.MavenProject project)
Retrieve the NarProperties |
String |
getProperty(String key)
|
static void |
inject(org.apache.maven.project.MavenProject project,
InputStream properties)
Programmatically inject properties (and possibly overwrite existing properties) |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static NarProperties getInstance(org.apache.maven.project.MavenProject project)
throws org.apache.maven.plugin.MojoFailureException
- Retrieve the NarProperties
- Parameters:
project - may be null
- Returns:
-
- Throws:
org.apache.maven.plugin.MojoFailureException
inject
public static void inject(org.apache.maven.project.MavenProject project,
InputStream properties)
throws org.apache.maven.plugin.MojoFailureException
- Programmatically inject properties (and possibly overwrite existing properties)
- Parameters:
project - the current maven projectproperties - the properties from input stream
- Throws:
org.apache.maven.plugin.MojoFailureException
getProperty
public String getProperty(String key)
Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.