public abstract class AbstractGeneratePackageMojo
extends AbstractMojo
Look at the gvSIG plugin naming standard for information about installers naming and versioning.
InstallerManager| Constructor and Description |
|---|
AbstractGeneratePackageMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
createPackage(MakePluginPackageService makePluginService,
PackageInfo info,
OutputStream os)
Creates the package file into the given
OutputStream. |
void |
execute() |
protected abstract String |
getPackageFileName(PackageInfo info)
Returns the name of the package file to create.
|
protected abstract String |
getPackageTypeName()
Returns the name of the package type to create.
|
public void execute()
throws MojoExecutionException,
MojoFailureException
MojoExecutionExceptionMojoFailureExceptionprotected abstract String getPackageFileName(PackageInfo info)
info - package informationprotected abstract String getPackageTypeName()
protected abstract void createPackage(MakePluginPackageService makePluginService, PackageInfo info, OutputStream os) throws MakePluginPackageServiceException
OutputStream.makePluginService - to use to create the packageinfo - the information of the package to createos - where to create the package fileMakePluginPackageServiceException - if there is an error creating the package file