org.apache.uima.pear.tools
public class PackageInstaller extends java.lang.Object
PackageInstaller
class is the main user API for installing
PEAR packages. The class has a static method installPackage
to
install PEAR packages that returns a PackageBrowser
object
containing all the needed information about the installed PEAR package.PackageBrowser
Constructor and Description |
---|
PackageInstaller() |
Modifier and Type | Method and Description |
---|---|
static PackageBrowser |
installPackage(java.io.File installDir,
java.io.File pearPackage,
boolean verify)
Installs the specified PEAR package to the specified install location.
|
static PackageBrowser |
installPackage(java.io.File installDir,
java.io.File pearPackage,
boolean verify,
boolean cleanInstallDir)
Installs the specified PEAR package to the specified install location.
|
static PackageBrowser |
installPackage(java.io.File installDir,
java.io.File pearPackage,
boolean verify,
boolean cleanInstallDir,
boolean installToTopLevelDir)
Installs the specified PEAR package to the specified install location.
|
public static PackageBrowser installPackage(java.io.File installDir, java.io.File pearPackage, boolean verify) throws PackageInstallerException
installDir
- PEAR package install locationpearPackage
- PEAR package file location to installverify
- If true the PEAR package verification is done after the
installationPackageBrowser
object containing all PEAR
package install settingsPackageInstallerException
- If an error occurred during the pear installation or
verification.public static PackageBrowser installPackage(java.io.File installDir, java.io.File pearPackage, boolean verify, boolean cleanInstallDir) throws PackageInstallerException
installDir
- PEAR package install locationpearPackage
- PEAR package file location to installverify
- If true the PEAR package verification is done after the
installationcleanInstallDir
- If true
, the target installation directory will
be cleaned before the PEAR file is installed.PackageBrowser
object containing all PEAR
package install settingsPackageInstallerException
- If an error occurred during the pear installation or
verification.public static PackageBrowser installPackage(java.io.File installDir, java.io.File pearPackage, boolean verify, boolean cleanInstallDir, boolean installToTopLevelDir) throws PackageInstallerException
installDir
- PEAR package install locationpearPackage
- PEAR package file location to installverify
- If true the PEAR package verification is done after the
installationcleanInstallDir
- If true
, the target installation directory will
be cleaned before the PEAR file is installed.installToTopLevelDir
- If true
, the PEAR is installed directly into the
installDir
. No intermediate directory with the component name is
created. Defaults to false
in the overloads of this method.PackageBrowser
object containing all PEAR
package install settingsPackageInstallerException
- If an error occurred during the pear installation or
verification.Copyright © 2014. All Rights Reserved.