@Mojo(name="package-dmg",
defaultPhase=PACKAGE)
public class CreateDMGMojo
extends org.apache.maven.plugin.AbstractMojo
Modifier and Type | Field and Description |
---|---|
private java.io.File |
backgroundImage
A png file for background image for the installer.
|
private boolean |
continueOnFail
Whether the build should be stopped if the packaging process fails.
|
private java.lang.String |
dropLinkPosition
Location of the drop link to Applications folder.
|
private java.io.File |
eulaFile
File to attach as a license.
|
private java.lang.String |
icon
Name of the icon to display and position, e.g.,
"Eclipse.app x y" . |
private java.lang.String |
iconSize
The size of the icon to display in the installer.
|
private java.lang.String |
serviceUrl
The URL for creating DMG files
|
private boolean |
skip
Skips the execution of this plugin
|
private java.io.File |
source
An
.tar.gz or .zip file containing a single OS X application to create the DMG for. |
private java.io.File |
target
Where the new DMG file should be saved.
|
private java.io.File |
volumeIcon
The icns file used for the DMG.
|
private java.lang.String |
volumeName
The user readable name of the DMG created.
|
private java.lang.String |
windowPosition
The position of the installer window when it opens.
|
private java.lang.String |
windowSize
The size of the installer window.
|
Constructor and Description |
---|
CreateDMGMojo() |
Modifier and Type | Method and Description |
---|---|
private void |
callDMGService(ExceptionHandler exceptionHandler) |
void |
execute() |
private void |
processOnRemoteServer(HttpClient httpClient,
HttpRequest request) |
@Parameter private java.lang.String volumeName
@Parameter private java.io.File volumeIcon
@Parameter private java.io.File backgroundImage
@Parameter(defaultValue="480 300") private java.lang.String windowSize
@Parameter(defaultValue="50 50") private java.lang.String windowPosition
@Parameter(defaultValue="125") private java.lang.String iconSize
@Parameter private java.lang.String icon
"Eclipse.app x y"
. Recommended
size 100 125@Parameter(defaultValue="375 125") private java.lang.String dropLinkPosition
@Parameter private java.io.File eulaFile
@Parameter(required=true) private java.io.File source
.tar.gz
or .zip
file containing a single OS X application to create the DMG for.@Parameter(required=true, property="cbi.dmgpackager.serviceUrl", defaultValue="http://build.eclipse.org:31338/dmg-packager") private java.lang.String serviceUrl
The signing service return a dmg file of the application passed as a source.
@Parameter private java.io.File target
source
.@Parameter(property="cbi.dmgpackager.skip", defaultValue="false") private boolean skip
@Parameter(property="cbi.dmgpackager.continueOnFail", defaultValue="false") private boolean continueOnFail
public void execute() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
private void callDMGService(ExceptionHandler exceptionHandler) throws java.io.IOException, org.apache.maven.plugin.MojoExecutionException
java.io.IOException
org.apache.maven.plugin.MojoExecutionException
private void processOnRemoteServer(HttpClient httpClient, HttpRequest request) throws java.io.IOException
java.io.IOException