public class P2ApplicationLaunchManager extends Object
| Constructor and Description |
|---|
P2ApplicationLaunchManager(org.eclipse.tycho.p2.facade.internal.P2ApplicationLauncher launcher)
The constructor which initializes this class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addArgumentsToInstallFeatures(String repositoryLocation,
String installIUs,
String destination,
String profile)
Sets the P2ApplicationLauncher's arguments to install features.
|
void |
addArgumentsToUnInstallFeatures(String uninstallIUs,
String destination,
String profile)
Sets the P2ApplicationLauncher's arguments to uninstall features.
|
void |
addGenerateProfileArguments(URL repositoryURL,
String id,
String profile,
URL targetPath)
Sets the P2ApplicationLauncher's arguments and configure it to generate a profile.
|
void |
addPublishProductArguments(URL repositoryURL,
File productConfigurationFile,
String executable)
Sets the P2ApplicationLauncher's arguments and configure it to publish a give product.
|
void |
addRepoGenerationArguments(String sourceDir,
String metadataRepoLocation,
String repositoryName)
Sets the P2ApplicationLauncher's arguments to generate P2 repository.
|
void |
addUpdateRepoWithCategoryArguments(String metadataRepositoryLocation,
String categoryDefinitionFile)
Sets the P2ApplicationLauncher's arguments and configure it to categorizing a set of Installable Units in a given
repository.
|
void |
performAction(int forkedProcessTimeoutInSeconds)
Generate/update the repository.
|
void |
setApplicationName(String applicationName)
Sets the application name.
|
void |
setWorkingDirectory(File workingDir)
Sets the working directory of P2Applilcation launcher instance
|
public P2ApplicationLaunchManager(org.eclipse.tycho.p2.facade.internal.P2ApplicationLauncher launcher)
launcher - P2ApplicationLauncher which will be wrapped by this wrapper classpublic void setWorkingDirectory(File workingDir)
workingDir - File object pointing the directorypublic void setApplicationName(String applicationName)
applicationName - name of the applicationpublic void addArgumentsToInstallFeatures(String repositoryLocation, String installIUs, String destination, String profile)
repositoryLocation - a comma separated list of metadata repository(or artifact repository as in p2 both
metadata and artifacts resides in the same repo) URLs where the software to be
installed can be found.installIUs - a comma separated list of IUs to install. Each entry in the list is in the form
<id> [ '/' <version> ]. If you are looking to install a feature, the identifier
of the feature has to be suffixed with ".feature.group".destination - the path of a folder in which the targeted product is located.profile - the profile id containing the description of the targeted product. This ID is
defined by the eclipse.p2.profile property contained in the config.ini of the
targeted product.public void addArgumentsToUnInstallFeatures(String uninstallIUs, String destination, String profile)
uninstallIUs - a comma separated list of IUs to uninstall. Each entry in the list is in the form
<id> [ '/' <version> ]. If you are looking to uninstall a feature, the identifier
of the feature has to be suffixed with ".feature.group".destination - the path of a folder in which the targeted product is locatedprofile - the profile id containing the description of the targeted productpublic void addRepoGenerationArguments(String sourceDir, String metadataRepoLocation, String repositoryName)
sourceDir - the location of the update sitemetadataRepoLocation - the URI to the metadata repository where the installable units should be publishedrepositoryName - name of the artifact repository where the artifacts should be publishedpublic void addUpdateRepoWithCategoryArguments(String metadataRepositoryLocation, String categoryDefinitionFile)
metadataRepositoryLocation - a comma separated list of metadata repository URLs where the software to be
installed can be found.categoryDefinitionFile - The category file which drives the categorization of installable units in the
repositorypublic void addPublishProductArguments(URL repositoryURL, File productConfigurationFile, String executable) throws IOException
repositoryURL - the URL to the metadata repository where the product should be publishedproductConfigurationFile - File object pointing the .product fileexecutable - location of the equinox executable jarIOException - throws when unable to get the canonical path from the product configuration filepublic void addGenerateProfileArguments(URL repositoryURL, String id, String profile, URL targetPath)
repositoryURL - the URL to the metadata repository where the product should be publishedid - product id taken from .product fileprofile - name of the new profiletargetPath - location of the components directory of the carbon distributionpublic void performAction(int forkedProcessTimeoutInSeconds)
throws org.apache.maven.plugin.MojoFailureException
forkedProcessTimeoutInSeconds - intorg.apache.maven.plugin.MojoFailureException - throws when unable to perform the p2 activityCopyright © 2015 WSO2. All rights reserved.