|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.maven.plugin.AbstractMojo org.apache.maven.plugin.rar.RarMojo
@Mojo(name="rar", threadSafe=true, defaultPhase=PACKAGE, requiresDependencyResolution=TEST) public class RarMojo
Builds J2EE Resource Adapter Archive (RAR) files.
Field Summary | |
---|---|
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 org.apache.maven.shared.filtering.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. |
Fields inherited from interface org.apache.maven.plugin.Mojo |
---|
ROLE |
Constructor Summary | |
---|---|
RarMojo()
|
Method Summary | |
---|---|
void |
execute()
|
protected File |
getBuildDir()
|
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 |
---|
public static final String RA_XML_URI
@Component(role=org.apache.maven.shared.filtering.MavenResourcesFiltering.class, hint="default") protected org.apache.maven.shared.filtering.MavenResourcesFiltering mavenResourcesFiltering
@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.
Constructor Detail |
---|
public RarMojo()
Method Detail |
---|
public void execute() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected File getBuildDir()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |