Class CreateDMGMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.eclipse.cbi.maven.plugins.dmgpackager.CreateDMGMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="package-dmg",
defaultPhase=PACKAGE)
public class CreateDMGMojo
extends org.apache.maven.plugin.AbstractMojo
Create a DMG file from the file specified as argument. This plug-in requires
access to the Eclipse DMG packager web service.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate File
A png file for background image for the installer.private boolean
Whether the build should be stopped if the packaging process fails.private String
Location of the drop link to Applications folder.private File
File to attach as a license.private String
Name of the icon to display and position, e.g.,"Eclipse.app x y"
.private String
The size of the icon to display in the installer.private String
The URL for creating DMG filesprivate boolean
Controls signing of the dmg fileprivate boolean
Skips the execution of this pluginprivate File
An.tar.gz
or.zip
file containing a single OS X application to create the DMG for.private File
Where the new DMG file should be saved.private int
Determines the timeout in milliseconds for any communication with the packaging/signing server.private File
The icns file used for the DMG.private String
The user readable name of the DMG created.private String
The position of the installer window when it opens.private String
The size of the installer window.Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
callDMGService
(ExceptionHandler exceptionHandler) void
execute()
private void
processOnRemoteServer
(HttpClient httpClient, HttpRequest request) Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
volumeName
The user readable name of the DMG created. It is displayed in the Finder sidebar and window title.- Since:
- 1.1.3
-
volumeIcon
The icns file used for the DMG.- Since:
- 1.1.3
-
backgroundImage
A png file for background image for the installer.- Since:
- 1.1.3
-
windowSize
The size of the installer window. Coordinates are expressed as X Y (e.g. 480 300)- Since:
- 1.1.3
-
windowPosition
The position of the installer window when it opens. Coordinates are expressed as X Y (e.g. 50 50).- Since:
- 1.1.3
-
iconSize
The size of the icon to display in the installer.- Since:
- 1.1.3
-
icon
Name of the icon to display and position, e.g.,"Eclipse.app x y"
. Recommended size 100 125- Since:
- 1.1.3
-
dropLinkPosition
Location of the drop link to Applications folder.- Since:
- 1.1.3
-
eulaFile
File to attach as a license.- Since:
- 1.1.3
-
source
An.tar.gz
or.zip
file containing a single OS X application to create the DMG for.- Since:
- 1.1.3
-
serviceUrl
@Parameter(required=true, property="cbi.dmgpackager.serviceUrl", defaultValue="http://build.eclipse.org:31338/dmg-packager") private String serviceUrlThe URL for creating DMG filesThe signing service return a dmg file of the application passed as a source.
- Since:
- 1.1.3
-
target
Where the new DMG file should be saved. If it is not specified, the file is placed besidesource
.- Since:
- 1.1.3
-
skip
@Parameter(property="cbi.dmgpackager.skip", defaultValue="false") private boolean skipSkips the execution of this plugin- Since:
- 1.1.3
-
continueOnFail
@Parameter(property="cbi.dmgpackager.continueOnFail", defaultValue="false") private boolean continueOnFailWhether the build should be stopped if the packaging process fails.- Since:
- 1.1.3
-
sign
@Parameter(property="cbi.dmgpackager.sign", defaultValue="false") private boolean signControls signing of the dmg file- Since:
- 1.1.4
-
timeoutMillis
@Parameter(property="cbi.dmgpackager.timeoutMillis", defaultValue="0") private int timeoutMillisDetermines the timeout in milliseconds for any communication with the packaging/signing server. A timeout value of zero is interpreted as an infinite timeout.- Since:
- 1.1.5
-
-
Constructor Details
-
CreateDMGMojo
public CreateDMGMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
callDMGService
private void callDMGService(ExceptionHandler exceptionHandler) throws IOException, org.apache.maven.plugin.MojoExecutionException - Throws:
IOException
org.apache.maven.plugin.MojoExecutionException
-
processOnRemoteServer
- Throws:
IOException
-