@Service @Properties(value=@Property(name="service.description",value="CQ Executable Locator")) public class LocatorImpl extends java.lang.Object implements ExecutableLocator
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROP_SEARCH_PATH |
Constructor and Description |
---|
LocatorImpl()
Default constructor for SCR.
|
LocatorImpl(java.lang.String[] searchPath)
Constructor for non-OSGi component usage.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getPath(java.lang.String cmd)
Returns the absolute path to an executable, if found,
or
null if it could not be found. |
static java.lang.String[] |
getPathEnv() |
@Property(value={"/opt/local/bin","/usr/local/bin","PATH"}) public static final java.lang.String PROP_SEARCH_PATH
public LocatorImpl()
public LocatorImpl(java.lang.String[] searchPath)
searchPath
- list of search pathspublic java.lang.String getPath(java.lang.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 java.lang.String[] getPathEnv()
Copyright © 2010 - 2020 Adobe. All Rights Reserved