TaskOutputs

interface TaskOutputs : TaskIO

表示 Task 的输出.

Author

M8Test, [email protected], https://m8test.com

Functions

Link copied to clipboard
abstract fun addFile(file: ScriptFile): Result

添加一个文件到 TaskIO.

Link copied to clipboard
abstract fun addProperty(key: String, value: Any, override: Boolean): Result

添加一个属性。

Link copied to clipboard
abstract fun getFiles(): List<ScriptFile>

获取所有文件.

Link copied to clipboard
abstract fun getProperties(): Map<String, Any>

获取当前持有的所有属性。

Link copied to clipboard
abstract fun getProperty(key: String): Any?

获取指定名称的属性值。

Link copied to clipboard
abstract fun removeFile(file: ScriptFile): Result

移除指定的文件.

Link copied to clipboard
abstract fun removeProperty(key: String): Result

移除指定名称的属性。