Package org.nuxeo.connect.update.util
Class PackageBuilder
java.lang.Object
org.nuxeo.connect.update.util.PackageBuilder
Build an XML representation of a package.
- Author:
- Bogdan Stefanescu
-
Field Summary
Modifier and TypeFieldDescriptionprotected final List<org.nuxeo.connect.update.PackageDependency>
protected final org.nuxeo.connect.update.model.PackageDefinition
protected final List<org.nuxeo.connect.update.PackageDependency>
protected final LinkedHashMap<String,
InputStream> protected final List<FormDefinition>
protected final List<org.nuxeo.connect.update.PackageDependency>
protected final List<org.nuxeo.connect.update.PackageDependency>
protected final List<FormDefinition>
protected final List<FormDefinition>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddEntry
(String path, InputStream in) The entry content will be copied into the zip at build time and the given input stream will be closed.protected void
addForms
(List<FormDefinition> formDefs, String path, ZipOutputStream zout) addInstallForm
(FormDefinition form) addInstallScript
(String content) addLicense
(String content) addTermsAndConditions
(String content) addUninstallScript
(String content) build()
classifier
(String classifier) dependency
(String expr) description
(String description) hotReloadSupport
(boolean hotReloadSupport) installer
(org.nuxeo.connect.update.model.TaskDefinition task) optionalDependency
(String expr) platformName
(String platformName) platformRange
(String platformRange) requireTermsAndConditionsAcceptance
(boolean requireTermsAndConditionsAcceptance) type
(org.nuxeo.connect.update.PackageType type) uninstaller
(String type, boolean restart) uninstaller
(org.nuxeo.connect.update.model.TaskDefinition task) version
(org.nuxeo.connect.update.Version version)
-
Field Details
-
def
protected final org.nuxeo.connect.update.model.PackageDefinition def -
installForms
-
uninstallForms
-
validationForms
-
platforms
-
dependencies
-
optionalDependencies
-
conflicts
-
provides
-
entries
-
-
Constructor Details
-
PackageBuilder
public PackageBuilder()
-
-
Method Details
-
name
-
version
-
version
-
type
-
type
-
title
-
description
-
classifier
-
vendor
-
installer
-
installer
-
uninstaller
-
uninstaller
-
hotReloadSupport
-
requireTermsAndConditionsAcceptance
public PackageBuilder requireTermsAndConditionsAcceptance(boolean requireTermsAndConditionsAcceptance) -
validator
-
platform
-
platformName
-
platformRange
-
dependency
-
optionalDependency
- Since:
- 6.0-HF33
-
conflict
-
provide
-
addInstallForm
-
addUninstallForm
-
addValidationForm
-
addLicense
-
addLicense
-
addInstallScript
-
addInstallScript
-
addUninstallScript
-
addUninstallScript
-
addTermsAndConditions
-
addTermsAndConditions
-
addEntry
The entry content will be copied into the zip at build time and the given input stream will be closed. (event if an exception occurs) - so you don't need to handle stream closing. -
buildManifest
-
build
- Throws:
IOException
-
addForms
protected void addForms(List<FormDefinition> formDefs, String path, ZipOutputStream zout) throws IOException - Throws:
IOException
-