|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.project.BaseObject
org.apache.maven.project.Resource
Represents a set of files in a single directory.
Field Summary |
---|
Fields inherited from class org.apache.maven.project.BaseObject |
---|
id |
Constructor Summary | |
---|---|
Resource()
|
Method Summary | |
---|---|
void |
addExclude(java.lang.String pattern)
Add an exclude pattern. |
void |
addInclude(java.lang.String pattern)
Add an include pattern. |
java.lang.String |
getDirectory()
Get the directory where resources are located. |
java.util.List |
getExcludes()
Retrieve a list of exclude patterns. |
boolean |
getFiltering()
|
java.util.List |
getIncludes()
Retrieve a list of include patterns. |
java.lang.String |
getTargetPath()
Get the directory where resources are placed |
void |
resolveDirectory(java.io.File basedir)
Resolve directory against a base directory if it is not already absolute. |
void |
setDirectory(java.lang.String dir)
Set the directory where resources are located. |
void |
setFiltering(boolean isFiltering)
|
void |
setTargetPath(java.lang.String targetPath)
Set the target directory where resources are placed. |
java.lang.String |
toString()
Return a string suitable for display/debugging |
Methods inherited from class org.apache.maven.project.BaseObject |
---|
addProperty, equals, getId, getName, getProperties, getProperty, hashCode, isValid, resolvedProperties, setId, setName, setProperties |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Resource()
Method Detail |
public void addInclude(java.lang.String pattern)
pattern
- Add an include pattern.public void addExclude(java.lang.String pattern)
pattern
- Add an exlude pattern.public java.util.List getIncludes()
public java.util.List getExcludes()
public void setDirectory(java.lang.String dir)
dir
- The directory where resources are located.public java.lang.String getDirectory()
public void setTargetPath(java.lang.String targetPath)
targetPath
- The directory where resources are placed.public java.lang.String getTargetPath()
public java.lang.String toString()
BaseObject
toString
in class BaseObject
public void setFiltering(boolean isFiltering)
isFiltering
- specifies whether filtering is active or notpublic boolean getFiltering()
public void resolveDirectory(java.io.File basedir) throws java.io.IOException
basedir
- the base directory for relative paths
java.io.IOException
- if canonical path fails
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |