|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.uima.pear.tools.PackageCreator
public class PackageCreator
Utility class to generate a pear package.
Constructor Summary | |
---|---|
PackageCreator()
|
Method Summary | |
---|---|
static java.lang.String |
createInstallDescriptor(java.lang.String componentID,
java.lang.String mainComponentDesc,
java.lang.String classpath,
java.lang.String datapath,
java.lang.String mainComponentDir,
java.util.Properties envVars)
Creates the installation descriptor with the given information and save it in the metadata folder of the mainComponentDir . |
static java.lang.String |
createPearPackage(java.lang.String componentID,
java.lang.String mainComponentDir,
java.lang.String targetDir)
create pear package based on the given information. |
static void |
generatePearPackage(java.lang.String componentID,
java.lang.String mainComponentDesc,
java.lang.String classpath,
java.lang.String datapath,
java.lang.String mainComponentDir,
java.lang.String targetDir,
java.util.Properties envVars)
Default method to generate a pear package. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PackageCreator()
Method Detail |
---|
public static void generatePearPackage(java.lang.String componentID, java.lang.String mainComponentDesc, java.lang.String classpath, java.lang.String datapath, java.lang.String mainComponentDir, java.lang.String targetDir, java.util.Properties envVars) throws PackageCreatorException
componentID
- Specify a componentID for this componentmainComponentDesc
- Specify the main component descriptor path that is used to start the component. The
path must be specified relative to the mainComponentDir
parameter.classpath
- Specify the classpath for this component. Use macros like $main_root
to
specify the classpath entries.datapath
- Specify the datapath for this component. Use macros like $main_root
to
specify the datapath entiies.mainComponentDir
- Specify the main component root directory that contains all the resources for the
component. The mainComponentDir is packaged to the pear file.targetDir
- Specify the target directory where the generated pear file is written to.envVars
- Specify additional environment variables for the pear component. May also use macros
like $main_root
to specify the key values if necessary.
PackageCreatorException
- if an error occurs while create the pear packagepublic static java.lang.String createInstallDescriptor(java.lang.String componentID, java.lang.String mainComponentDesc, java.lang.String classpath, java.lang.String datapath, java.lang.String mainComponentDir, java.util.Properties envVars) throws PackageCreatorException
mainComponentDir
.
componentID
- Specify a componentID for this componentmainComponentDesc
- Specify the main component descriptor path that is used to start the component. The
path must be specified relative to the mainComponentDir
parameter.classpath
- Specify the classpath for this component. Use macros like $main_root
to
specify the classpath entries.datapath
- Specify the datapath for this component. Use macros like $main_root
to
specify the datapath entiies.mainComponentDir
- Specify the main component root directory that contains all the resources for the
component. The mainComponentDir is packaged to the pear file.envVars
- Specify additional environment variables for the pear component. May also use macros
like $main_root
to specify the key values if necessary.
PackageCreatorException
- if an error occurs while creating the installation descriptorpublic static java.lang.String createPearPackage(java.lang.String componentID, java.lang.String mainComponentDir, java.lang.String targetDir) throws PackageCreatorException
componentID
- Specify a componentID for this componentmainComponentDir
- Specify the main component root directory that contains all the resources for the
component. The mainComponentDir is packaged to the pear file.targetDir
- Specify the target directory where the generated pear file is written to.
PackageCreatorException
- if the pear package can not be created successfully.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |