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.AbstractMojoCreate a DMG file from the file specified as argument. This plug-in requires access to the Eclipse DMG packager web service.
-
-
Field Summary
Fields Modifier and Type Field Description private java.io.FilebackgroundImageA png file for background image for the installer.private booleancontinueOnFailWhether the build should be stopped if the packaging process fails.private java.lang.StringdropLinkPositionLocation of the drop link to Applications folder.private java.io.FileeulaFileFile to attach as a license.private java.lang.StringiconName of the icon to display and position, e.g.,"Eclipse.app x y".private java.lang.StringiconSizeThe size of the icon to display in the installer.private java.lang.StringserviceUrlThe URL for creating DMG filesprivate booleansignControls signing of the dmg fileprivate booleanskipSkips the execution of this pluginprivate java.io.FilesourceAn.tar.gzor.zipfile containing a single OS X application to create the DMG for.private java.io.FiletargetWhere the new DMG file should be saved.private inttimeoutMillisDetermines the timeout in milliseconds for any communication with the packaging/signing server.private java.io.FilevolumeIconThe icns file used for the DMG.private java.lang.StringvolumeNameThe user readable name of the DMG created.private java.lang.StringwindowPositionThe position of the installer window when it opens.private java.lang.StringwindowSizeThe size of the installer window.
-
Constructor Summary
Constructors Constructor Description CreateDMGMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidcallDMGService(ExceptionHandler exceptionHandler)voidexecute()private voidprocessOnRemoteServer(HttpClient httpClient, HttpRequest request)
-
-
-
Field Detail
-
volumeName
@Parameter private java.lang.String volumeName
The user readable name of the DMG created. It is displayed in the Finder sidebar and window title.- Since:
- 1.1.3
-
volumeIcon
@Parameter private java.io.File volumeIcon
The icns file used for the DMG.- Since:
- 1.1.3
-
backgroundImage
@Parameter private java.io.File backgroundImage
A png file for background image for the installer.- Since:
- 1.1.3
-
windowSize
@Parameter(defaultValue="480 300") private java.lang.String windowSize
The size of the installer window. Coordinates are expressed as X Y (e.g. 480 300)- Since:
- 1.1.3
-
windowPosition
@Parameter(defaultValue="50 50") private java.lang.String 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
@Parameter(defaultValue="125") private java.lang.String iconSize
The size of the icon to display in the installer.- Since:
- 1.1.3
-
icon
@Parameter private java.lang.String icon
Name of the icon to display and position, e.g.,"Eclipse.app x y". Recommended size 100 125- Since:
- 1.1.3
-
dropLinkPosition
@Parameter(defaultValue="375 125") private java.lang.String dropLinkPosition
Location of the drop link to Applications folder.- Since:
- 1.1.3
-
eulaFile
@Parameter private java.io.File eulaFile
File to attach as a license.- Since:
- 1.1.3
-
source
@Parameter(required=true) private java.io.File 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 java.lang.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
@Parameter private java.io.File 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
-
-
Method Detail
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
callDMGService
private void callDMGService(ExceptionHandler exceptionHandler) throws java.io.IOException, org.apache.maven.plugin.MojoExecutionException
- Throws:
java.io.IOExceptionorg.apache.maven.plugin.MojoExecutionException
-
processOnRemoteServer
private void processOnRemoteServer(HttpClient httpClient, HttpRequest request) throws java.io.IOException
- Throws:
java.io.IOException
-
-