Class RarMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
- Version:
- $Id$
- Author:
- Stephane Nicoll
-
Field Summary
Modifier and TypeFieldDescriptionprotected LinkedHashSet<String>
Set of delimiters for expressions to filter within the resources.protected String
protected String
Expression preceded with the String won't be interpolated \${foo} will be replaced with ${foo}protected boolean
Whether to escape backslashes and colons in windows-style paths.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
Copy any empty directories included in the Resources.protected org.apache.maven.shared.filtering.MavenResourcesFiltering
Additional file extensions to not apply filtering (already defined are : jpg, jpeg, gif, bmp, png)protected List<RarResource>
extra resource to include in rar archiveprotected org.apache.maven.execution.MavenSession
protected boolean
protected boolean
Whether or not warn if thera.xml
file is missing.Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
-
Method Summary
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
session
@Parameter(defaultValue="${session}", required=true, readonly=true) protected org.apache.maven.execution.MavenSession session- Since:
- 2.3
-
encoding
@Parameter(property="encoding", defaultValue="${project.build.sourceEncoding}") protected String encoding- Since:
- 2.3
-
escapeWindowsPaths
@Parameter(property="maven.resources.escapeWindowsPaths", defaultValue="true") protected boolean escapeWindowsPathsWhether to escape backslashes and colons in windows-style paths.- Since:
- 2.3
-
escapeString
Expression preceded with the String won't be interpolated \${foo} will be replaced with ${foo}- Since:
- 2.3
-
includeEmptyDirs
@Parameter(property="maven.resources.includeEmptyDirs", defaultValue="false") protected boolean includeEmptyDirsCopy any empty directories included in the Resources.- Since:
- 2.3
-
useDefaultDelimiters
@Parameter(defaultValue="true") protected boolean useDefaultDelimiters- Since:
- 2.3
-
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).
- Since:
- 2.3
-
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.
Normally, these will be configured from a plugin's execution section, to provide a different set of filters for a particular execution. For instance, starting in Maven 2.2.0, you have the option of configuring executions with the id's
default-resources
anddefault-testResources
to supply different configurations for the two different types of resources. By supplyingextraFilters
configurations, you can separate which filters are used for which type of resource.- Since:
- 2.3
-
nonFilteredFileExtensions
Additional file extensions to not apply filtering (already defined are : jpg, jpeg, gif, bmp, png)- Since:
- 2.3
-
rarResources
extra resource to include in rar archive- Since:
- 2.3
-
warnOnMissingRaXml
@Parameter(property="maven.rar.warnOnMissingRaXml", defaultValue="true") protected boolean warnOnMissingRaXmlWhether or not warn if thera.xml
file is missing. Set tofalse
if you want you RAR built without ara.xml
file. This may be useful if you are building against JCA 1.6 or later.- Since:
- 2.3
-
mavenResourcesFiltering
@Component(role=org.apache.maven.shared.filtering.MavenResourcesFiltering.class, hint="default") protected org.apache.maven.shared.filtering.MavenResourcesFiltering mavenResourcesFiltering- Since:
- 2.3
-
-
Constructor Details
-
RarMojo
public RarMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
getBuildDir
- Returns:
- The buildDir.
-
getRarFile
- Parameters:
basedir
- The basedir.finalName
- The finalName.classifier
- The classifier.- Returns:
- the resulting file which contains classifier.
-