Package org.apache.maven.model
Class Resource
- java.lang.Object
-
- org.apache.maven.model.PatternSet
-
- org.apache.maven.model.FileSet
-
- org.apache.maven.model.Resource
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,InputLocationTracker
public class Resource extends FileSet implements java.io.Serializable, java.lang.Cloneable
This element describes all of the classpath resources associated with a project or unit tests.- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringfilteringWhether resources are filtered to replace tokens with parameterised values or not.private java.lang.StringmergeIdFOR INTERNAL USE ONLY.private static intmergeIdCounterprivate java.lang.StringtargetPathDescribe the resource target path.
-
Constructor Summary
Constructors Constructor Description Resource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Resourceclone()Method clone.java.lang.StringgetFiltering()Get whether resources are filtered to replace tokens with parameterised values or not.java.lang.StringgetMergeId()Get fOR INTERNAL USE ONLY.java.lang.StringgetTargetPath()Get describe the resource target path.voidinitMergeId()booleanisFiltering()voidsetFiltering(boolean filtering)voidsetFiltering(java.lang.String filtering)Set whether resources are filtered to replace tokens with parameterised values or not.voidsetMergeId(java.lang.String mergeId)Set fOR INTERNAL USE ONLY.voidsetTargetPath(java.lang.String targetPath)Set describe the resource target path.java.lang.StringtoString()-
Methods inherited from class org.apache.maven.model.FileSet
getDirectory, setDirectory
-
Methods inherited from class org.apache.maven.model.PatternSet
addExclude, addInclude, getExcludes, getIncludes, getLocation, removeExclude, removeInclude, setExcludes, setIncludes, setLocation, setOtherLocation
-
-
-
-
Field Detail
-
targetPath
private java.lang.String 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 java.lang.String filtering
Whether resources are filtered to replace tokens with parameterised values or not. The values are taken from thepropertieselement and from the properties in the files listed in thefilterselement. Note: While the type of this field isStringfor technical reasons, the semantic type is actuallyBoolean. Default value isfalse.
-
mergeId
private java.lang.String mergeId
FOR INTERNAL USE ONLY. This is a unique identifier assigned to each resource to allow Maven to merge changes to this resource that take place during the execution of a plugin. This field must be managed by the generated parser and formatter classes in order to allow it to survive model interpolation.
-
mergeIdCounter
private static int mergeIdCounter
-
-
Method Detail
-
getFiltering
public java.lang.String getFiltering()
Get whether resources are filtered to replace tokens with parameterised values or not. The values are taken from thepropertieselement and from the properties in the files listed in thefilterselement. Note: While the type of this field isStringfor technical reasons, the semantic type is actuallyBoolean. Default value isfalse.- Returns:
- String
-
getMergeId
public java.lang.String getMergeId()
Get fOR INTERNAL USE ONLY. This is a unique identifier assigned to each resource to allow Maven to merge changes to this resource that take place during the execution of a plugin. This field must be managed by the generated parser and formatter classes in order to allow it to survive model interpolation.- Returns:
- String
-
getTargetPath
public java.lang.String 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
-
setFiltering
public void setFiltering(java.lang.String filtering)
Set whether resources are filtered to replace tokens with parameterised values or not. The values are taken from thepropertieselement and from the properties in the files listed in thefilterselement. Note: While the type of this field isStringfor technical reasons, the semantic type is actuallyBoolean. Default value isfalse.- Parameters:
filtering-
-
setMergeId
public void setMergeId(java.lang.String mergeId)
Set fOR INTERNAL USE ONLY. This is a unique identifier assigned to each resource to allow Maven to merge changes to this resource that take place during the execution of a plugin. This field must be managed by the generated parser and formatter classes in order to allow it to survive model interpolation.- Parameters:
mergeId-
-
setTargetPath
public void setTargetPath(java.lang.String targetPath)
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-
-
initMergeId
public void initMergeId()
-
isFiltering
public boolean isFiltering()
-
setFiltering
public void setFiltering(boolean filtering)
-
-