org.apache.tools.ant.taskdefs
public class LoadFile extends Task
Since: Ant 1.5
UNKNOWN: category="utility"
Method Summary | |
---|---|
void | addFilterChain(FilterChain filter)
Add the FilterChain element. |
void | execute()
read in a source file to a property
|
void | setEncoding(String encoding)
Encoding to use for input, defaults to the platform's default
encoding. |
void | setFailonerror(boolean fail)
If true, fail on load error.
|
void | setProperty(String property)
Property name to save to.
|
void | setSrcFile(File srcFile)
Sets the file to load.
|
Parameters: filter the filter to add
Throws: BuildException if something goes wrong with the build
For a list of possible values see http://java.sun.com/products/jdk/1.2/docs/guide/internat/encoding.doc.html .
Parameters: encoding The new Encoding value
Parameters: fail The new Failonerror value
Parameters: property The new Property value
Parameters: srcFile The new SrcFile value