org.apache.tools.ant.types.resources
public class JavaResource extends Resource
Since: Ant 1.7
| Constructor Summary | |
|---|---|
| JavaResource()
Default constructor. | |
| JavaResource(String name, Path path)
Construct a new JavaResource using the specified name and
classpath.
| |
| Method Summary | |
|---|---|
| int | compareTo(Object another)
Compare this JavaResource to another Resource. |
| Path | createClasspath()
Add a classpath to use when looking up a resource. |
| Path | getClasspath()
get the classpath used by this LoadProperties. |
| InputStream | getInputStream()
Return an InputStream for reading the contents of this Resource. |
| boolean | isExists()
Learn whether this file exists. |
| 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 | setLoaderRef(Reference r)
Use the reference to locate the loader. |
| void | setRefid(Reference r)
Overrides the super version. |
Parameters: name the resource name. path the classpath.
Parameters: another the other Resource against which to compare.
Returns: a negative integer, zero, or a positive integer as this JavaResource is less than, equal to, or greater than the specified Resource.
Returns: The classpath to be configured
LoadProperties.Returns: The classpath
Returns: an InputStream object.
Throws: IOException if an error occurs.
Returns: true if this resource exists.
Parameters: classpath to add to any existing classpath
Parameters: r The reference value
Parameters: r the reference to locate the loader.
Parameters: r the Reference to set.