org.apache.tools.ant.taskdefs
Class LoadProperties
public class LoadProperties
Load a file's contents as Ant properties.
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.
|
execute, getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
addFilterChain
public final void addFilterChain(FilterChain filter)
Adds a FilterChain.
filter - the filter to add
createClasspath
public Path createClasspath()
Add a classpath to use when looking up a resource.
- The classpath to be configured
execute
public final void execute()
throws BuildException load Ant properties from the source file or resource
- execute in interface Task
getClasspath
public Path getClasspath()
get the classpath used by this LoadProperties.
setClasspath
public void setClasspath(Path classpath)
Set the classpath to use when looking up a resource.
classpath - to add to any existing classpath
setClasspathRef
public void setClasspathRef(Reference r)
Set the classpath to use when looking up a resource,
given as reference to a <path> defined elsewhere
setEncoding
public final void setEncoding(String encoding)
encoding - The new Encoding value
setResource
public void setResource(String resource)
Set the resource name of a property file to load.
resource - resource on classpath
setSrcFile
public final void setSrcFile(File srcFile)
Set the file to load.
srcFile - The new SrcFile value
Copyright B) 2000-2006 Apache Software Foundation. All Rights Reserved.