|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.cargo.util.AntUtils
public class AntUtils
Set of common Ant utility methods.
| Constructor Summary | |
|---|---|
AntUtils()
Uses the DefaultAntTaskFactory class when creating Ant
tasks. |
|
AntUtils(AntTaskFactory factory)
|
|
| Method Summary | |
|---|---|
void |
addTokenToFilterChain(org.apache.tools.ant.types.FilterChain filterChain,
java.lang.String key,
java.lang.String value)
Add a token to an existing filter chain. |
org.apache.tools.ant.Task |
createAntTask(java.lang.String taskName)
Creates and returns a new instance of the Ant task mapped to the specified logical name. |
org.apache.tools.ant.Project |
createProject()
|
org.apache.tools.ant.types.Environment.Variable |
createSysProperty(java.lang.String key,
java.io.File file)
Convenience method to create an Ant environment variable that points to a file. |
org.apache.tools.ant.types.Environment.Variable |
createSysProperty(java.lang.String key,
org.apache.tools.ant.types.Path path)
Convenience method to create an Ant environment variable that contains a path. |
org.apache.tools.ant.types.Environment.Variable |
createSysProperty(java.lang.String key,
java.lang.String value)
Convenience method to create an Ant environment variable that contains a string. |
org.apache.tools.ant.types.Environment.Variable |
createSysProperty(java.lang.String key,
java.net.URI value)
Convenience method to create an Ant environment variable that contains a string from an URI. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AntUtils()
DefaultAntTaskFactory class when creating Ant
tasks.
public AntUtils(AntTaskFactory factory)
factory - Ant task factory class used when creating Ant tasks| Method Detail |
|---|
public final org.apache.tools.ant.Task createAntTask(java.lang.String taskName)
taskName - The logical name of the task to create
public final org.apache.tools.ant.types.Environment.Variable createSysProperty(java.lang.String key,
java.io.File file)
key - The key or name of the variablefile - The file the variable should point to
public final org.apache.tools.ant.types.Environment.Variable createSysProperty(java.lang.String key,
org.apache.tools.ant.types.Path path)
key - The key or name of the variablepath - The path
public final org.apache.tools.ant.types.Environment.Variable createSysProperty(java.lang.String key,
java.lang.String value)
key - The key or name of the variablevalue - The value
public final org.apache.tools.ant.types.Environment.Variable createSysProperty(java.lang.String key,
java.net.URI value)
Convenience method to create an Ant environment variable that contains a string from an URI.
Note that URI.getPath() will be used.
key - The key or name of the variablevalue - The URI to take the value from; URI.getPath() will be used
public org.apache.tools.ant.Project createProject()
Project
public void addTokenToFilterChain(org.apache.tools.ant.types.FilterChain filterChain,
java.lang.String key,
java.lang.String value)
filterChain - the filter chain to augmentkey - the token keyvalue - the token value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||