|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.apache.maven.plugin.resources.ResourcesMojo
public class ResourcesMojo
Copy resources for the main source code to the main output directory.
Field Summary | |
---|---|
protected java.util.List |
buildFilters
The list of additional filter properties files to be used along with System and project properties, which would be used for the filtering. |
protected java.util.List |
delimiters
Set of delimiters for expressions to filter within the resources. |
protected java.lang.String |
encoding
The character encoding scheme to be applied when filtering resources. |
protected java.lang.String |
escapeString
Expression preceded with the String won't be interpolated \${foo} will be replaced with ${foo} |
protected boolean |
escapeWindowsPaths
Whether to escape backslashes and colons in windows-style paths. |
protected java.util.List |
filters
The list of extra filter properties files to be used along with System properties, project properties, and filter properties files specified in the POM build/filters section, which should be used for the filtering during the current mojo execution. |
protected boolean |
includeEmptyDirs
Copy any empty directories included in the Ressources. |
protected org.apache.maven.shared.filtering.MavenResourcesFiltering |
mavenResourcesFiltering
|
protected java.util.List |
nonFilteredFileExtensions
Additionnal file extensions to not apply filtering (already defined are : jpg, jpeg, gif, bmp, png) |
protected org.apache.maven.project.MavenProject |
project
|
protected org.apache.maven.execution.MavenSession |
session
|
protected boolean |
useBuildFilters
If false, don't use the filters specified in the build/filters section of the POM when processing resources in this mojo execution. |
protected boolean |
useDefaultDelimiters
|
Fields inherited from interface org.apache.maven.plugin.Mojo |
---|
ROLE |
Constructor Summary | |
---|---|
ResourcesMojo()
|
Method Summary | |
---|---|
void |
execute()
|
protected java.util.List |
getCombinedFiltersList()
|
java.util.List |
getDelimiters()
|
java.util.List |
getFilters()
|
java.io.File |
getOutputDirectory()
|
java.util.List |
getResources()
|
boolean |
isIncludeEmptyDirs()
|
boolean |
isOverwrite()
|
boolean |
isUseDefaultDelimiters()
|
void |
setDelimiters(java.util.List delimiters)
|
void |
setFilters(java.util.List filters)
|
void |
setIncludeEmptyDirs(boolean includeEmptyDirs)
|
void |
setOutputDirectory(java.io.File outputDirectory)
|
void |
setOverwrite(boolean overwrite)
|
void |
setResources(java.util.List resources)
|
void |
setUseDefaultDelimiters(boolean useDefaultDelimiters)
|
Methods inherited from class org.apache.maven.plugin.AbstractMojo |
---|
getLog, getPluginContext, setLog, setPluginContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String encoding
protected org.apache.maven.project.MavenProject project
protected java.util.List buildFilters
filters
.
protected java.util.List filters
default-resources
and
default-testResources
to supply different configurations for the two
different types of resources. By supplying extraFilters
configurations, you
can separate which filters are used for which type of resource.
protected boolean useBuildFilters
buildFilters
and filters
protected org.apache.maven.shared.filtering.MavenResourcesFiltering mavenResourcesFiltering
protected org.apache.maven.execution.MavenSession session
protected java.lang.String escapeString
protected boolean includeEmptyDirs
protected java.util.List nonFilteredFileExtensions
protected boolean escapeWindowsPaths
protected java.util.List delimiters
Set of delimiters for expressions to filter within the resources. These delimiters are specified in the form 'beginToken*endToken'. If no '*' is given, the delimiter is assumed to be the same for start and end.
So, the default filtering delimiters might be specified as:
<delimiters> <delimiter>${*}</delimiter> <delimiter>@</delimiter> </delimiters>
Since the '@' delimiter is the same on both ends, we don't need to specify '@*@' (though we can).
protected boolean useDefaultDelimiters
Constructor Detail |
---|
public ResourcesMojo()
Method Detail |
---|
public void execute() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected java.util.List getCombinedFiltersList()
public java.util.List getResources()
public void setResources(java.util.List resources)
public java.io.File getOutputDirectory()
public void setOutputDirectory(java.io.File outputDirectory)
public boolean isOverwrite()
public void setOverwrite(boolean overwrite)
public boolean isIncludeEmptyDirs()
public void setIncludeEmptyDirs(boolean includeEmptyDirs)
public java.util.List getFilters()
public void setFilters(java.util.List filters)
public java.util.List getDelimiters()
public void setDelimiters(java.util.List delimiters)
public boolean isUseDefaultDelimiters()
public void setUseDefaultDelimiters(boolean useDefaultDelimiters)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |