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 FileA png file for background image for the installer.private booleanWhether the build should be stopped if the packaging process fails.private StringLocation of the drop link to Applications folder.private FileFile to attach as a license.private StringName of the icon to display and position, e.g.,"Eclipse.app x y".private StringThe size of the icon to display in the installer.private StringThe URL for creating DMG filesprivate booleanControls signing of the dmg fileprivate booleanSkips the execution of this pluginprivate FileAn.tar.gzor.zipfile containing a single OS X application to create the DMG for.private FileWhere the new DMG file should be saved.private intDetermines the timeout in milliseconds for any communication with the packaging/signing server.private FileThe icns file used for the DMG.private StringThe user readable name of the DMG created.private StringThe position of the installer window when it opens.private StringThe size of the installer window.Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcallDMGService(ExceptionHandler exceptionHandler) voidexecute()private voidprocessOnRemoteServer(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.gzor.zipfile 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:
IOExceptionorg.apache.maven.plugin.MojoExecutionException
-
processOnRemoteServer
- Throws:
IOException
-