public class Resource extends FileSet implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
filtering
Whether resources are filtered to replace tokens
with parameterised values or not.
|
private java.lang.String |
mergeId
FOR INTERNAL USE ONLY.
|
private static int |
mergeIdCounter |
private java.lang.String |
targetPath
Describe the resource target path.
|
Constructor and Description |
---|
Resource() |
Modifier and Type | Method and Description |
---|---|
Resource |
clone()
Method clone.
|
java.lang.String |
getFiltering()
Get whether resources are filtered to replace tokens with
parameterised values or not.
|
java.lang.String |
getMergeId()
Get fOR INTERNAL USE ONLY.
|
java.lang.String |
getTargetPath()
Get describe the resource target path.
|
void |
initMergeId() |
boolean |
isFiltering() |
void |
setFiltering(boolean filtering) |
void |
setFiltering(java.lang.String filtering)
Set whether resources are filtered to replace tokens with
parameterised values or not.
|
void |
setMergeId(java.lang.String mergeId)
Set fOR INTERNAL USE ONLY.
|
void |
setTargetPath(java.lang.String targetPath)
Set describe the resource target path.
|
java.lang.String |
toString() |
getDirectory, setDirectory
addExclude, addInclude, getExcludes, getIncludes, getLocation, removeExclude, removeInclude, setExcludes, setIncludes, setLocation, setOtherLocation
private java.lang.String targetPath
${project.build.outputDirectory}
).
For example, if you want that resource to appear
in a specific package
(org.apache.maven.messages
), you
must specify this
element with this value:
org/apache/maven/messages
.
This is not required if you simply put the
resources in that directory
structure at the source, however.private java.lang.String filtering
properties
element and from the
properties in the files listed in the
filters
element. Note: While the type
of this field is String
for
technical reasons, the semantic type is actually
Boolean
. Default value is
false
.private java.lang.String mergeId
private static int mergeIdCounter
public java.lang.String getFiltering()
properties
element and from the
properties in the files listed in the
filters
element. Note: While the type
of this field is String
for
technical reasons, the semantic type is actually
Boolean
. Default value is
false
.public java.lang.String getMergeId()
public java.lang.String getTargetPath()
${project.build.outputDirectory}
).
For example, if you want that resource to appear
in a specific package
(org.apache.maven.messages
), you
must specify this
element with this value:
org/apache/maven/messages
.
This is not required if you simply put the
resources in that directory
structure at the source, however.public void setFiltering(java.lang.String filtering)
properties
element and from the
properties in the files listed in the
filters
element. Note: While the type
of this field is String
for
technical reasons, the semantic type is actually
Boolean
. Default value is
false
.filtering
- a filtering object.public void setMergeId(java.lang.String mergeId)
mergeId
- a mergeId object.public void setTargetPath(java.lang.String targetPath)
${project.build.outputDirectory}
).
For example, if you want that resource to appear
in a specific package
(org.apache.maven.messages
), you
must specify this
element with this value:
org/apache/maven/messages
.
This is not required if you simply put the
resources in that directory
structure at the source, however.targetPath
- a targetPath object.public void initMergeId()
public boolean isFiltering()
public void setFiltering(boolean filtering)