org.apache.tools.ant.taskdefs
Class Replace
java.lang.Object
|
+--org.apache.tools.ant.Task
|
+--org.apache.tools.ant.taskdefs.MatchingTask
|
+--org.apache.tools.ant.taskdefs.Replace
- public class Replace
- extends MatchingTask
Replaces all the occurrences of the given string token with the given
string value of the indicated files.
- Author:
- Stefano Mazzocchi stefano@apache.org
Method Summary |
void |
execute()
Do the execution. |
void |
setDir(java.lang.String dirName)
Set the source files path when using matching tasks. |
void |
setFile(java.lang.String file)
Set the source file. |
void |
setToken(java.lang.String token)
Set the string token to replace. |
void |
setValue(java.lang.String value)
Set the string value to use as token replacement. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Replace
public Replace()
execute
public void execute()
throws BuildException
- Do the execution.
- Overrides:
- execute in class Task
setFile
public void setFile(java.lang.String file)
- Set the source file.
setDir
public void setDir(java.lang.String dirName)
- Set the source files path when using matching tasks.
setToken
public void setToken(java.lang.String token)
- Set the string token to replace.
setValue
public void setValue(java.lang.String value)
- Set the string value to use as token replacement.
Copyright © 2000 Apache Software Foundation. All Rights Reserved.