Class Resource

All Implemented Interfaces:
Serializable

public class Resource extends FileSet implements Serializable
This element describes all of the classpath resources associated with a project or unit tests.
Version:
$Revision$ $Date$
See Also:
  • Field Details

    • targetPath

      private 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 boolean filtering
      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.
  • Constructor Details

    • Resource

      public Resource()
  • Method Details

    • getTargetPath

      public 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
    • 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.
      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 the properties element and from the properties in the files listed in the filters element.
      Parameters:
      filtering -
    • setTargetPath

      public void setTargetPath(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 -