public class MavenTool
extends java.lang.Object
| Constructor and Description |
|---|
MavenTool()
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
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) |
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).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)
Copyright © 2001-2013 Apache Software Foundation. All Rights Reserved.