クラス BootWar
java.lang.ObjectSE
org.gradle.api.internal.AbstractTask
org.gradle.api.DefaultTask
org.gradle.api.internal.ConventionTask
org.gradle.api.tasks.AbstractCopyTask
org.gradle.api.tasks.bundling.AbstractArchiveTask
org.gradle.api.tasks.bundling.Zip
org.gradle.jvm.tasks.Jar
org.gradle.api.tasks.bundling.Jar
org.gradle.api.tasks.bundling.War
org.springframework.boot.gradle.tasks.bundling.BootWar
- 実装されているすべてのインターフェース:
ComparableSE<Task>, ContentFilterable, CopyProcessingSpec, CopySourceSpec, CopySpec, org.gradle.api.internal.DynamicObjectAware, org.gradle.api.internal.file.copy.CopySpecSource, org.gradle.api.internal.IConventionAware, org.gradle.api.internal.TaskInternal, Named, ExtensionAware, Task, PatternFilterable, Configurable<Task>, BootArchive
@DisableCachingByDefault(because="Not worth caching")
public abstract class BootWar
extends War
implements BootArchive
Spring Boot 実行可能ファイル war を生成するカスタム
War タスク。- 導入:
- 2.0.0
- 作成者:
- Andy Wilkinson, Phillip Webb, Scott Frederick
ネストされたクラスの要約
インターフェース Named から継承されたネストクラス / インターフェース
Named.Namerフィールドのサマリー
クラス War から継承されたフィールド
WAR_EXTENSIONクラス Jar から継承されたフィールド
DEFAULT_EXTENSIONクラス Zip から継承されたフィールド
ZIP_EXTENSIONインターフェース Task から継承されたフィールド
TASK_ACTION, TASK_CONSTRUCTOR_ARGS, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPEコンストラクターの概要
コンストラクターメソッドのサマリー
修飾子と型メソッド説明voidcopy()protected org.gradle.api.internal.file.copy.CopyAction階層化された jar の層を説明する仕様を返します。@Nullable FileCollection指定されたクラスパスを返します。その内容は、war のWEB-INF/lib-providedディレクトリに含まれます。protected booleanisLibrary(FileCopyDetails details) FileCopyDetailsがライブラリ用の場合に戻ります。voidlayered(Action<LayeredSpec> action) 指定されたactionを使用して war のレイヤーを構成します。voidprovidedClasspath(ObjectSE... classpath) 指定されたクラスパスにファイルを追加して、war のWEB-INF/lib-providedディレクトリに含めます。voidrequiresUnpack(StringSE... patterns) アーカイブの起動時にアーカイブから解凍する必要があるファイルを識別する Ant スタイルのパターンを追加します。voidrequiresUnpack(Spec<FileTreeElement> spec) 起動時にアーカイブから展開する必要があるファイルを識別する仕様を追加します。voidresolvedArtifacts(Provider<SetSE<ResolvedArtifactResult>> resolvedArtifacts) 指定された遅延提供されたresolvedArtifactsを登録します。protected ZipCompressionresolveZipCompression(FileCopyDetails details) 指定されたdetailsで表されるファイルを jar に追加するときに使用する必要があるZipCompressionを返します。voidsetProvidedClasspath(ObjectSE classpath) 提供されたクラスパスを設定して、war のWEB-INF/lib-providedディレクトリに含めます。voidsetProvidedClasspath(FileCollection classpath) 提供されたクラスパスを設定して、war のWEB-INF/lib-providedディレクトリに含めます。クラス War から継承されたメソッド
classpath, getClasspath, getObjectFactory, getWebAppDirectory, getWebInf, getWebXml, setClasspath, setClasspath, setWebXml, webInf, webInfクラス Jar から継承されたメソッド
getManifest, getManifestContentCharset, getMetadataCharset, getMetaInf, manifest, metaInf, metaInf, setManifest, setManifestContentCharset, setMetadataCharsetクラス Zip から継承されたメソッド
getCompressor, getEntryCompression, isZip64, setEntryCompression, setZip64クラス AbstractArchiveTask から継承されたメソッド
createCopyActionExecuter, getArchiveAppendix, getArchiveBaseName, getArchiveClassifier, getArchiveExtension, getArchiveFile, getArchiveFileName, getArchiveVersion, getDestinationDirectory, getFileSystemOperations, into, into, into, isPreserveFileTimestamps, isReproducibleFileOrder, setPreserveFileTimestamps, setReproducibleFileOrder, useFileSystemPermissionsクラス AbstractCopyTask から継承されたメソッド
createRootSpec, dirPermissions, eachFile, eachFile, exclude, exclude, exclude, exclude, expand, expand, filePermissions, filesMatching, filesMatching, filesNotMatching, filesNotMatching, filter, filter, filter, filter, from, from, from, getDirectoryFileTreeFactory, getDirPermissions, getDocumentationRegistry, getDuplicatesStrategy, getExcludes, getFileLookup, getFilePermissions, getFileResolver, getFileSystem, getFilteringCharset, getIncludeEmptyDirs, getIncludes, getInstantiator, getMainSpec, getPropertyFactory, getRootSpec, getSource, include, include, include, include, isCaseSensitive, rename, rename, rename, rename, setCaseSensitive, setDuplicatesStrategy, setExcludes, setFilteringCharset, setIncludeEmptyDirs, setIncludes, withクラス org.gradle.api.internal.ConventionTask から継承されたメソッド
conventionMapping, conventionMapping, getConventionMappingクラス DefaultTask から継承されたメソッド
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, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesServiceクラス org.gradle.api.internal.AbstractTask から継承されたメソッド
acceptServiceReferences, appendParallelSafeAction, doNotTrackState, getAsDynamicObject, getIdentityPath, getImpliesSubProjects, getLifecycleDependencies, getOnlyIf, getReasonNotToTrackState, getReasonTaskIsIncompatibleWithConfigurationCache, getRequiredServices, getServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, injectIntoNewInstance, isCompatibleWithConfigurationCache, isEnabled, isHasCustomActions, notCompatibleWithConfigurationCache, prependParallelSafeAction, setImpliesSubProjectsクラス ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSEインターフェース BootArchive から継承されたメソッド
classpath, getClasspath, getIncludeTools, getMainClass, getTargetJavaVersion, setClasspath, setClasspathインターフェース ComparableSE から継承されたメソッド
compareToSEインターフェース ExtensionAware から継承されたメソッド
getExtensionsインターフェース Task から継承されたメソッド
configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, doNotTrackState, finalizedBy, getActions, getAnt, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getFinalizedBy, getGroup, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getPath, getProject, getShouldRunAfter, getTaskDependencies, getTemporaryDir, getTimeout, hasProperty, mustRunAfter, notCompatibleWithConfigurationCache, onlyIf, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesService
コンストラクターの詳細
BootWar
public BootWar()新しいBootWarタスクを作成します。
メソッドの詳細
resolvedArtifacts
インターフェースからコピーされた説明:BootArchive指定された遅延提供されたresolvedArtifactsを登録します。これらは、classpath内のファイルからその依存関係座標にマッピングするために使用されます。- 次で指定:
- インターフェース
BootArchiveのresolvedArtifacts - パラメーター:
resolvedArtifacts- 遅延提供された解決されたアーティファクト
copy
public void copy()- オーバーライド:
- クラス
AbstractCopyTaskのcopy
createCopyAction
protected org.gradle.api.internal.file.copy.CopyAction createCopyAction()- オーバーライド:
- クラス
ZipのcreateCopyAction
requiresUnpack
インターフェースからコピーされた説明:BootArchiveアーカイブの起動時にアーカイブから解凍する必要があるファイルを識別する Ant スタイルのパターンを追加します。- 次で指定:
- インターフェース
BootArchiveのrequiresUnpack - パラメーター:
patterns- パターン
requiresUnpack
インターフェースからコピーされた説明:BootArchive起動時にアーカイブから展開する必要があるファイルを識別する仕様を追加します。- 次で指定:
- インターフェース
BootArchiveのrequiresUnpack - パラメーター:
spec- スペック
getProvidedClasspath
指定されたクラスパスを返します。その内容は、war のWEB-INF/lib-providedディレクトリに含まれます。- 戻り値:
- 提供されたクラスパス
providedClasspath
指定されたクラスパスにファイルを追加して、war のWEB-INF/lib-providedディレクトリに含めます。指定されたclasspathはProject.files(Object...)に従って評価されます。- パラメーター:
classpath- クラスパスへの追加
setProvidedClasspath
提供されたクラスパスを設定して、war のWEB-INF/lib-providedディレクトリに含めます。- パラメーター:
classpath- クラスパス- 導入:
- 2.0.7
setProvidedClasspath
提供されたクラスパスを設定して、war のWEB-INF/lib-providedディレクトリに含めます。指定されたclasspathはProject.files(Object...)に従って評価されます。- パラメーター:
classpath- クラスパス- 導入:
- 2.0.7
resolveZipCompression
指定されたdetailsで表されるファイルを jar に追加するときに使用する必要があるZipCompressionを返します。デフォルトでは、すべてのlibraryはstoredで、他のすべてのファイルはdeflatedです。- パラメーター:
details- ファイルコピーの詳細- 戻り値:
- 使用する圧縮
getLayered
layered
指定されたactionを使用して war のレイヤーを構成します。- パラメーター:
action- 適用するアクション- 導入:
- 2.5.0
isLibrary
FileCopyDetailsがライブラリ用の場合に戻ります。デフォルトでは、WEB-INF/libまたはWEB-INF/lib-provided内のすべてのファイルがライブラリと見なされます。- パラメーター:
details- ファイルコピーの詳細- 戻り値:
true(ライブラリの詳細の場合)