public class Dmg extends AbstractUnixSetupTask
| Constructor and Description |
|---|
Dmg()
Create the task.
|
| Modifier and Type | Method and Description |
|---|---|
void |
build()
The platform depending build.
|
void |
conclusionPage(java.lang.Object conclusionPage)
Set the welcome page
Allowed Format: rtf, rtfd, txt, html
|
java.lang.String |
getApplicationIdentifier(SetupBuilder setup)
Returns an application identifier set for the DMG builder.
|
java.util.List<java.lang.String> |
getArchitecture()
Get a list of supported architectures that will be added to the Info.plist file
|
java.lang.String |
getBackgroundColor()
Returns the converted background color as apple script string
|
java.io.File |
getBackgroundImage()
Return background Image for Finder View
|
OSXCodeSign<Dmg,SetupBuilder> |
getCodeSign()
Get the SignTool configuration if set
|
java.util.List<LocalizedResource> |
getConclusionPages()
Return the welcome page list
Allowed Format: rtf, rtfd, txt, html
|
int |
getFontSize()
Return font size for Finder View
|
int |
getIconSize()
Return size of icons in Finder view
|
java.util.List<java.lang.String> |
getJreExcludes()
Get a list of string - defining files - that should be excluded from the bundled JRE
|
java.util.List<java.lang.String> |
getJreIncludes()
Get a list of string - defining files - that should be included in the bundled JRE
|
java.util.List<org.apache.tools.ant.types.FileSet> |
getNativeLibraries()
Returns the list of native libraries set for the current project
|
java.util.List<PreferencesLink> |
getPreferencesLinks()
Return the list of preferences links
|
java.io.File |
getSetupBackgroundImage()
Return the background image for the setup
|
java.io.File |
getSetupDarkBackgroundImage()
Returns a dark background image for the package installer
|
java.lang.Object |
getSetupIcon()
Returns the setup icon
|
java.util.List<LocalizedResource> |
getWelcomePages()
Return the welcome page list
Allowed Format: rtf, rtfd, txt, html
|
int |
getWindowHeight()
Return height of Finder view INCLUDING the correction settings
|
int |
getWindowHeightCorrection()
Return correction height of Finder view
This may be needed if there is a background-image
set which does not take the borders of the window into account
|
int |
getWindowWidth()
Return width of Finder view INCLUDING the correction settings
|
int |
getWindowWidthCorrection()
Return correction width of Finder view
This may be needed if there is a background-image
set which does not take the borders of the window into account
|
boolean |
isAquaSystemAppearanceRequired()
Returns true, if the application requires the aqua system appearance.
|
void |
nativeLibraries(java.lang.Object library)
add a native library using any gradle compatible file syntax
|
void |
preferencesLink(org.gradle.api.Action<? super PreferencesLink> action)
Set a preferences link
|
void |
setApplicationIdentifier(java.lang.String applicationIdentifier)
Sets an application identifier for the DMG builder.
|
void |
setAquaSystemAppearanceRequired(boolean aquaSystemAppearanceRequired)
Define, that the application requires the system appearance.
|
void |
setArchitecture(java.util.List<java.lang.String> architecture)
Create a list of architectures from the given input list of strings.
|
void |
setBackgroundColor(java.awt.Color backgroundColor) |
void |
setBackgroundImage(java.io.File backgroundFile)
Set background Image for Finder View
|
void |
setCodeSign(org.gradle.api.Action<? super OSXCodeSign<? super Dmg,? super SetupBuilder>> action)
Set the needed information for signing the setup.
|
void |
setCodeSign(groovy.lang.Closure<OSXCodeSign<Dmg,SetupBuilder>> closure)
Set the needed information for signing the setup.
|
void |
setFontSize(int fontSize)
Set font size for Finder View
|
void |
setIconSize(int iconSize)
Set size of icons in Finder view
|
void |
setJreExcludes(java.util.List<java.lang.String> jreExclude)
Set a list of string - defining files - that should be excluded from the bundled JRE
|
void |
setJreIncludes(java.util.List<java.lang.String> jreIncludes)
Set a list of string - defining files - that should be included in the bundled JRE
|
void |
setSetupBackgroundImage(java.lang.Object setupBackground)
Set the background image for the setup
|
void |
setSetupDarkBackgroundImage(java.lang.Object setupDarkBackground)
Set the dark background image for the package installer
|
void |
setSetupIcon(java.lang.Object setupIcon)
Set up the setup icon
|
void |
setWindowHeight(int windowHeight)
Set height of Finder view
|
void |
setWindowHeightCorrection(int windowHeightCorrection)
Set correction height of Finder view
This may be needed if there is a background-image
set which does not take the borders of the window into account
|
void |
setWindowWidth(int windowWidth)
Set width of Finder view
|
void |
setWindowWidthCorrection(int windowWidthCorrection)
Set correction width of Finder view
This may be needed if there is a background-image
set which does not take the borders of the window into account
|
void |
welcomePage(java.lang.Object welcomePage)
Set the welcome page
Allowed Format: rtf, rtfd, txt, html
|
getDaemonUser, isUseInitD, setDaemonUser, setUseInitDgetPostinst, getPostrm, getPreinst, getPrerm, getSetupBuilder, setPostinst, setPostrm, setPreinst, setPrermaction, copyTo, getAbstractSetupBuilder, getClassifier, getDescription, getDocumentationRegistry, getExtension, getFileLookup, getFileResolver, getFileSystem, getInstantiator, getObjectFactory, getRootSpec, getSetupFile, getSetupSource, getSource, getVersion, processFiles, setClassifier, setExtension, setVersioncompareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getDependsOn, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOutputs, getPath, getProject, getShouldRunAfter, getState, getTaskDependencies, getTemporaryDir, getTimeout, hasProperty, mustRunAfter, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesServiceappendParallelSafeAction, getAsDynamicObject, getConvention, getIdentityPath, getImpliesSubProjects, getOnlyIf, getRequiredServices, getServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, injectIntoNewInstance, isEnabled, isHasCustomActions, prependParallelSafeAction, setImpliesSubProjectsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waiteachFile, eachFile, exclude, exclude, exclude, exclude, expand, expand, filesMatching, filesMatching, filesNotMatching, filesNotMatching, filter, filter, filter, filter, from, from, from, getDirMode, getDuplicatesStrategy, getExcludes, getFileMode, getFilteringCharset, getIncludeEmptyDirs, getIncludes, include, include, include, include, into, into, into, isCaseSensitive, rename, rename, rename, rename, setCaseSensitive, setDirMode, setDuplicatesStrategy, setExcludes, setFileMode, setFilteringCharset, setIncludeEmptyDirs, setIncludes, withpublic void build()
build in class AbstractTask@Input public int getWindowWidth()
public void setWindowWidth(int windowWidth)
windowWidth - width of Finder view@Input public int getWindowWidthCorrection()
public void setWindowWidthCorrection(int windowWidthCorrection)
windowWidthCorrection - width of Finder view@Input public int getWindowHeight()
public void setWindowHeight(int windowHeight)
windowHeight - of Finder view@Input public int getWindowHeightCorrection()
public void setWindowHeightCorrection(int windowHeightCorrection)
windowHeightCorrection - height of Finder view@Input public int getIconSize()
public void setIconSize(int iconSize)
iconSize - of icons in Finder view@InputFile @Optional public java.io.File getBackgroundImage()
public void setBackgroundImage(java.io.File backgroundFile)
backgroundFile - Image for Finder View@Input public int getFontSize()
public void setFontSize(int fontSize)
fontSize - size for Finder Viewpublic void setCodeSign(groovy.lang.Closure<OSXCodeSign<Dmg,SetupBuilder>> closure)
closure - the data for signingpublic void setCodeSign(org.gradle.api.Action<? super OSXCodeSign<? super Dmg,? super SetupBuilder>> action)
action - the data for signing@Input @Optional public OSXCodeSign<Dmg,SetupBuilder> getCodeSign()
@Input @Optional public java.util.List<LocalizedResource> getConclusionPages()
public void conclusionPage(java.lang.Object conclusionPage)
conclusionPage - which is shown at the end@Input @Optional public java.util.List<LocalizedResource> getWelcomePages()
public void welcomePage(java.lang.Object welcomePage)
welcomePage - welcome page file@InputFile @Optional public java.io.File getSetupBackgroundImage()
public void setSetupBackgroundImage(java.lang.Object setupBackground)
setupBackground - to set@InputFile @Optional public java.io.File getSetupDarkBackgroundImage()
public void setSetupDarkBackgroundImage(java.lang.Object setupDarkBackground)
setupDarkBackground - to set@Input @Optional public java.lang.Object getSetupIcon()
public void setSetupIcon(java.lang.Object setupIcon)
setupIcon - the setupIcon to set@Input @Optional public java.util.List<PreferencesLink> getPreferencesLinks()
public void preferencesLink(org.gradle.api.Action<? super PreferencesLink> action)
action - the link@Input @Optional public java.util.List<java.lang.String> getJreIncludes()
public void setJreIncludes(java.util.List<java.lang.String> jreIncludes)
jreIncludes - the jreIncludes to set@Input @Optional public java.util.List<java.lang.String> getJreExcludes()
public void setJreExcludes(java.util.List<java.lang.String> jreExclude)
jreExclude - the jreExclude to set@Input @Optional public java.util.List<java.lang.String> getArchitecture()
public void setArchitecture(java.util.List<java.lang.String> architecture)
architecture - the list of supported architectures@Input public java.lang.String getBackgroundColor()
public void setBackgroundColor(java.awt.Color backgroundColor)
backgroundColor - the backgroundColor to setpublic java.lang.String getApplicationIdentifier(SetupBuilder setup)
setup - the SetupBuilder instance for a fallbackpublic void setApplicationIdentifier(java.lang.String applicationIdentifier)
applicationIdentifier - the application identifier for macOS@Input public boolean isAquaSystemAppearanceRequired()
public void setAquaSystemAppearanceRequired(boolean aquaSystemAppearanceRequired)
aquaSystemAppearanceRequired - true, if the system appearance is required.public void nativeLibraries(java.lang.Object library)
library - a native library to add@Input public java.util.List<org.apache.tools.ant.types.FileSet> getNativeLibraries()