public class LocatorImpl extends Object implements ExecutableLocator
Modifier and Type | Field and Description |
---|---|
static String |
PROP_SEARCH_PATH |
Constructor and Description |
---|
LocatorImpl()
Default constructor for SCR.
|
LocatorImpl(String[] searchPath)
Constructor for non-OSGi component usage.
|
Modifier and Type | Method and Description |
---|---|
String |
getPath(String cmd)
Returns the absolute path to an executable, if found,
or
null if it could not be found. |
static String[] |
getPathEnv() |
public static final String PROP_SEARCH_PATH
public LocatorImpl()
public LocatorImpl(String[] searchPath)
searchPath
- list of search pathspublic String getPath(String cmd)
ExecutableLocator
null
if it could not be found.getPath
in interface ExecutableLocator
cmd
- the name of an executable file (e.g. "ffmpeg")null
public static String[] getPathEnv()
"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"