public class ExecutablesDescriptor
extends java.lang.Object
| Constructor and Description |
|---|
ExecutablesDescriptor(ExecutablesDescriptor descriptor) |
ExecutablesDescriptor(java.lang.String os,
java.lang.String executable,
java.io.File location,
java.io.File[] files) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAllFiles(java.io.File file) |
void |
addFile(java.io.File file) |
static ExecutablesDescriptor |
createDescriptor(java.lang.String os,
java.lang.String executable,
java.io.File location)
Create an executable descriptor based on the given location, os and name.
|
static ExecutablesDescriptor |
createExecutablesFromFeature(java.io.File executablesFeatureLocation,
java.lang.String configSpec)
Return the root directory of the executables folder for the given configSpec.
|
static java.io.File |
findExecutable(java.lang.String os,
java.io.File root,
java.lang.String baseName) |
java.io.File |
getExecutable() |
java.lang.String |
getExecutableName() |
java.io.File[] |
getFiles() |
java.io.File |
getIniLocation() |
java.io.File |
getLocation() |
boolean |
isTemporary() |
void |
makeTemporaryCopy() |
void |
removeFile(java.io.File file) |
void |
replace(java.io.File oldFile,
java.io.File newFile) |
void |
setExecutableName(java.lang.String value,
boolean updateFiles) |
void |
setLocation(java.io.File value) |
public ExecutablesDescriptor(java.lang.String os,
java.lang.String executable,
java.io.File location,
java.io.File[] files)
public ExecutablesDescriptor(ExecutablesDescriptor descriptor)
public static java.io.File findExecutable(java.lang.String os,
java.io.File root,
java.lang.String baseName)
public static ExecutablesDescriptor createExecutablesFromFeature(java.io.File executablesFeatureLocation, java.lang.String configSpec)
executablesFeatureLocation - the location of the executables featureconfigSpec - the configuration to lookuppublic static ExecutablesDescriptor createDescriptor(java.lang.String os, java.lang.String executable, java.io.File location)
os - location - executable - public void addAllFiles(java.io.File file)
public void addFile(java.io.File file)
public void removeFile(java.io.File file)
public void replace(java.io.File oldFile,
java.io.File newFile)
public java.io.File[] getFiles()
public java.lang.String getExecutableName()
public java.io.File getExecutable()
public java.io.File getIniLocation()
public java.io.File getLocation()
public void setLocation(java.io.File value)
public boolean isTemporary()
public void setExecutableName(java.lang.String value,
boolean updateFiles)
public void makeTemporaryCopy()