api / org.gradle.api.tasks.bundling / AbstractArchiveTask / into

into

open fun into(destPath: Any): AbstractArchiveTask

Overrides AbstractCopyTask.into

Specifies the destination directory *inside* the archive for the files. The destination is evaluated as per org.gradle.api.Project#file(Object). Don't mix it up with #getDestinationDir() which specifies the output directory for the archive.

Parameters

destPath - destination directory *inside* the archive for the files

Return
this

open fun into(destPath: Any, configureClosure: Closure<Any>): AbstractArchiveTask

Overrides AbstractCopyTask.into

Creates and configures a child CopySpec with a destination directory *inside* the archive for the files. The destination is evaluated as per org.gradle.api.Project#file(Object). Don't mix it up with #getDestinationDir() which specifies the output directory for the archive.

Parameters

destPath - destination directory *inside* the archive for the files

configureClosure - The closure to use to configure the child CopySpec.

Return
this

open fun into(destPath: Any, copySpec: Action<in CopySpec>): CopySpec

Overrides AbstractCopyTask.into

Creates and configures a child CopySpec with a destination directory *inside* the archive for the files. The destination is evaluated as per org.gradle.api.Project#file(Object). Don't mix it up with #getDestinationDir() which specifies the output directory for the archive.

Parameters

destPath - destination directory *inside* the archive for the files

copySpec - The closure to use to configure the child CopySpec.

Return
this