Deprecated
KeySubst is deprecated since Ant 1.1. Use Filter + Copy instead.
| Modifier and Type | Field and Description |
|---|---|
| private File | |
| private Hashtable | |
| private String | |
| private File |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public static void | |
| public static String | |
| public void | |
| public void | |
| public void | |
| public void |
| dest | back to summary |
|---|---|
| private File dest | |
| replacements | back to summary |
|---|---|
| private Hashtable<String, String> replacements | |
| sep | back to summary |
|---|---|
| private String sep | |
| source | back to summary |
|---|---|
| private File source | |
| KeySubst | back to summary |
|---|---|
| public KeySubst() | |
| execute | back to summary |
|---|---|
| public void execute() throws BuildException Overrides org. Do the execution.
| |
| main | back to summary |
|---|---|
| public static void main(String[] args) A test method.
| |
| replace | back to summary |
|---|---|
| public static String replace(String origString, Hashtable<String, String> keys) throws BuildException Does replacement on text using the hashtable of keys. | |
| setDest | back to summary |
|---|---|
| public void setDest(File dest) Set the destination file.
| |
| setKeys | back to summary |
|---|---|
| public void setKeys(String keys) Sets the keys. Format string is like this: name=value*name2=value Names are case sensitive. Use the setSep() method to change the * to something else if you need to use * as a name or value.
| |
| setSep | back to summary |
|---|---|
| public void setSep(String sep) Sets the separator between name=value arguments in setKeys(). By default it is "*".
| |
| setSrc | back to summary |
|---|---|
| public void setSrc(File s) Set the source file.
| |