Class ResourcesExecutor

java.lang.Object
net.agilhard.maven.plugins.jpacktool.base.mojo.ResourcesExecutor
All Implemented Interfaces:
org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable

public class ResourcesExecutor
extends java.lang.Object
implements org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
Copy resources for the main source code to the main output directory. Always uses the project.build.resources element to specify the resources to copy.
Author:
Michal Maczka, Jason van Zyl, Andreas Hoheneder, William Ferguson, Bernd Eilers
  • Field Details

    • project

      @Parameter(defaultValue="${project}", readonly=true, required=true) protected org.apache.maven.project.MavenProject project
    • mavenResourcesFiltering

      @Component(role=org.apache.maven.shared.filtering.MavenResourcesFiltering.class, hint="default") protected org.apache.maven.shared.filtering.MavenResourcesFiltering mavenResourcesFiltering
    • mavenFileFilter

      @Component(role=org.apache.maven.shared.filtering.MavenFileFilter.class, hint="default") protected org.apache.maven.shared.filtering.MavenFileFilter mavenFileFilter
    • mavenFilteringComponents

      public java.util.List<org.apache.maven.shared.filtering.MavenResourcesFiltering> mavenFilteringComponents
      Since:
      2.4
    • session

      @Parameter(defaultValue="${session}", readonly=true, required=true) protected org.apache.maven.execution.MavenSession session
    • data

      protected PackagingResources data
    • templateMap

      protected java.util.Map<java.lang.String,​java.lang.Object> templateMap
  • Constructor Details

  • Method Details

    • getLog

      public org.apache.maven.plugin.logging.Log getLog()
    • contextualize

      public void contextualize​(org.codehaus.plexus.context.Context context) throws org.codehaus.plexus.context.ContextException
      Specified by:
      contextualize in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
      Throws:
      org.codehaus.plexus.context.ContextException
    • execute

      public void execute() throws org.apache.maven.plugin.MojoExecutionException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • executeUserFilterComponents

      protected void executeUserFilterComponents​(org.apache.maven.shared.filtering.MavenResourcesExecution mavenResourcesExecution) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.shared.filtering.MavenFilteringException
      Parameters:
      mavenResourcesExecution - MavenResourcesExecution
      Throws:
      org.apache.maven.plugin.MojoExecutionException - in case of wrong lookup.
      org.apache.maven.shared.filtering.MavenFilteringException - in case of failure.
      Since:
      2.5
    • getCombinedFiltersList

      protected java.util.List<java.lang.String> getCombinedFiltersList()
      Returns:
      The combined filters.
    • getResources

      public java.util.List<org.apache.maven.model.Resource> getResources()
      Returns:
      PackagingResources.resources
    • setResources

      public void setResources​(java.util.List<org.apache.maven.model.Resource> resources)
      Parameters:
      resources - set PackagingResources.resources
    • getOutputDirectory

      public java.io.File getOutputDirectory()
      Returns:
      PackagingResources.outputDirectory
    • setOutputDirectory

      public void setOutputDirectory​(java.io.File outputDirectory)
      Parameters:
      outputDirectory - the output folder.
    • isOverwrite

      public boolean isOverwrite()
      Returns:
      PackagingResources.overwrite
    • setOverwrite

      public void setOverwrite​(boolean overwrite)
      Parameters:
      overwrite - true to overwrite false otherwise.
    • isIncludeEmptyDirs

      public boolean isIncludeEmptyDirs()
      Returns:
      PackagingResources.includeEmptyDirs
    • setIncludeEmptyDirs

      public void setIncludeEmptyDirs​(boolean includeEmptyDirs)
      Parameters:
      includeEmptyDirs - true/false.
    • getFilters

      public java.util.List<java.lang.String> getFilters()
      Returns:
      PackagingResources.filters
    • setFilters

      public void setFilters​(java.util.List<java.lang.String> filters)
      Parameters:
      filters - The filters to use.
    • getDelimiters

      public java.util.LinkedHashSet<java.lang.String> getDelimiters()
      Returns:
      PackagingResources.delimiters
    • setDelimiters

      public void setDelimiters​(java.util.LinkedHashSet<java.lang.String> delimiters)
      Parameters:
      delimiters - The delimiters to use.
    • isUseDefaultDelimiters

      public boolean isUseDefaultDelimiters()
      Returns:
      PackagingResources.useDefaultDelimiters
    • setUseDefaultDelimiters

      public void setUseDefaultDelimiters​(boolean useDefaultDelimiters)
      Parameters:
      useDefaultDelimiters - true to use ${*}
    • isSkip

      public boolean isSkip()
      Returns:
      PackagingResources.skip