de.smartics.maven.plugin.buildmetadata.maven
Class MavenPropertyHelper

Package class diagram package MavenPropertyHelper
java.lang.Object
  extended by de.smartics.maven.plugin.buildmetadata.maven.MavenPropertyHelper

public final class MavenPropertyHelper
     
     
extends Object

Fetches properties from a Maven project. This includes properties of the Maven project instance as well as properties from its properties section.

It is allowed to change the project passed to the helper instance after creation of the instance as long as the caller makes sure that it is not changed within a call of this instance. No synchronization is cared for by this instance.

Author:
Robert Reiner

Constructor Summary
MavenPropertyHelper(MavenProject project)
          Default constructor.
 
Method Summary
 String getProperty(String name)
          Returns the property value specified by the given name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MavenPropertyHelper

public MavenPropertyHelper(MavenProject project)
Default constructor.

Parameters:
project - the project to fetch properties from.
Method Detail

getProperty

public String getProperty(String name)
Returns the property value specified by the given name.

Parameters:
name - the name of the property to return.
Returns:
the property value for the given name.


Copyright © 2006-2012 Kronseder & Reiner GmbH - smartics. All Rights Reserved.