InAndOutDirectoryOperationRequest
interface InAndOutDirectoryOperationRequest<TaskT : Task>
Summary
Public functions |
|
---|---|
Unit |
<ArtifactTypeT : Artifact.Single<Directory> & Artifact.Transformable> toTransform( Initiates a transform request to a single |
ArtifactTransformationRequest<TaskT> |
<ArtifactTypeT : Artifact.Single<Directory> & Artifact.ContainsMany> toTransformMany( Initiates a transform request to a single |
Public functions
toTransform
fun <ArtifactTypeT : Artifact.Single<Directory> & Artifact.Transformable> toTransform(
type: ArtifactTypeT
): Unit
Initiates a transform request to a single Artifact.Transformable
artifact type.
Parameters | |
---|---|
type: ArtifactTypeT |
The The artifact type must be Let's take a abstract class MyTask: DefaultTask() { An ArtifactType defined as follows : sealed class ArtifactType<T: FileSystemLocation>(val kind: ArtifactKind) { You can register a transform to the collection of val taskProvider= projects.tasks.register(MyTask::class.java, "transformTask") |
toTransformMany
fun <ArtifactTypeT : Artifact.Single<Directory> & Artifact.ContainsMany> toTransformMany(
type: ArtifactTypeT
): ArtifactTransformationRequest<TaskT>
Initiates a transform request to a single Artifact.Transformable
artifact type that can contain more than one artifact.
Returns | |
---|---|
ArtifactTransformationRequest<TaskT> |
The artifact type must be For example, let's take a abstract class MyTask: DefaultTask() { You then register the task as follows: val taskProvider= projects.tasks.register(MyTask::class.java, "combineTask") |