|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.maven.util.MavenTool
Context/pull tool for use in MavenSession templates.
| Constructor Summary | |
MavenTool()
Creates a new instance. |
|
| Method Summary | |
void |
addToCount(java.lang.Object object)
Add an object to the list of counted items. |
java.util.Map |
getCount()
get a list of counted items with the key being the number of times counted and the value any arbitrary item that was counted |
java.util.Map |
getCountDescending()
get a list of counted items with the key being the number of times counted (in descending order) and the value any arbitrary item that was counted |
Project |
getProject()
Accessor for the project property. |
void |
resetCount()
Clear the counter so that there are zero items |
java.lang.String |
resolvePathFragment(java.lang.String baseDir,
java.lang.String resource,
org.apache.tools.ant.types.Path directories)
Resolves a path fragment for the first resource found in directories. |
protected java.lang.String |
resolvePathFragment(java.lang.String baseDir,
java.lang.String resource,
java.lang.String[] paths)
Called by resolvePathFragment(String, String, Path). |
java.lang.Integer |
toInteger(java.lang.String s)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MavenTool()
| Method Detail |
public Project getProject()
public java.lang.String resolvePathFragment(java.lang.String baseDir,
java.lang.String resource,
org.apache.tools.ant.types.Path directories)
directories.
#set ($pathFragment =
$maven.resolvePathFragment($context.toolbox.string.basedir, "foo/bar",
${src.set}))
baseDir - The directory to which directories
are relative.resource - The path to the resource to find in
directories.directories - The list of paths to search for
resource in..
resource.
protected final java.lang.String resolvePathFragment(java.lang.String baseDir,
java.lang.String resource,
java.lang.String[] paths)
resolvePathFragment(String, String, Path).
resolvePathFragment(String, String, Path)public void resetCount()
public void addToCount(java.lang.Object object)
object - the item to be added.public java.util.Map getCountDescending()
public java.util.Map getCount()
public java.lang.Integer toInteger(java.lang.String s)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||