org.apache.maven.model
Class Resource

java.lang.Object
  extended by org.apache.maven.model.PatternSet
      extended by org.apache.maven.model.FileSet
          extended by org.apache.maven.model.Resource
All Implemented Interfaces:
java.io.Serializable

public class Resource
extends FileSet
implements java.io.Serializable

This element describes all of the classpath resources associated with a project or unit tests.

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

Constructor Summary
Resource()
           
 
Method Summary
 java.lang.String getModelEncoding()
           
 java.lang.String getTargetPath()
          Get Describe the resource target path.
 boolean isFiltering()
          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 setModelEncoding(java.lang.String modelEncoding)
           
 void setTargetPath(java.lang.String targetPath)
          Set Describe the resource target path.
 
Methods inherited from class org.apache.maven.model.FileSet
getDirectory, setDirectory
 
Methods inherited from class org.apache.maven.model.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
 

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 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.


isFiltering

public boolean isFiltering()
Get Whether resources are filtered to replace tokens with parameterised values or not. The values are taken from the properties element and from the properties in the files listed in the filters element.


setFiltering

public void setFiltering(boolean filtering)
Set Whether resources are filtered to replace tokens with parameterised values or not. The values are taken from the properties element and from the properties in the files listed in the filters element.

Parameters:
filtering -

setTargetPath

public void setTargetPath(java.lang.String targetPath)
Set Describe the resource target path. 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 -

setModelEncoding

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

getModelEncoding

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


Copyright © 2005-2007 Apache Software Foundation. All Rights Reserved.