Home All Groups
maven-filtering / org / apache / maven / shared / filtering / MavenResourcesExecution.html /
org.apache.maven.shared.filtering

Class MavenResourcesExecution


  • public class MavenResourcesExecution
    extends AbstractMavenFilteringRequest
    A bean to configure a resources filtering execution.
    Author:
    Olivier Lamy
    • Constructor Detail

      • MavenResourcesExecution

        public MavenResourcesExecution()
      • MavenResourcesExecution

        public MavenResourcesExecution(List<org.apache.maven.model.Resource> resources,
                               File outputDirectory,
                               org.apache.maven.project.MavenProject mavenProject,
                               String encoding,
                               List<String> fileFilters,
                               List<String> nonFilteredFileExtensions,
                               org.apache.maven.execution.MavenSession mavenSession)
        As we use a Maven project useDefaultFilterWrappers will be set to true.
        Parameters:
        resources -
        outputDirectory -
        mavenProject -
        encoding -
        fileFilters -
        nonFilteredFileExtensions -
        mavenSession -
      • MavenResourcesExecution

        public MavenResourcesExecution(List<org.apache.maven.model.Resource> resources,
                               File outputDirectory,
                               String encoding,
                               List<org.apache.maven.shared.utils.io.FileUtils.FilterWrapper> filterWrappers,
                               File resourcesBaseDirectory,
                               List<String> nonFilteredFileExtensions)
    • Method Detail

      • getResources

        public List<org.apache.maven.model.Resource> getResources()
        Returns:
        List of Resource
      • setResources

        public void setResources(List<org.apache.maven.model.Resource> resources)
        Parameters:
        resources - List of Resource
      • getOutputDirectory

        public File getOutputDirectory()
      • setOutputDirectory

        public void setOutputDirectory(File outputDirectory)
      • getNonFilteredFileExtensions

        public List<String> getNonFilteredFileExtensions()
        Returns:
        List of String file extensions to not filter
      • setNonFilteredFileExtensions

        public void setNonFilteredFileExtensions(List<String> nonFilteredFileExtensions)
        Parameters:
        nonFilteredFileExtensions - List of String file extensions to not filter
      • getFilterWrappers

        public List<org.apache.maven.shared.utils.io.FileUtils.FilterWrapper> getFilterWrappers()
        Returns:
        List of FileUtils.FilterWrapper
      • setFilterWrappers

        public void setFilterWrappers(List<org.apache.maven.shared.utils.io.FileUtils.FilterWrapper> filterWrappers)
        Parameters:
        filterWrappers - List of FileUtils.FilterWrapper
      • addFilterWrapper

        public void addFilterWrapper(org.apache.maven.shared.utils.io.FileUtils.FilterWrapper filterWrapper)
      • addFilerWrapper

        public void addFilerWrapper(org.codehaus.plexus.interpolation.ValueSource valueSource)
        Helper to add FileUtils.FilterWrapper, will RegexBasedInterpolator with default regex Exp ${ } and InterpolatorFilterReaderLineEnding with defaultTokens ${ }.
        Parameters:
        valueSource -
      • addFilerWrapperWithEscaping

        public void addFilerWrapperWithEscaping(org.codehaus.plexus.interpolation.ValueSource valueSource,
                                       String startExp,
                                       String endExp,
                                       String escapeString,
                                       boolean supportMultiLineFiltering)
        Parameters:
        valueSource -
        startExp - start token like ${
        endExp - endToken }
        escapeString -
        supportMultiLineFiltering - do we support or use filtering on multi lines with start and endtoken on multi lines
        Since:
        1.0
      • getResourcesBaseDirectory

        public File getResourcesBaseDirectory()
      • setResourcesBaseDirectory

        public void setResourcesBaseDirectory(File resourcesBaseDirectory)
      • isUseDefaultFilterWrappers

        public boolean isUseDefaultFilterWrappers()
      • setUseDefaultFilterWrappers

        public void setUseDefaultFilterWrappers(boolean useDefaultFilterWrappers)
      • isOverwrite

        public boolean isOverwrite()
        Overwrite existing files even if the destination files are newer.
        Since:
        1.0-beta-2
      • setOverwrite

        public void setOverwrite(boolean overwrite)
        Overwrite existing files even if the destination files are newer.
        Parameters:
        overwrite -
        Since:
        1.0-beta-2
      • isIncludeEmptyDirs

        public boolean isIncludeEmptyDirs()
        Copy any empty directories included in the Resources.
        Since:
        1.0-beta-2
      • setIncludeEmptyDirs

        public void setIncludeEmptyDirs(boolean includeEmptyDirs)
        Copy any empty directories included in the Resources.
        Parameters:
        includeEmptyDirs -
        Since:
        1.0-beta-2
      • isFilterFilenames

        public boolean isFilterFilenames()
        Returns:
        true if filenames are filtered, otherwise false
        Since:
        1.2
      • setFilterFilenames

        public void setFilterFilenames(boolean filterFilenames)
        Parameters:
        filterFilenames - true if filenames should be filtered, otherwise false
        Since:
        1.2

Copyright © 2002-2014 The Apache Software Foundation. All Rights Reserved.