com.atlassian.bamboo.utils
Class Which
java.lang.Object
com.atlassian.bamboo.utils.Which
public final class Which
- extends Object
Finds an executable in the system environment
Method Summary |
static String |
execute(String executableName)
Find an executable in the system environment using `which`. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
execute
@Nullable
public static String execute(@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
Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.