public class FileResource extends java.lang.Object implements ResourceInterface
Modifier and Type | Class and Description |
---|---|
static class |
FileResource.Type
File resource type.
|
Modifier and Type | Field and Description |
---|---|
FileResource.Type |
type
File resource type.
|
java.lang.String |
uri
URI to file.
|
static java.lang.String |
XML_NAME |
Constructor and Description |
---|
FileResource()
Create an empty FileResource
|
FileResource(FileResource.Type type,
java.lang.String uri)
Creates a FileResource.
|
Modifier and Type | Method and Description |
---|---|
org.apache.tools.ant.types.Resource |
getAntResource(org.apache.tools.ant.Project p)
Get Apache Ant Resource type.
|
public static final java.lang.String XML_NAME
public FileResource.Type type
public java.lang.String uri
c:/path/to/myfile.txt
/usr/share/file
http://server/path/file.zip
public FileResource(FileResource.Type type, java.lang.String uri)
type
- file resource typeuri
- file resource uripublic FileResource()
public org.apache.tools.ant.types.Resource getAntResource(org.apache.tools.ant.Project p)
getAntResource
in interface ResourceInterface
p
- Ant project