Target

abstract class Target : Serializable

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
abstract val excludes: List<String>

Proto types to excluded generated sources for. Types listed here will not be generated for this target.

Link copied to clipboard
abstract val exclusive: Boolean

True if types emitted for this target should not also be emitted for other targets. Use this to cause multiple outputs to be emitted for the same input type.

Link copied to clipboard
abstract val includes: List<String>

Proto types to include generated sources for. Types listed here will be generated for this target and not for subsequent targets in the task.

Link copied to clipboard
abstract val outDirectory: String

Directory where this target will write its output.

Functions

Link copied to clipboard
abstract fun copyTarget(includes: List<String> = this.includes, excludes: List<String> = this.excludes, exclusive: Boolean = this.exclusive, outDirectory: String = this.outDirectory): Target

Returns a new Target object that is a copy of this one, but with the given fields updated.

Link copied to clipboard
abstract fun newHandler(): SchemaHandler