クラス 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
ネストされたクラスの要約
インターフェース org.gradle.api.Task から継承されたネストクラス / インターフェース
Task.Namerフィールドのサマリー
クラス org.gradle.api.tasks.bundling.War から継承されたフィールド
WAR_EXTENSIONクラス org.gradle.jvm.tasks.Jar から継承されたフィールド
DEFAULT_EXTENSIONクラス org.gradle.api.tasks.bundling.Zip から継承されたフィールド
ZIP_EXTENSIONインターフェース org.gradle.api.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アーカイブに付加されるスクリプトを制御するLaunchScriptConfigurationを返します。階層化された jar の層を説明する仕様を返します。指定されたクラスパスを返します。その内容は、war のWEB-INF/lib-providedディレクトリに含まれます。protected booleanisLibrary(FileCopyDetails details) FileCopyDetailsがライブラリ用の場合に戻ります。voidアーカイブを構成して、起動スクリプトを追加します。voidlaunchScript(Action<LaunchScriptConfiguration> action) アーカイブにプリペンドされた起動スクリプトを設定し、指定されたactionを使用して設定をカスタマイズします。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ディレクトリに含めます。クラス org.gradle.api.tasks.bundling.War から継承されたメソッド
classpath, getClasspath, getObjectFactory, getWebAppDirectory, getWebInf, getWebXml, setClasspath, setClasspath, setWebXml, webInf, webInfクラス org.gradle.jvm.tasks.Jar から継承されたメソッド
getManifest, getManifestContentCharset, getMetadataCharset, getMetaInf, manifest, metaInf, metaInf, setManifest, setManifestContentCharset, setMetadataCharsetクラス org.gradle.api.tasks.bundling.Zip から継承されたメソッド
getCompressor, getEntryCompression, isZip64, setEntryCompression, setZip64クラス org.gradle.api.tasks.bundling.AbstractArchiveTask から継承されたメソッド
createCopyActionExecuter, getArchiveAppendix, getArchiveBaseName, getArchiveClassifier, getArchiveExtension, getArchiveFile, getArchiveFileName, getArchivePath, getArchiveVersion, getDestinationDirectory, into, into, into, isPreserveFileTimestamps, isReproducibleFileOrder, setPreserveFileTimestamps, setReproducibleFileOrderクラス org.gradle.api.tasks.AbstractCopyTask から継承されたメソッド
createRootSpec, dirPermissions, eachFile, eachFile, exclude, exclude, exclude, exclude, expand, expand, filePermissions, filesMatching, filesMatching, filesNotMatching, filesNotMatching, filter, filter, filter, filter, from, from, from, getDirectoryFileTreeFactory, getDirMode, getDirPermissions, getDocumentationRegistry, getDuplicatesStrategy, getExcludes, getFileLookup, getFileMode, getFilePermissions, getFileResolver, getFileSystem, getFilteringCharset, getIncludeEmptyDirs, getIncludes, getInstantiator, getMainSpec, getPropertyFactory, getRootSpec, getSource, include, include, include, include, isCaseSensitive, rename, rename, rename, rename, setCaseSensitive, setDirMode, setDuplicatesStrategy, setExcludes, setFileMode, setFilteringCharset, setIncludeEmptyDirs, setIncludes, withクラス org.gradle.api.internal.ConventionTask から継承されたメソッド
conventionMapping, conventionMapping, getConventionMappingクラス org.gradle.api.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, getConvention, getIdentityPath, getImpliesSubProjects, getLifecycleDependencies, getOnlyIf, getReasonNotToTrackState, getReasonTaskIsIncompatibleWithConfigurationCache, getRequiredServices, getServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, injectIntoNewInstance, isCompatibleWithConfigurationCache, isEnabled, isHasCustomActions, notCompatibleWithConfigurationCache, prependParallelSafeAction, setImpliesSubProjectsクラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSEインターフェース org.springframework.boot.gradle.tasks.bundling.BootArchive から継承されたメソッド
classpath, getClasspath, getIncludeTools, getLoaderImplementation, getMainClass, getTargetJavaVersion, setClasspath, setClasspathインターフェース java.lang.ComparableSE から継承されたメソッド
compareToSEインターフェース org.gradle.api.plugins.ExtensionAware から継承されたメソッド
getExtensionsインターフェース org.gradle.api.Task から継承されたメソッド
configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, doNotTrackState, finalizedBy, getActions, getAnt, getConvention, 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- スペック
getLaunchScript
インターフェースからコピーされた説明:BootArchiveアーカイブに付加されるスクリプトを制御するLaunchScriptConfigurationを返します。- 次で指定:
- インターフェース
BootArchiveのgetLaunchScript - 戻り値:
- 起動スクリプトの構成、または起動スクリプトが構成されていない場合は
null
launchScript
public void launchScript()インターフェースからコピーされた説明:BootArchiveアーカイブを構成して、起動スクリプトを追加します。- 次で指定:
- インターフェース
BootArchiveのlaunchScript
launchScript
インターフェースからコピーされた説明:BootArchiveアーカイブにプリペンドされた起動スクリプトを設定し、指定されたactionを使用して設定をカスタマイズします。- 次で指定:
- インターフェース
BootArchiveのlaunchScript - パラメーター:
action- 適用するアクション
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
階層化された jar の層を説明する仕様を返します。- 戻り値:
- レイヤーの仕様
- 導入:
- 2.5.0
layered
指定されたactionを使用して war のレイヤーを構成します。- パラメーター:
action- 適用するアクション- 導入:
- 2.5.0
isLibrary
FileCopyDetailsがライブラリ用の場合に戻ります。デフォルトでは、WEB-INF/libまたはWEB-INF/lib-provided内のすべてのファイルがライブラリと見なされます。- パラメーター:
details- ファイルコピーの詳細- 戻り値:
true(ライブラリの詳細の場合)