public class InstallPearSilently
extends java.lang.Object
org.apache.uima.tools.pear.install.InstallPear
org.apache.uima.tools.pear.install.InstallPear
Modifier and Type | Class and Description |
---|---|
protected static class |
InstallPearSilently.RunInstallation
The
RunInstallation class implements a thread that is used to run the
installation. |
Modifier and Type | Field and Description |
---|---|
private static boolean |
errorFlag |
private static InstallationDescriptor |
insdObject |
private static java.io.File |
installationDir |
private static java.io.File |
localTearFile |
private static java.lang.String |
mainComponentId |
private static java.lang.String |
mainComponentRootPath |
private static java.lang.String |
message |
private static java.lang.String |
SET_ENV_FILE |
Constructor and Description |
---|
InstallPearSilently() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getString(java.lang.String[] a,
int i) |
private static void |
installPear(java.io.File localPearFile,
java.io.File installationDir)
Method that installs the given PEAR file to the given installation directory.
|
static void |
main(java.lang.String[] args)
Starts the application.
|
private static void |
printInConsole(boolean errorFlag,
java.lang.String message)
Prints messages and set foreground color in the console according to a given errorFlag.
|
static java.lang.String |
quote(java.lang.String s) |
private static void |
runCVD()
This method runs the installed AE in CVD (Gladis).
|
private static java.io.File localTearFile
private static java.io.File installationDir
private static java.lang.String mainComponentId
private static InstallationDescriptor insdObject
private static java.lang.String mainComponentRootPath
private static java.lang.String message
private static boolean errorFlag
private static final java.lang.String SET_ENV_FILE
private static void installPear(java.io.File localPearFile, java.io.File installationDir)
localPearFile
- The given PEAR file path.installationDir
- The given installation directory.private static void runCVD()
java.io.IOException
- If any I/O exception occurred.private static void printInConsole(boolean errorFlag, java.lang.String message)
errorFlag
- The given error flag.message
- The given message to print.public static java.lang.String getString(java.lang.String[] a, int i)
public static java.lang.String quote(java.lang.String s)
public static void main(java.lang.String[] args)
args
- optional runCVD boolean, default = false