Class Link.ReleaseInfoEntry
java.lang.Object
org.apache.tools.ant.taskdefs.modules.Link.ReleaseInfoEntry
- 
Constructor SummaryConstructorsConstructorDescriptionCreates a new, unconfigured element.ReleaseInfoEntry(String key, String value) Creates a new element which specifies a single additional property.
- 
Method SummaryModifier and TypeMethodDescriptionAttribute containing the character set of this object's file.getFile()Attribute containing a Java properties file which contains additional release info properties.getKey()Attribute containing the key of this element's additional property.getValue()Attribute containing the value of this element's additional property.voidsetCharset(String charset) Sets attribute containing the character set of this object's file.voidSets attribute containing a Java properties file which contains additional release info properties.voidSets attribute containing the key of this element's additional property.voidSets attributes containing the value of this element's additional property.Converts this element to a Java properties object containing the additional properties this element represents.voidvalidate()Verifies the state of this element.
- 
Constructor Details- 
ReleaseInfoEntrypublic ReleaseInfoEntry()Creates a new, unconfigured element.
- 
ReleaseInfoEntry
 
- 
- 
Method Details- 
getKeyAttribute containing the key of this element's additional property.- Returns:
- additional property's key
- See Also:
 
- 
setKeySets attribute containing the key of this element's additional property.- Parameters:
- key- additional property's key
- See Also:
 
- 
getValueAttribute containing the value of this element's additional property.- Returns:
- additional property's value
- See Also:
 
- 
setValueSets attributes containing the value of this element's additional property.- Parameters:
- value- additional property's value
- See Also:
 
- 
getFile
- 
setFile
- 
getCharset
- 
setCharset
- 
validatepublic void validate()Verifies the state of this element.- Throws:
- BuildException- if file is set, and key and/or value are set
- BuildException- if file is not set, and key and value are not both set
- BuildException- if charset is not a valid Java Charset name
 
- 
toPropertiesConverts this element to a Java properties object containing the additional properties this element represents. If this element's file is set, it is read; otherwise, a Properties object containing just one property, consisting of this element's key and value, is returned.- Returns:
- new Properties object obtained from this element's file or its key and value
- Throws:
- BuildException- if file is set, but cannot be read
 
 
-