@Mojo(name="rar", threadSafe=true, defaultPhase=PACKAGE, requiresDependencyResolution=TEST) public class RarMojo extends AbstractMojo
Modifier and Type | Field and Description |
---|---|
protected List<String> |
delimiters
Set of delimiters for expressions to filter within the resources.
|
protected String |
encoding |
protected 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 List<String> |
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 Resources.
|
protected MavenResourcesFiltering |
mavenResourcesFiltering |
protected List<String> |
nonFilteredFileExtensions
Additional file extensions to not apply filtering (already defined are : jpg, jpeg, gif, bmp, png)
|
static String |
RA_XML_URI |
protected List<RarResource> |
rarResources
extra resource to include in rar archive
|
protected org.apache.maven.execution.MavenSession |
session |
protected boolean |
useDefaultDelimiters |
protected boolean |
warnOnMissingRaXml
Whether or not warn if the
ra.xml file is missing. |
Constructor and Description |
---|
RarMojo() |
Modifier and Type | Method and Description |
---|---|
void |
execute() |
protected File |
getBuildDir() |
protected static File |
getRarFile(File basedir,
String finalName,
String classifier) |
getLog, getPluginContext, setLog, setPluginContext
public static final String RA_XML_URI
@Parameter(defaultValue="${session}", required=true, readonly=true) protected org.apache.maven.execution.MavenSession session
@Parameter(property="encoding", defaultValue="${project.build.sourceEncoding}") protected String encoding
@Parameter(property="maven.resources.escapeWindowsPaths", defaultValue="true") protected boolean escapeWindowsPaths
@Parameter(property="maven.resources.escapeString") protected String escapeString
@Parameter(property="maven.resources.includeEmptyDirs", defaultValue="false") protected boolean includeEmptyDirs
@Parameter(defaultValue="true") protected boolean useDefaultDelimiters
@Parameter protected List<String> 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).
@Parameter protected List<String> 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.@Parameter protected List<String> nonFilteredFileExtensions
@Parameter protected List<RarResource> rarResources
@Parameter(property="warnOnMissingRaXml", defaultValue="true") protected boolean warnOnMissingRaXml
ra.xml
file is missing. Set to false
if you want you RAR built without a ra.xml
file.
This may be useful if you are building against JCA 1.6 or later.@Component(role=org.apache.maven.shared.filtering.MavenResourcesFiltering.class, hint="default") protected MavenResourcesFiltering mavenResourcesFiltering
public void execute() throws MojoExecutionException
MojoExecutionException
protected File getBuildDir()
Copyright © 2004–2014 The Apache Software Foundation. All rights reserved.