public class BootWar extends org.gradle.api.tasks.bundling.War implements BootArchive
War
タスク。コンストラクターと説明 |
---|
BootWar() 新しい BootWar タスクを作成します。 |
修飾子と型 | メソッドと説明 |
---|---|
void | copy() |
protected org.gradle.api.internal.file.copy.CopyAction | createCopyAction() |
LaunchScriptConfiguration | getLaunchScript() アーカイブに付加されるスクリプトを制御する LaunchScriptConfiguration を返します。 |
LayeredSpec | getLayered() 階層化された jar の層を説明する仕様を返します。 |
org.gradle.api.provider.Property<java.lang.String> | getMainClass() アプリケーションのメインクラスの完全修飾名を返します。 |
org.gradle.api.file.FileCollection | getProvidedClasspath() 指定されたクラスパスを返します。その内容は、war の WEB-INF/lib-provided ディレクトリに含まれます。 |
protected boolean | isLibrary(org.gradle.api.file.FileCopyDetails details) FileCopyDetails がライブラリ用かどうかを返します。 |
void | launchScript() アーカイブを構成して、起動スクリプトを追加します。 |
void | launchScript(org.gradle.api.Action<LaunchScriptConfiguration> action) アーカイブにプリペンドされた起動スクリプトを設定し、指定された action を使用して設定をカスタマイズします。 |
void | layered(org.gradle.api.Action<LayeredSpec> action) 指定された action を使用して war のレイヤーを構成します。 |
void | providedClasspath(java.lang.Object... classpath) 指定されたクラスパスにファイルを追加して、war の WEB-INF/lib-provided ディレクトリに含めます。 |
void | requiresUnpack(org.gradle.api.specs.Spec<org.gradle.api.file.FileTreeElement> spec) 起動時にアーカイブから展開する必要があるファイルを識別する仕様を追加します。 |
void | requiresUnpack(java.lang.String... patterns) アーカイブの起動時にアーカイブから解凍する必要があるファイルを識別する Ant スタイルのパターンを追加します。 |
protected ZipCompression | resolveZipCompression(org.gradle.api.file.FileCopyDetails details) 指定された details で表されるファイルを jar に追加するときに使用する必要がある ZipCompression を返します。 |
void | setProvidedClasspath(org.gradle.api.file.FileCollection classpath) 提供されたクラスパスを設定して、war の WEB-INF/lib-provided ディレクトリに含めます。 |
void | setProvidedClasspath(java.lang.Object classpath) 提供されたクラスパスを設定して、war の WEB-INF/lib-provided ディレクトリに含めます。 |
classpath, getClasspath, getWebInf, getWebXml, setClasspath, setClasspath, setWebXml, webInf, webInf
getManifest, getManifestContentCharset, getMetadataCharset, getMetaInf, manifest, metaInf, metaInf, setManifest, setManifestContentCharset, setMetadataCharset
getCompressor, getEntryCompression, isZip64, setEntryCompression, setZip64
createCopyActionExecuter, getAppendix, getArchiveAppendix, getArchiveBaseName, getArchiveClassifier, getArchiveExtension, getArchiveFile, getArchiveFileName, getArchiveName, getArchivePath, getArchiveVersion, getBaseName, getClassifier, getDestinationDir, getDestinationDirectory, getExtension, getVersion, into, into, into, isPreserveFileTimestamps, isReproducibleFileOrder, setAppendix, setArchiveName, setBaseName, setClassifier, setDestinationDir, setExtension, setPreserveFileTimestamps, setReproducibleFileOrder, setVersion
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, with
conventionMapping, conventionMapping, getConventionMapping
compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOutputs, getPath, getProject, getShouldRunAfter, getState, getTaskDependencies, getTemporaryDir, getTimeout, hasProperty, mustRunAfter, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesService
appendParallelSafeAction, getAsDynamicObject, getConvention, getIdentityPath, getImpliesSubProjects, getOnlyIf, getRequiredServices, getServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, injectIntoNewInstance, isEnabled, isHasCustomActions, prependParallelSafeAction, setImpliesSubProjects, setLoggerMessageRewriter
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
classpath, getClasspath, setClasspath, setClasspath
configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getConvention, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getFinalizedBy, getGroup, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOutputs, getPath, getProject, getShouldRunAfter, getState, getTaskDependencies, getTemporaryDir, getTimeout, hasProperty, mustRunAfter, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesService
public void copy()
org.gradle.api.tasks.AbstractCopyTask
の copy
protected org.gradle.api.internal.file.copy.CopyAction createCopyAction()
org.gradle.api.tasks.bundling.Zip
の createCopyAction
public org.gradle.api.provider.Property<java.lang.String> getMainClass()
BootArchive
BootArchive
の getMainClass
public void requiresUnpack(java.lang.String... patterns)
BootArchive
BootArchive
の requiresUnpack
patterns
- パターン public void requiresUnpack(org.gradle.api.specs.Spec<org.gradle.api.file.FileTreeElement> spec)
BootArchive
BootArchive
の requiresUnpack
spec
- スペック public LaunchScriptConfiguration getLaunchScript()
BootArchive
LaunchScriptConfiguration
を返します。BootArchive
の getLaunchScript
null
public void launchScript()
BootArchive
BootArchive
の launchScript
public void launchScript(org.gradle.api.Action<LaunchScriptConfiguration> action)
BootArchive
action
を使用して設定をカスタマイズします。BootArchive
の launchScript
action
- 適用するアクション @Optional @Classpath public org.gradle.api.file.FileCollection getProvidedClasspath()
WEB-INF/lib-provided
ディレクトリに含まれます。public void providedClasspath(java.lang.Object... classpath)
WEB-INF/lib-provided
ディレクトリに含めます。指定された classpath
は Project.files(Object...)
に従って評価されます。classpath
- クラスパスへの追加 public void setProvidedClasspath(org.gradle.api.file.FileCollection classpath)
WEB-INF/lib-provided
ディレクトリに含めます。classpath
- クラスパス public void setProvidedClasspath(java.lang.Object classpath)
WEB-INF/lib-provided
ディレクトリに含めるように設定します。指定された classpath
は Project.files(Object...)
に従って評価されます。classpath
- クラスパス protected ZipCompression resolveZipCompression(org.gradle.api.file.FileCopyDetails details)
details
で表されるファイルを jar に追加するときに使用する必要がある ZipCompression
を返します。デフォルトでは、すべての library
は stored
で、他のすべてのファイルは deflated
です。details
- ファイルコピーの詳細 public LayeredSpec getLayered()
public void layered(org.gradle.api.Action<LayeredSpec> action)
action
を使用して war のレイヤーを構成します。action
- 適用するアクション protected boolean isLibrary(org.gradle.api.file.FileCopyDetails details)
FileCopyDetails
がライブラリ用かどうかを返します。デフォルトでは、WEB-INF/lib
または WEB-INF/lib-provided
のファイルはすべてライブラリと見なされます。details
- ファイルコピーの詳細 true
(ライブラリの詳細の場合)