org.apache.tools.ant.taskdefs
public class LoadProperties extends Task
Since: Ant 1.5
UNKNOWN: category="utility"
Method Summary | |
---|---|
void | addConfigured(ResourceCollection a)
Set the source resource. |
void | addFilterChain(FilterChain filter)
Adds a FilterChain. |
Path | createClasspath()
Add a classpath to use when looking up a resource. |
void | execute()
load Ant properties from the source file or resource
|
Path | getClasspath()
get the classpath used by this LoadProperties . |
void | setClasspath(Path classpath)
Set the classpath to use when looking up a resource. |
void | setClasspathRef(Reference r)
Set the classpath to use when looking up a resource,
given as reference to a <path> defined elsewhere |
void | setEncoding(String encoding)
Encoding to use for input, defaults to the platform's default
encoding. |
void | setResource(String resource)
Set the resource name of a property file to load.
|
void | setSrcFile(File srcFile)
Set the file to load.
|
Parameters: a the resource to load as a single element Resource collection.
Since: Ant 1.7
Parameters: filter the filter to add
Returns: The classpath to be configured
Throws: BuildException if something goes wrong with the build
LoadProperties
.Returns: The classpath
Parameters: classpath to add to any existing classpath
Parameters: r The reference value
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: resource resource on classpath
Parameters: srcFile The new SrcFile value