org.apache.maven.plugin.antrun
Class AntPropertyHelper

java.lang.Object
  extended by org.apache.tools.ant.PropertyHelper
      extended by org.apache.maven.plugin.antrun.AntPropertyHelper

public class AntPropertyHelper
extends org.apache.tools.ant.PropertyHelper

Makes the ${expressions} used in Maven available to Ant as properties.

Author:
Kenney Westerhof

Field Summary
static java.lang.String DEPENDENCY_PREFIX
           
 
Constructor Summary
AntPropertyHelper(org.codehaus.plexus.component.configurator.expression.ExpressionEvaluator exprEvaluator, org.apache.maven.plugin.logging.Log l)
          Deprecated. use AntPropertyHelper(ExpressionEvaluator, Set, Log) to resolve maven.dependency.* properties
AntPropertyHelper(org.codehaus.plexus.component.configurator.expression.ExpressionEvaluator exprEvaluator, java.util.Set artifacts, org.apache.maven.plugin.logging.Log l)
           
AntPropertyHelper(org.apache.maven.project.MavenProject project, org.apache.maven.plugin.logging.Log l)
          Deprecated. use the other constructor
 
Method Summary
static java.lang.String getDependencyArtifactPropertyName(org.apache.maven.artifact.Artifact artifact)
          Deprecated. The dependency conflict ID should be used as the property name.
 java.lang.Object getPropertyHook(java.lang.String ns, java.lang.String name, boolean user)
           
 
Methods inherited from class org.apache.tools.ant.PropertyHelper
copyInheritedProperties, copyUserProperties, getInternalInheritedProperties, getInternalProperties, getInternalUserProperties, getNext, getProject, getProperties, getProperty, getPropertyHelper, getUserProperties, getUserProperty, parsePropertyString, replaceProperties, setInheritedProperty, setNewProperty, setNext, setProject, setProperty, setPropertyHook, setUserProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEPENDENCY_PREFIX

public static final java.lang.String DEPENDENCY_PREFIX
See Also:
Constant Field Values
Constructor Detail

AntPropertyHelper

public AntPropertyHelper(org.apache.maven.project.MavenProject project,
                         org.apache.maven.plugin.logging.Log l)
Deprecated. use the other constructor

Parameters:
project -
l -

AntPropertyHelper

public AntPropertyHelper(org.codehaus.plexus.component.configurator.expression.ExpressionEvaluator exprEvaluator,
                         org.apache.maven.plugin.logging.Log l)
Deprecated. use AntPropertyHelper(ExpressionEvaluator, Set, Log) to resolve maven.dependency.* properties

Parameters:
exprEvaluator -
l -

AntPropertyHelper

public AntPropertyHelper(org.codehaus.plexus.component.configurator.expression.ExpressionEvaluator exprEvaluator,
                         java.util.Set artifacts,
                         org.apache.maven.plugin.logging.Log l)
Parameters:
exprEvaluator -
artifacts -
l -
Method Detail

getDependencyArtifactPropertyName

public static java.lang.String getDependencyArtifactPropertyName(org.apache.maven.artifact.Artifact artifact)
Deprecated. The dependency conflict ID should be used as the property name.

Returns a property name for a dependency artifact. The name is in the format maven.dependency.groupId.artifactId[.classifier].type.path

Parameters:
artifact -
Returns:
property name

getPropertyHook

public java.lang.Object getPropertyHook(java.lang.String ns,
                                        java.lang.String name,
                                        boolean user)
Overrides:
getPropertyHook in class org.apache.tools.ant.PropertyHelper
See Also:
PropertyHelper.getPropertyHook(java.lang.String, java.lang.String, boolean)


Copyright © 2002-2010 Apache Software Foundation. All Rights Reserved.