Class Which

java.lang.Object
com.atlassian.bamboo.utils.Which

public final class Which extends Object
Finds an executable in the system environment
  • Method Details

    • execute

      @Nullable public static @Nullable String execute(@NotNull @NotNull String executableName)
      Find an executable in the system environment using `which`. Compatibility when the system is Windows by using the "WHERE" command.
      Parameters:
      executableName - name of the executable
      Returns:
      path