Class ToolCommand

All Implemented Interfaces:
ExtensionPoint, Describable<Builder>, BuildStep, SimpleBuildStep
Direct Known Subclasses:
Restore

public class ToolCommand extends Command
A build step executing a subcommand of dotnet tool.
  • Constructor Details

    • ToolCommand

      protected ToolCommand()
      Creates a new dotnet nuget build step.
    • ToolCommand

      protected ToolCommand(@NonNull String subCommand)
      Creates a new dotnet tool build step.
      Parameters:
      subCommand - The dotnet tool subcommand to execute.
  • Method Details

    • addCommandLineArguments

      protected void addCommandLineArguments(@NonNull DotNetArguments args) throws AbortException
      Adds command line arguments for this .NET tool command invocation.

      This adds:

      1. tool
      2. The sub-command (e.g. restore), if applicable.
      Overrides:
      addCommandLineArguments in class Command
      Parameters:
      args - The current set of arguments.
      Throws:
      AbortException - When something goes wrong.