public class BootJar extends Jar implements BootArchive
Jar
タスク。Task.Namer
DEFAULT_EXTENSION
ZIP_EXTENSION
TASK_ACTION, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE
コンストラクターと説明 |
---|
BootJar() 新しい BootJar タスクを作成します。 |
修飾子と型 | メソッドと説明 |
---|---|
CopySpec | bootInf(Action<CopySpec> action) 指定された action を呼び出して、コンテンツを jar の BOOT-INF ディレクトリに追加します。 |
void | classpath(java.lang.Object... classpath) アーカイブに含めるファイルをクラスパスに追加します。 |
void | copy() |
protected org.gradle.api.internal.file.copy.CopyAction | createCopyAction() |
CopySpec | getBootInf() jar の BOOT-INF ディレクトリにコンテンツを追加するために使用できる CopySpec を返します。 |
FileCollection | getClasspath() アーカイブに含まれるクラスパスを返します。 |
LaunchScriptConfiguration | getLaunchScript() アーカイブに付加されるスクリプトを制御する LaunchScriptConfiguration を返します。 |
java.lang.String | getMainClassName() アプリケーションのメインクラスの名前を返します。 |
boolean | isExcludeDevtools() Devtools jar を除外する必要がある場合は true を、そうでない場合は false を返します。 |
void | launchScript() アーカイブを構成して、起動スクリプトを追加します。 |
void | launchScript(Action<LaunchScriptConfiguration> action) アーカイブにプリペンドされた起動スクリプトを設定し、指定された action を使用して設定をカスタマイズします。 |
void | requiresUnpack(Spec<FileTreeElement> spec) 起動時にアーカイブから展開する必要があるファイルを識別する仕様を追加します。 |
void | requiresUnpack(java.lang.String... patterns) アーカイブの起動時にアーカイブから解凍する必要があるファイルを識別する Ant スタイルのパターンを追加します。 |
protected ZipCompression | resolveZipCompression(FileCopyDetails details) 指定された details で表されるファイルを jar に追加するときに使用される ZipCompression を返します。 |
void | setClasspath(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, setMetadataCharset
getCompressor, getEntryCompression, isZip64, setEntryCompression, setZip64
createCopyActionExecuter, getAppendix, getArchiveName, getArchivePath, getBaseName, getClassifier, getDestinationDir, 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
newInputDirectory, newInputFile, newOutputDirectory, newOutputFile
addValidator, 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, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
configure, deleteAllActions, dependsOn, dependsOnTaskDidWork, 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, hasProperty, leftShift, mustRunAfter, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter
getExtensions
public void copy()
AbstractCopyTask
の copy
protected org.gradle.api.internal.file.copy.CopyAction createCopyAction()
Zip
の createCopyAction
public java.lang.String getMainClassName()
BootArchive
BootArchive
の getMainClassName
public void setMainClassName(java.lang.String mainClassName)
BootArchive
BootArchive
の setMainClassName
mainClassName
- アプリケーションのメインクラスの名前 public void requiresUnpack(java.lang.String... patterns)
BootArchive
BootArchive
の requiresUnpack
patterns
- パターン public void requiresUnpack(Spec<FileTreeElement> spec)
BootArchive
BootArchive
の requiresUnpack
spec
- スペック public LaunchScriptConfiguration getLaunchScript()
BootArchive
LaunchScriptConfiguration
を返します。BootArchive
の getLaunchScript
null
public void launchScript()
BootArchive
BootArchive
の launchScript
public void launchScript(Action<LaunchScriptConfiguration> action)
BootArchive
action
を使用して設定をカスタマイズします。BootArchive
の launchScript
action
- 適用するアクション public FileCollection getClasspath()
BootArchive
BootArchive
の getClasspath
public void classpath(java.lang.Object... classpath)
BootArchive
classpath
は、Project.files(Object...)
に従って評価されます。BootArchive
の classpath
classpath
- クラスパスへの追加 public void setClasspath(java.lang.Object classpath)
BootArchive
classpath
は、Project.files(Object...)
に従って評価されます。BootArchive
の setClasspath
classpath
- クラスパス public void setClasspath(FileCollection classpath)
BootArchive
BootArchive
の setClasspath
classpath
- クラスパス public boolean isExcludeDevtools()
BootArchive
true
を、そうでない場合は false
を返します。BootArchive
の isExcludeDevtools
true
、除外しない場合は false
public void setExcludeDevtools(boolean excludeDevtools)
BootArchive
BootArchive
の setExcludeDevtools
excludeDevtools
- Devtools jar を除外する必要がある場合は true
、除外しない場合は false
@Internal public CopySpec getBootInf()
BOOT-INF
ディレクトリにコンテンツを追加するために使用できる CopySpec
を返します。BOOT-INF
用の CopySpec
public CopySpec bootInf(Action<CopySpec> action)
action
を呼び出して、コンテンツを jar の BOOT-INF
ディレクトリに追加します。action
- 呼び出す Action
Action
に渡された BOOT-INF
の CopySpec
protected ZipCompression resolveZipCompression(FileCopyDetails details)
details
で表されるファイルを jar に追加するときに使用される ZipCompression
を返します。 デフォルトでは、BOOT-INF/lib/
のファイルはすべて保存され、他のすべてのファイルは収縮されます。
details
- 詳細