org.mevenide.properties.resolver
Class ProjectWalker

java.lang.Object
  extended byorg.mevenide.properties.resolver.ProjectWalker

public class ProjectWalker
extends java.lang.Object

Version:
$Id: ProjectWalker.java,v 1.3 2004/11/07 18:05:04 mkleint Exp $
Author:
Gilles Dodinet

Constructor Summary
ProjectWalker(org.apache.maven.project.Project project)
           
 
Method Summary
 java.lang.String resolve(java.lang.String unresolvedString)
          retrieve a string containing jelly scripting variable by navigating pom object so until a jelly variable is a descendant of pom it wont be resolved and the returnde string will still contains the reference.
 java.lang.String resolve(java.lang.String unresolvedString, boolean preserveBasedir)
          retrieve a string containing jelly scripting variable by navigating pom object so until a jelly variable is a descendant of pom it wont be resolved and the returnde string will still contains the reference.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProjectWalker

public ProjectWalker(org.apache.maven.project.Project project)
Method Detail

resolve

public java.lang.String resolve(java.lang.String unresolvedString)
                         throws java.lang.Exception
retrieve a string containing jelly scripting variable by navigating pom object so until a jelly variable is a descendant of pom it wont be resolved and the returnde string will still contains the reference. this is equivalent to resolve(project, unresolvedString, false)

Parameters:
unresolvedString -
Returns:
Throws:
java.lang.Exception
See Also:
#resolve(Project project, String unresolvedString, boolean preserveBasedir)

resolve

public java.lang.String resolve(java.lang.String unresolvedString,
                                boolean preserveBasedir)
                         throws java.lang.Exception
retrieve a string containing jelly scripting variable by navigating pom object so until a jelly variable is a descendant of pom it wont be resolved and the returnde string will still contains the reference. if preserveBasedir is true, then ${basedir} wont be evaluated, else it will be replaced by "."

Parameters:
unresolvedString -
Returns:
Throws:
java.lang.Exception
See Also:
#resolve(Project project, String unresolvedString, boolean preserveBasedir)


Copyright © 2003-2005 The Codehaus. All Rights Reserved.