public class Ear extends Jar
Task.Namer| Modifier and Type | Field and Description |
|---|---|
static String |
EAR_EXTENSION |
DEFAULT_EXTENSIONZIP_EXTENSIONTASK_ACTION, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE| Constructor and Description |
|---|
Ear() |
| Modifier and Type | Method and Description |
|---|---|
Ear |
deploymentDescriptor(Action<? super DeploymentDescriptor> configureAction)
Configures the deployment descriptor for this EAR archive.
|
Ear |
deploymentDescriptor(Closure configureClosure)
Configures the deployment descriptor for this EAR archive.
|
DeploymentDescriptor |
getDeploymentDescriptor()
The deployment descriptor configuration.
|
CopySpec |
getLib()
A location for dependency libraries to include in the 'lib' directory of the EAR archive.
|
String |
getLibDirName()
The name of the library directory in the EAR file.
|
protected ObjectFactory |
getObjectFactory()
Injects and returns an instance of
ObjectFactory. |
CopySpec |
lib(Action<? super CopySpec> configureAction)
Adds dependency libraries to include in the 'lib' directory of the EAR archive.
|
CopySpec |
lib(Closure configureClosure)
Adds dependency libraries to include in the 'lib' directory of the EAR archive.
|
void |
setDeploymentDescriptor(DeploymentDescriptor deploymentDescriptor) |
void |
setLibDirName(String libDirName) |
getManifest, getManifestContentCharset, getMetadataCharset, getMetaInf, manifest, metaInf, metaInf, setManifest, setManifestContentCharset, setMetadataCharsetcreateCopyAction, getCompressor, getEntryCompression, isZip64, setEntryCompression, setZip64createCopyActionExecuter, getAppendix, getArchiveName, getArchivePath, getBaseName, getClassifier, getDestinationDir, getExtension, getVersion, into, into, into, isPreserveFileTimestamps, isReproducibleFileOrder, setAppendix, setArchiveName, setBaseName, setClassifier, setDestinationDir, setExtension, setPreserveFileTimestamps, setReproducibleFileOrder, setVersioncopy, createRootSpec, eachFile, eachFile, exclude, exclude, exclude, exclude, expand, filesMatching, filesMatching, filesNotMatching, filesNotMatching, filter, filter, filter, filter, from, from, from, getDirectoryFileTreeFactory, getDirMode, getDuplicatesStrategy, getExcludes, getFileLookup, getFileMode, getFileResolver, getFileSystem, getFilteringCharset, getIncludeEmptyDirs, getIncludes, getInstantiator, getMainSpec, getRootSpec, getSource, include, include, include, include, isCaseSensitive, rename, rename, rename, rename, setCaseSensitive, setDirMode, setDuplicatesStrategy, setExcludes, setFileMode, setFilteringCharset, setIncludeEmptyDirs, setIncludes, withconventionMapping, conventionMapping, getConventionMappingnewInputDirectory, newInputFile, newOutputDirectory, newOutputFileaddValidator, appendParallelSafeAction, compareTo, configure, deleteAllActions, dependsOn, dependsOnTaskDidWork, doFirst, doFirst, doFirst, doLast, doLast, doLast, execute, finalizedBy, getActions, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExecuter, getExtensions, getFinalizedBy, getGroup, getIdentityPath, getImpliesSubProjects, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOnlyIf, getOutputs, getPath, getProject, getServices, getShouldRunAfter, getStandardOutputCapture, getState, getTaskActions, getTaskDependencies, getTemporaryDir, getTemporaryDirFactory, getValidators, hasProperty, injectIntoNewInstance, isEnabled, isHasCustomActions, leftShift, mustRunAfter, onlyIf, onlyIf, prependParallelSafeAction, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setExecuter, setFinalizedBy, setGroup, setImpliesSubProjects, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, toStringpublic static final String EAR_EXTENSION
@Incubating @Inject protected ObjectFactory getObjectFactory()
ObjectFactory.public Ear deploymentDescriptor(@DelegatesTo(value=DeploymentDescriptor.class,strategy=1) Closure configureClosure)
The given closure is executed to configure the deployment descriptor. The DeploymentDescriptor is passed to the closure as its delegate.
configureClosure - The closure.public Ear deploymentDescriptor(Action<? super DeploymentDescriptor> configureAction)
The given action is executed to configure the deployment descriptor.
configureAction - The action.@Internal public CopySpec getLib()
public CopySpec lib(@DelegatesTo(value=CopySpec.class,strategy=1) Closure configureClosure)
The given closure is executed to configure a CopySpec. The CopySpec is passed to the closure as its delegate.
configureClosure - The closure.CopySpecpublic CopySpec lib(Action<? super CopySpec> configureAction)
The given action is executed to configure a CopySpec.
configureAction - The action.CopySpec@Optional @Input public String getLibDirName()
public void setLibDirName(String libDirName)
@Internal public DeploymentDescriptor getDeploymentDescriptor()
public void setDeploymentDescriptor(DeploymentDescriptor deploymentDescriptor)