public class PackageCreator extends Object
| Constructor and Description |
|---|
PackageCreator() |
| Modifier and Type | Method and Description |
|---|---|
static String |
createInstallDescriptor(String componentID,
String mainComponentDesc,
String classpath,
String datapath,
String mainComponentDir,
Properties envVars)
Creates the installation descriptor with the given information and save it in the metadata
folder of the
mainComponentDir. |
static String |
createPearPackage(String componentID,
String mainComponentDir,
String targetDir)
create pear package based on the given information.
|
static void |
generatePearPackage(String componentID,
String mainComponentDesc,
String classpath,
String datapath,
String mainComponentDir,
String targetDir,
Properties envVars)
Default method to generate a pear package.
|
public static void generatePearPackage(String componentID, String mainComponentDesc, String classpath, String datapath, String mainComponentDir, String targetDir, 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 entities.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 String createInstallDescriptor(String componentID, String mainComponentDesc, String classpath, String datapath, String mainComponentDir, 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 entities.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 String createPearPackage(String componentID, String mainComponentDir, 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.Copyright © 2006–2021 The Apache Software Foundation. All rights reserved.