public class BootJar extends org.gradle.api.tasks.bundling.Jar implements BootArchive
Jar タスク。| コンストラクターと説明 |
|---|
BootJar() 新しい BootJar タスクを作成します。 |
| 修飾子と型 | メソッドと説明 |
|---|---|
org.gradle.api.file.CopySpec | bootInf(org.gradle.api.Action<org.gradle.api.file.CopySpec> action) 指定された action を呼び出して、コンテンツを jar の BOOT-INF ディレクトリに追加します。 |
void | classpath(java.lang.Object... classpath) アーカイブに含めるファイルをクラスパスに追加します。 |
void | copy() |
protected org.gradle.api.internal.file.copy.CopyAction | createCopyAction() |
org.gradle.api.file.CopySpec | getBootInf()jar の BOOT-INF ディレクトリにコンテンツを追加するために使用できる CopySpec を返します。 |
org.gradle.api.file.FileCollection | getClasspath() アーカイブに含まれるクラスパスを返します。 |
protected java.lang.Iterable<org.gradle.api.artifacts.Configuration> | getConfigurations() |
LaunchScriptConfiguration | getLaunchScript() アーカイブに付加されるスクリプトを制御する LaunchScriptConfiguration を返します。 |
LayeredSpec | getLayered() 階層化された jar のレイヤーを記述する仕様を返します。 |
java.lang.String | getMainClassName() アプリケーションのメインクラスの名前を返します。 |
boolean | isExcludeDevtools()Devtools jar を除外する必要がある場合は true を、そうでない場合は false を返します。 |
protected boolean | isLibrary(org.gradle.api.file.FileCopyDetails details)FileCopyDetails がライブラリ用かどうかを返します。 |
void | launchScript() アーカイブを構成して、起動スクリプトを追加します。 |
void | launchScript(org.gradle.api.Action<LaunchScriptConfiguration> action) アーカイブにプリペンドされた起動スクリプトを設定し、指定された action を使用して設定をカスタマイズします。 |
void | layered() デフォルトの階層化を使用して階層化されるように jar を構成します。 |
void | layered(org.gradle.api.Action<LayeredSpec> action) レイヤー化されるように jar を構成し、指定された action を使用してレイヤーをカスタマイズします。 |
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 | setClasspath(org.gradle.api.file.FileCollection classpath) アーカイブに含めるクラスパスを設定します。 |
void | setClasspath(java.lang.Object classpath) アーカイブに含めるクラスパスを設定します。 |
void | setExcludeDevtools(boolean excludeDevtools)Devtools jar を除外するかどうかを設定します。 |
void | setMainClassName(java.lang.String mainClassName) アプリケーションのメインクラスの名前を設定します。 |
getManifest, getManifestContentCharset, getMetadataCharset, getMetaInf, manifest, metaInf, metaInf, setManifest, setManifestContentCharset, setMetadataCharsetgetCompressor, getEntryCompression, isZip64, setEntryCompression, setZip64createCopyActionExecuter, 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, setVersioncreateRootSpec, 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, getConventionMappingappendParallelSafeAction, compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getIdentityPath, getImpliesSubProjects, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOnlyIf, getOutputs, getPath, getProject, getRequiredServices, getServices, getSharedResources, getShouldRunAfter, getStandardOutputCapture, getState, getTaskActions, getTaskDependencies, getTaskIdentity, getTemporaryDir, getTemporaryDirFactory, getTimeout, hasProperty, hasTaskActions, injectIntoNewInstance, isEnabled, isHasCustomActions, mustRunAfter, onlyIf, onlyIf, prependParallelSafeAction, property, replaceLogger, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setImpliesSubProjects, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesServiceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconfigure, 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, usesServicepublic void copy()
org.gradle.api.tasks.AbstractCopyTask の copy protected org.gradle.api.internal.file.copy.CopyAction createCopyAction()
org.gradle.api.tasks.bundling.Zip の createCopyAction @Internal protected java.lang.Iterable<org.gradle.api.artifacts.Configuration> getConfigurations()
public java.lang.String getMainClassName()
BootArchiveBootArchive 内の getMainClassName public void setMainClassName(java.lang.String mainClassName)
BootArchiveBootArchive 内の setMainClassName mainClassName - アプリケーションのメインクラスの名前 public void requiresUnpack(java.lang.String... patterns)
BootArchiveBootArchive 内の requiresUnpack patterns - パターン public void requiresUnpack(org.gradle.api.specs.Spec<org.gradle.api.file.FileTreeElement> spec)
BootArchiveBootArchive 内の requiresUnpack spec - スペック public LaunchScriptConfiguration getLaunchScript()
BootArchiveLaunchScriptConfiguration を返します。BootArchive 内の getLaunchScript null public void launchScript()
BootArchiveBootArchive 内の launchScript public void launchScript(org.gradle.api.Action<LaunchScriptConfiguration> action)
BootArchiveaction を使用して設定をカスタマイズします。BootArchive 内の launchScript action - 適用するアクション @Optional public LayeredSpec getLayered()
null の仕様。public void layered()
public void layered(org.gradle.api.Action<LayeredSpec> action)
action を使用してレイヤーをカスタマイズします。action - 適用するアクション public org.gradle.api.file.FileCollection getClasspath()
BootArchiveBootArchive 内の getClasspath public void classpath(java.lang.Object... classpath)
BootArchiveclasspath は、Project.files(Object...) に従って評価されます。BootArchive 内の classpath classpath - クラスパスへの追加 public void setClasspath(java.lang.Object classpath)
BootArchiveclasspath は、Project.files(Object...) に従って評価されます。BootArchive 内の setClasspath classpath - クラスパス public void setClasspath(org.gradle.api.file.FileCollection classpath)
BootArchiveBootArchive 内の setClasspath classpath - クラスパス public boolean isExcludeDevtools()
BootArchivetrue を、そうでない場合は false を返します。BootArchive 内の isExcludeDevtools true、除外しない場合は false public void setExcludeDevtools(boolean excludeDevtools)
BootArchiveBootArchive 内の setExcludeDevtools excludeDevtools - Devtools jar を除外する必要がある場合は true、除外しない場合は false @Internal public org.gradle.api.file.CopySpec getBootInf()
BOOT-INF ディレクトリにコンテンツを追加するために使用できる CopySpec を返します。BOOT-INF 用の CopySpec public org.gradle.api.file.CopySpec bootInf(org.gradle.api.Action<org.gradle.api.file.CopySpec> action)
action を呼び出して、コンテンツを jar の BOOT-INF ディレクトリに追加します。action - 呼び出す Action Action に渡された BOOT-INF の CopySpec protected ZipCompression resolveZipCompression(org.gradle.api.file.FileCopyDetails details)
details で表されるファイルを jar に追加するときに使用する必要がある ZipCompression を返します。デフォルトでは、すべての library は stored で、他のすべてのファイルは deflated です。details - ファイルコピーの詳細 protected boolean isLibrary(org.gradle.api.file.FileCopyDetails details)
FileCopyDetails がライブラリ用かどうかを返します。デフォルトでは、BOOT-INF/lib のファイルはすべてライブラリと見なされます。details - ファイルコピーの詳細 true (ライブラリの詳細の場合)