Interface ToolArg

  • All Superinterfaces:
    AddsToRuleKey, Arg

    public interface ToolArg
    extends Arg
    An Arg that just wraps a Tool.
    • Method Detail

      • getTool

        Tool getTool()
      • appendToCommandLine

        default void appendToCommandLine​(java.util.function.Consumer<String> consumer,
                                         SourcePathResolverAdapter resolver)
        Description copied from interface: Arg
        Feed the contents of the Arg to the supplied consumer. This call may feed any number of elements (including zero) into the consumer. This is only ever safe to call when the rule is running, as it may do things like resolving source paths.
        Specified by:
        appendToCommandLine in interface Arg