org.apache.tools.ant.taskdefs
Class LoadProperties
- Cloneable
public class LoadProperties
Load a file's contents as Ant properties.
bindToOwner , execute , getOwningTarget , getRuntimeConfigurableWrapper , getTaskName , getTaskType , getWrapper , handleErrorFlush , handleErrorOutput , handleFlush , handleInput , handleOutput , init , isInvalid , log , log , log , log , maybeConfigure , perform , reconfigure , setOwningTarget , setRuntimeConfigurableWrapper , setTaskName , setTaskType |
addConfigured
public void addConfigured(ResourceCollection a)
Set the source resource.
a
- the resource to load as a single element Resource collection.
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