org.apache.tools.ant.types
public static class Environment.Variable extends Object
| Constructor Summary | |
|---|---|
| Variable()
Constructor for variable
| |
| Method Summary | |
|---|---|
| String | getContent()
get the assigment string
This is not ready for insertion into a property file without following
the escaping rules of the properties class. |
| String | getKey()
key accessor |
| String | getValue()
value accessor |
| void | setFile(File file)
get the absolute path of a file and assign it to the value |
| void | setKey(String key)
set the key |
| void | setPath(Path path)
stringify path and assign to the value.
|
| void | setValue(String value)
set the value |
| void | validate()
checks whether all required attributes have been specified. |
Returns: a string of the form key=value.
Throws: BuildException if key or value are unassigned
Returns: key
Returns: value
Parameters: file file to use as the value
Parameters: key string
Parameters: path path
Parameters: value string value
Throws: BuildException if key or value are unassigned