Class BashStep

  • All Implemented Interfaces:

    public class BashStep
    extends ShellStep
    Command that makes it possible to run an arbitrary command in Bash. Whenever possible, a more specific subclass of ShellStep should be preferred. BashCommand should be reserved for cases where the expressiveness of Bash (often in the form of *-shell-expansion) makes the command considerably easier to implement.
    • Constructor Detail

      • BashStep

        public BashStep​(Path workingDirectory,
                        String... bashCommand)
        bashCommand - command to execute. For convenience, multiple arguments are supported and will be joined with space characters if more than one is present.
      • BashStep

        public BashStep​(AbsPath workingDirectory,
                        String... bashCommand)
    • Method Detail

      • getShortName

        public String getShortName()
        a short name/description for the command, such as "javac". Should fit on one line.
      • getShellCommandInternal

        protected<String> getShellCommandInternal​(ExecutionContext context)
        Description copied from class: ShellStep
        Implementations of this method should not have any observable side-effects.
        Specified by:
        getShellCommandInternal in class ShellStep