org.apache.tools.ant.taskdefs
public class LoadResource extends Task
Since: Ant 1.7
UNKNOWN: category="utility"
Method Summary | |
---|---|
void | addConfigured(ResourceCollection a)
Set the source resource. |
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 | setQuiet(boolean quiet)
If true, suppress the load error report and set the
the failonerror value to false. |
Parameters: a the resource to load as a single element Resource collection.
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/j2se/1.5.0/docs/guide/intl/encoding.doc.html .
Parameters: encoding The new Encoding value
Parameters: fail The new Failonerror value
Parameters: property The new Property value
Parameters: quiet The new Quiet value