org.apache.maven.project
Class Resource

java.lang.Object
  extended byorg.apache.maven.project.PatternSet
      extended byorg.apache.maven.project.FileSet
          extended byorg.apache.maven.project.Resource
All Implemented Interfaces:
java.io.Serializable

public class Resource
extends FileSet
implements java.io.Serializable

This element describes all of the resources associated with a project or unit tests. Each resource is described by a resource element, which is then described by additional elements (described below). These resources are used to complete the jar file or to run unit test.

Version:
$Revision$ $Date$
See Also:
Serialized Form

Field Summary
private  boolean filtering
          Field filtering
private  java.lang.String modelEncoding
           
private  java.lang.String targetPath
          Field targetPath
 
Fields inherited from class org.apache.maven.project.FileSet
 
Fields inherited from class org.apache.maven.project.PatternSet
 
Constructor Summary
Resource()
           
 
Method Summary
 java.lang.String getModelEncoding()
           
 java.lang.String getTargetPath()
          Get Describe the resource target path.
 boolean isFiltering()
          Get Boolean.
 void setFiltering(boolean filtering)
          Set Boolean.
 void setModelEncoding(java.lang.String modelEncoding)
           
 void setTargetPath(java.lang.String targetPath)
          Set Describe the resource target path.
 
Methods inherited from class org.apache.maven.project.FileSet
getDirectory, setDirectory
 
Methods inherited from class org.apache.maven.project.PatternSet
addExclude, addInclude, getExcludes, getIncludes, removeExclude, removeInclude, setExcludes, setIncludes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

targetPath

private java.lang.String targetPath
Field targetPath


filtering

private boolean filtering
Field filtering


modelEncoding

private java.lang.String modelEncoding
Constructor Detail

Resource

public Resource()
Method Detail

getTargetPath

public java.lang.String getTargetPath()
Get Describe the resource target path. For example, if you want that resource appear into a specific package (org.apache.maven.messages), you must specify this element with this value : org/apache/maven/messages


isFiltering

public boolean isFiltering()
Get Boolean. Describe if resources are filtered or not.


setFiltering

public void setFiltering(boolean filtering)
Set Boolean. Describe if resources are filtered or not.

Parameters:
filtering -

setTargetPath

public void setTargetPath(java.lang.String targetPath)
Set Describe the resource target path. For example, if you want that resource appear into a specific package (org.apache.maven.messages), you must specify this element with this value : org/apache/maven/messages

Parameters:
targetPath -

setModelEncoding

public void setModelEncoding(java.lang.String modelEncoding)
Overrides:
setModelEncoding in class FileSet

getModelEncoding

public java.lang.String getModelEncoding()
Overrides:
getModelEncoding in class FileSet