|
||||||||||
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 |
addTokensToFilterChain(org.apache.tools.ant.types.FilterChain filterChain,
Map map)
Add the map of tokens to the filterChain. |
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. |
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 tasksMethod Detail |
---|
public final org.apache.tools.ant.Task createAntTask(String taskName)
taskName
- The logical name of the task to create
public 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 to
public 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 path
public final org.apache.tools.ant.types.Environment.Variable createSysProperty(String key, String value)
key
- The key or name of the variablevalue
- The value
public 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 used
public org.apache.tools.ant.Project createProject()
Project
public void addTokenToFilterChain(org.apache.tools.ant.types.FilterChain filterChain, String key, String value)
filterChain
- the filter chain to augmentkey
- the token keyvalue
- the token valuepublic void addTokensToFilterChain(org.apache.tools.ant.types.FilterChain filterChain, Map map)
filterChain
- The filterchain to usemap
- The map
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |