Package org.apache.maven.model.v3_0_0
Class Resource
java.lang.Object
org.apache.maven.model.v3_0_0.PatternSet
org.apache.maven.model.v3_0_0.FileSet
org.apache.maven.model.v3_0_0.Resource
- All Implemented Interfaces:
Serializable
This element describes all of the classpath resources associated
with a project
or unit tests.
- Version:
- $Revision$ $Date$
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
Whether resources are filtered to replace tokens with parameterised values or not.private String
Describe the resource target path. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet describe the resource target path.boolean
Get whether resources are filtered to replace tokens with parameterised values or not.void
setFiltering
(boolean filtering) Set whether resources are filtered to replace tokens with parameterised values or not.void
setTargetPath
(String targetPath) Set describe the resource target path.Methods inherited from class org.apache.maven.model.v3_0_0.FileSet
getDirectory, setDirectory
Methods inherited from class org.apache.maven.model.v3_0_0.PatternSet
addExclude, addInclude, getExcludes, getIncludes, removeExclude, removeInclude, setExcludes, setIncludes
-
Field Details
-
targetPath
Describe the resource target path. The path is relative to the target/classes directory (i.e.${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. -
filtering
private boolean filteringWhether resources are filtered to replace tokens with parameterised values or not. The values are taken from theproperties
element and from the properties in the files listed in thefilters
element.
-
-
Constructor Details
-
Resource
public Resource()
-
-
Method Details
-
getTargetPath
Get describe the resource target path. The path is relative to the target/classes directory (i.e.${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.- Returns:
- String
-
isFiltering
public boolean isFiltering()Get whether resources are filtered to replace tokens with parameterised values or not. The values are taken from theproperties
element and from the properties in the files listed in thefilters
element.- Returns:
- boolean
-
setFiltering
public void setFiltering(boolean filtering) Set whether resources are filtered to replace tokens with parameterised values or not. The values are taken from theproperties
element and from the properties in the files listed in thefilters
element.- Parameters:
filtering
- a filtering object.
-
setTargetPath
Set describe the resource target path. The path is relative to the target/classes directory (i.e.${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.- Parameters:
targetPath
- a targetPath object.
-