addReturnedAssets

open fun addReturnedAssets(tool: Tool): Tool

Wrap a tool so any outputs are tracked as assets.


open fun addReturnedAssets(tool: Tool, filter: Predicate<Asset>): Tool

Wrap a tool so any outputs are tracked as assets, with a filter (Java-friendly). Only assets that pass the filter will be tracked.

Parameters

tool

The tool to wrap

filter

Predicate - only assets passing this filter are tracked