Interface CustomPublishConfig
public interface CustomPublishConfig
A configuration for a custom publish.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddStep(ConfigStep step) Adds a step to the publish configuration.Returns a description for the publish.Returns the settings for the publish.getSteps()Returns the current steps added to the configuration.getTitle()Returns a title for the publish.voidsetDescription(String description) Sets the description of the publish.voidsetSettings(ConfigSettings settings) Sets the settings used for the publish.voidSets the title of the publish.voidsetZipFileContent(byte[] contents) Sets any content needed when running the publish.voidUnpacks the content of the configuration to a directory.
-
Method Details
-
getTitle
String getTitle()Returns a title for the publish. This could be used when representing the publish in the UI.- Returns:
- A title for the publish.
-
setTitle
Sets the title of the publish.- Parameters:
title- The new title.
-
getDescription
String getDescription()Returns a description for the publish. This could be used when representing the publish in the UI.- Returns:
- A description for the publish.
-
setDescription
Sets the description of the publish.- Parameters:
description- The new description.
-
setZipFileContent
void setZipFileContent(byte[] contents) Sets any content needed when running the publish. This content should be in ZIP format and will be unpacked to the output directory when running the publish.- Parameters:
contents- Any content needed in the output directory when publishing, in ZIP format.
-
unpack
Unpacks the content of the configuration to a directory. If no content has been set withsetZipFileContentthen nothing will happen.- Parameters:
dir- The file dir.- Throws:
IOException- If an error occurs.
-
setSettings
Sets the settings used for the publish. UseCustomPublishConfigFactoryto create the settings.- Parameters:
settings- The new settings.
-
getSettings
ConfigSettings getSettings()Returns the settings for the publish.- Returns:
- The publish settings.
-
addStep
Adds a step to the publish configuration. UseCustomPublishConfigFactoryto create any of the available steps.- Parameters:
step- The step to add.
-
getSteps
List<ConfigStep> getSteps()Returns the current steps added to the configuration.- Returns:
- The current publish steps in the configuration.
-