public class AntUtils extends Object
| Constructor and Description |
|---|
AntUtils()
Uses the
DefaultAntTaskFactory class when creating Ant
tasks. |
AntUtils(AntTaskFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
void |
addTokenToFilterChain(org.apache.tools.ant.types.FilterChain filterChain,
String key,
String value)
Add a token to an existing filter chain.
|
org.apache.tools.ant.Task |
createAntTask(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(String key,
File file)
Convenience method to create an Ant environment variable that points to
a file.
|
org.apache.tools.ant.types.Environment.Variable |
createSysProperty(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(String key,
String value)
Convenience method to create an Ant environment variable that contains a
string.
|
org.apache.tools.ant.types.Environment.Variable |
createSysProperty(String key,
URI value)
Convenience method to create an Ant environment variable that contains a
string from an URI.
|
public AntUtils()
DefaultAntTaskFactory class when creating Ant
tasks.public AntUtils(AntTaskFactory factory)
factory - Ant task factory class used when creating Ant taskspublic final org.apache.tools.ant.Task createAntTask(String taskName)
taskName - The logical name of the task to createpublic final org.apache.tools.ant.types.Environment.Variable createSysProperty(String key, File file)
key - The key or name of the variablefile - The file the variable should point topublic final org.apache.tools.ant.types.Environment.Variable createSysProperty(String key, org.apache.tools.ant.types.Path path)
key - The key or name of the variablepath - The pathpublic final org.apache.tools.ant.types.Environment.Variable createSysProperty(String key, String value)
key - The key or name of the variablevalue - The valuepublic final org.apache.tools.ant.types.Environment.Variable createSysProperty(String key, 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 usedpublic org.apache.tools.ant.Project createProject()
ProjectCopyright © 2004-2013 Codehaus. All Rights Reserved.