Interface CustomPublishConfig
public interface CustomPublishConfig
A configuration for a custom publish.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addStep
(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.void
setDescription
(String description) Sets the description of the publish.void
setSettings
(ConfigSettings settings) Sets the settings used for the publish.void
Sets the title of the publish.void
setZipFileContent
(byte[] contents) Sets any content needed when running the publish.void
Unpacks 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 withsetZipFileContent
then nothing will happen.- Parameters:
dir
- The file dir.- Throws:
IOException
- If an error occurs.
-
setSettings
Sets the settings used for the publish. UseCustomPublishConfigFactory
to 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. UseCustomPublishConfigFactory
to 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.
-