org.apache.tools.ant.types
Class Environment.Variable
java.lang.Object
org.apache.tools.ant.types.Environment.Variable
- Environment
public static class Environment.Variable
extends java.lang.Object
representation of a single env value
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(java.io.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
|
Variable
public Variable()
Constructor for variable
getContent
public String getContent()
throws BuildException
get the assigment string
This is not ready for insertion into a property file without following
the escaping rules of the properties class.
- a string of the form key=value.
BuildException
- if key or value are unassigned
getKey
public String getKey()
key accessor
- key
getValue
public String getValue()
value accessor
- value
setFile
public void setFile(java.io.File file)
get the absolute path of a file and assign it to the value
file
- file to use as the value
setKey
public void setKey(String key)
set the key
key
- string
setPath
public void setPath(Path path)
stringify path and assign to the value.
The value will contain all path elements separated by the appropriate
separator
path
- path
setValue
public void setValue(String value)
set the value
value
- string value
Copyright B) 2000-2005 Apache Software Foundation. All Rights Reserved.