class MacAppBundlePluginExtension extends java.lang.Object
| Type | Name and description |
|---|---|
java.lang.String |
appFolderX |
java.lang.String |
appFolderY |
java.lang.String |
appIconX |
java.lang.String |
appIconY |
java.lang.String |
appNameThe name of the application, without the .app extension. |
java.lang.String |
appOutputDirThe output directory for building the app, relative to the build directory. |
java.lang.String |
appStyleThe style of .app created. |
java.util.List |
argumentsList of arguments to pass to the application. |
java.lang.String |
backgroundImageThe background image for the DMG. |
java.lang.String |
backgroundImageHeight |
java.lang.String |
backgroundImageWidth |
java.lang.String |
backgroundScriptAn AppleScript script for setting the background image of the dmg. |
boolean |
bundleAllowMixedLocalizationsBundleAllowMixedLocalizations, default is true |
java.lang.String |
bundleDevelopmentRegionThe development region. |
java.lang.String |
bundleExecutableThe name of the executable run by the bundle. |
java.util.Map |
bundleExtrasMap of extra bundle key-value pairs to be put in the top level dict inside Info.plist. |
java.lang.String |
bundleIdentifierThe CFBundleIdentifier, defaults to mainClassName. |
java.lang.String |
bundleInfoDictionaryVersionBundleInfoDictionaryVersion, default is '6.0' |
boolean |
bundleJREWhether or not to bundle the JRE in the .app. |
java.lang.String |
bundlePackageTypeBundlePackageType, default is 'APPL' |
java.lang.String |
certIdentityfor codesign |
java.lang.String |
codeSignCmdfor codesign |
boolean |
codeSignDeepcodesign use --deep |
java.lang.String |
creatorCodeCreator code, issued by Apple. |
java.lang.String |
dmgNameThe base name of the dmg file, without the .dmg extension. |
java.lang.String |
dmgOutputDirThe output directory for building the dmg, relative to the build directory. |
boolean |
highResolutionCapableNSHighResolutionCapable for retina display, default is true |
java.lang.String |
iconIcon for this application, probably needs to be a '.icns' file. |
java.lang.String |
jarSubdirsubdir of the Contents dir to put the jar files. |
java.lang.String |
jarTaskThe task that generates the jar, defaults to JavaPlugin.JAR_TASK_NAME. |
java.util.Map |
javaExtrasMap of extra java key-value pairs to be put in JVMOptions for Oracle and put in the java level dict inside Info.plist for Apple. |
java.util.Map |
javaPropertiesMap of properties to be put as -D options for Oracle Java an in the Properties dict inside the Java dict for Apple. |
java.lang.String |
jreHomeDirectory from which to copy the JRE. |
java.lang.String |
jvmVersionThe JVM version needed. |
java.lang.String |
keyChainfor codesign |
java.lang.String |
mainClassNameThe initial class to start the application, must contain a public static void main method. |
java.lang.String |
runtimeConfigurationNameThe configuration used to copy jars into the app. |
java.lang.String |
setFileCmdThe command SetFile, usually located in /usr/bin, but might be in /Developer/Tools, that sets the magic bit on a .app directory to turn it into a OSX Application. |
java.lang.String |
volumeNameThe name of the volume. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
configureDefaults(org.gradle.api.Project project)configures default values that depend on values set in the build file like version, and so must be done late in the run order, after the build script is evaluated but before any task in the plugin is run |
|
boolean |
equals(java.lang.Object obj) |
|
java.lang.String |
getJREDirName() |
|
java.lang.String |
getJreHome() |
|
int |
hashCode() |
|
java.lang.Object |
setAppStyle(java.lang.String val) |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
The name of the application, without the .app extension. Defaults to project.name
The output directory for building the app, relative to the build directory.
The style of .app created. Use 'Apple' for the original Apple Java in OSX 10.8 and earlier. Starting in OSX 10.9 there can be either Apple Java (1.6) or Oracle Java (1.7) and the internals of the Info.plist and the executable stub are different. Setting this will also change the bundleExecutable and the jarSubdir as both of these are different in Oracle versus Apple styles. The default is 'Oracle'. More information on the new Oracle style .app can be found here.
List of arguments to pass to the application. Only used for Oracle-style apps.
The background image for the DMG.
An AppleScript script for setting the background image of the dmg. see http://asmaloney.com/2013/07/howto/packaging-a-mac-os-x-application-using-a-dmg/
BundleAllowMixedLocalizations, default is true
The development region. Default is 'English'.
The name of the executable run by the bundle. Default is 'JavaAppLauncher'. This is also set when setting the style to Oracle or Apple.
Map of extra bundle key-value pairs to be put in the top level dict inside Info.plist. Usage should be like bundleExtras.put("mykey", "myvalue")
The CFBundleIdentifier, defaults to mainClassName.
BundleInfoDictionaryVersion, default is '6.0'
Whether or not to bundle the JRE in the .app. Only used if the app style is Oracle. Defaults to false.
BundlePackageType, default is 'APPL'
for codesign
for codesign
codesign use --deep
Creator code, issued by Apple. Four question marks is the default if no code has been issued.
The base name of the dmg file, without the .dmg extension. Defaults to project.name-project.version
The output directory for building the dmg, relative to the build directory.
NSHighResolutionCapable for retina display, default is true
Icon for this application, probably needs to be a '.icns' file. Defaults to the Apple GenericApp.icns.
subdir of the Contents dir to put the jar files. Defaults to Java for Oracle and to Resources/Java for Apple.
The task that generates the jar, defaults to JavaPlugin.JAR_TASK_NAME.
Map of extra java key-value pairs to be put in JVMOptions for Oracle and put in the java level dict inside Info.plist for Apple. Usage should be like javaExtras.put("mykey", "myvalue")
Map of properties to be put as -D options for Oracle Java an in the Properties dict inside the Java dict for Apple. Usage should be like javaProperties.put("apple.laf.useScreenMenuBar", "true")
Directory from which to copy the JRE. Generally this will be the same as $JAVA_HOME or the result of /usr/libexec/java_home. Note that to be compatible with the appbundler utility from Oracle, this is usually the Contents/Home subdirectory of the JDK install. If bundleJRE is true, but jreHome is null, it will be set to the output of /usr/libexec/java_home, which should be correct in most cases. For example: /Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home
The JVM version needed. Can append a + to set a minimum.
for codesign
The initial class to start the application, must contain a public static void main method.
The configuration used to copy jars into the app. Default is runtime, which means use the runtime configuration from the java plugin.
The command SetFile, usually located in /usr/bin, but might be in /Developer/Tools, that sets the magic bit on a .app directory to turn it into a OSX Application. This does not seem to be required to generate a recognizable .app application.
The name of the volume. Defaults to project.name-project.version
configures default values that depend on values set in the build file like version, and so must be done late in the run order, after the build script is evaluated but before any task in the plugin is run