com.atlassian.bamboo.utils
Class Which

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

public final class Which
extends java.lang.Object

Finds an executable in the system environment


Method Summary
static java.lang.String execute(java.lang.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
 

Method Detail

execute

@Nullable
public static java.lang.String execute(@NotNull
                                                java.lang.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 © 2012 Atlassian. All Rights Reserved.