java.lang.Cloneable
@Deprecated public class KeySubst extends Task
description, location, project
Constructor | Description |
---|---|
KeySubst() |
Deprecated.
|
Modifier and Type | Method | Description |
---|---|---|
void |
execute() |
Deprecated.
Do the execution.
|
static void |
main(java.lang.String[] args) |
Deprecated.
A test method.
|
static java.lang.String |
replace(java.lang.String origString,
java.util.Hashtable<java.lang.String,java.lang.String> keys) |
Deprecated.
Does replacement on text using the hashtable of keys.
|
void |
setDest(java.io.File dest) |
Deprecated.
Set the destination file.
|
void |
setKeys(java.lang.String keys) |
Deprecated.
Sets the keys.
|
void |
setSep(java.lang.String sep) |
Deprecated.
Sets the separator between name=value arguments
in setKeys().
|
void |
setSrc(java.io.File s) |
Deprecated.
Set the source file.
|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
public void execute() throws BuildException
execute
in class Task
BuildException
- on errorpublic void setSrc(java.io.File s)
s
- the source filepublic void setDest(java.io.File dest)
dest
- the destination filepublic void setSep(java.lang.String sep)
sep
- the separator stringpublic void setKeys(java.lang.String keys)
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.
keys
- a String
valuepublic static void main(java.lang.String[] args)
args
- not usedpublic static java.lang.String replace(java.lang.String origString, java.util.Hashtable<java.lang.String,java.lang.String> keys) throws BuildException
origString
- an input stringkeys
- mapping of keys to valuesBuildException
- on error