@Mojo(name="ear", defaultPhase=PACKAGE, threadSafe=true, requiresDependencyResolution=TEST) public class EarMojo extends AbstractEarMojo
Modifier and Type | Field and Description |
---|---|
protected String |
escapeString
Expression preceded with this String won't be interpolated \${foo} will be replaced with ${foo}.
|
APPLICATION_XML_URI, artifactTypeMappings, defaultLibBundleDir, encoding, generatedDescriptorLocation, META_INF, project, UTF_8, version
Constructor and Description |
---|
EarMojo() |
Modifier and Type | Method and Description |
---|---|
void |
execute() |
String |
getApplicationXml() |
protected String[] |
getExcludes()
Returns a string array of the excludes to be used when assembling/copying the ear.
|
protected String[] |
getIncludes()
Returns a string array of the includes to be used when assembling/copying the ear.
|
String[] |
getPackagingExcludes() |
String[] |
getPackagingIncludes() |
boolean |
isNonFilteredExtension(String fileName) |
void |
setApplicationXml(String applicationXml) |
void |
setPackagingExcludes(String packagingExcludes) |
void |
setPackagingIncludes(String packagingIncludes) |
void |
unpack(File source,
File destDir,
Collection<String> outdatedResources)
Unpacks the module into the EAR structure.
|
getAllJarModules, getJbossConfiguration, getModules, getOutputFileNameMapping, getProject, getTempFolder, getWorkDirectory
getLog, getPluginContext, setLog, setPluginContext
@Parameter protected String escapeString
public void execute() throws MojoExecutionException, MojoFailureException
execute
in interface Mojo
execute
in class AbstractEarMojo
MojoExecutionException
MojoFailureException
public String getApplicationXml()
applicationXml
public void setApplicationXml(String applicationXml)
applicationXml
- applicationXml
protected String[] getExcludes()
protected String[] getIncludes()
public String[] getPackagingExcludes()
public void setPackagingExcludes(String packagingExcludes)
packagingExcludes
- packagingExcludes
public String[] getPackagingIncludes()
public void setPackagingIncludes(String packagingIncludes)
packagingIncludes
- packagingIncludes
public void unpack(File source, File destDir, Collection<String> outdatedResources) throws ArchiverException, NoSuchArchiverException, IOException
source
- file to be unpackeddestDir
- where to put the unpacked filesoutdatedResources
- currently outdated resourcesArchiverException
- a corrupt archiveNoSuchArchiverException
- if we don't have an appropriate archiverIOException
- in case of a general IOExceptionpublic boolean isNonFilteredExtension(String fileName)
fileName
- the name of the file which should be checkedtrue
if the name is part of the non filtered extensions; false
otherwiseCopyright © 2002–2020 The Apache Software Foundation. All rights reserved.