T - the TaskS - the SetupBuilderpublic abstract class AbstractOSXApplicationBuilder<T extends AbstractTask,S extends AbstractSetupBuilder> extends AbstractBuilder<T,S>
buildDir, fileResolver, task| Modifier | Constructor and Description |
|---|---|
protected |
AbstractOSXApplicationBuilder(T task,
S setup,
org.gradle.api.internal.file.FileResolver fileResolver)
Setup this builder.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addPlistProperty(java.io.File plist,
java.lang.String property,
java.lang.String type,
java.lang.String value)
Add an entry to a plist file
|
protected void |
addScheme(java.lang.String scheme)
Adds a scheme to the application.
|
protected void |
bundleJre()
Bundle the Java VM if set.
|
protected void |
copyBundleFiles(Application application)
Copy the files defined in the gradle script into their final destination
|
protected void |
deletePlistProperty(java.io.File plist,
java.lang.String property)
Add an entry to a plist file
|
protected void |
finishApplication()
Execute the appbundler, create the final .app file
|
protected AppBundlerTask |
getAppBundler()
Return the current AppBundler.
|
protected java.io.File |
getApplicationIcon()
Returns the icns application icon file
|
protected S |
getSetupBuilder() |
protected void |
prepareApplication(Application application,
boolean isJNLPBuild)
Prepare the basic settings of the application
|
protected void |
setApplicationFilePermissions(java.io.File destination)
Set File permissions to the resulting application
|
protected void |
setDocumentTypes(java.util.List<DocumentType> list)
Set the document types from the list
|
protected void |
setPlistProperty(java.io.File plist,
java.lang.String property,
java.lang.String value)
Modify a plist file
|
exec, exec, exec, getTaskprotected void prepareApplication(Application application, boolean isJNLPBuild) throws java.lang.Exception
application - to useisJNLPBuild - indicate that this will be a JNLP applicationjava.lang.Exception - on errorsprotected void finishApplication()
protected void setDocumentTypes(java.util.List<DocumentType> list) throws java.io.IOException
list - of document typesjava.io.IOException - on complications with the iconprotected void addScheme(java.lang.String scheme)
scheme - a scheme to addprotected void bundleJre()
protected java.io.File getApplicationIcon()
throws java.io.IOException
java.io.IOException - when there are errors while getting the fileprotected void setPlistProperty(java.io.File plist,
java.lang.String property,
java.lang.String value)
plist - file to modifyproperty - property to setvalue - of propertyprotected void addPlistProperty(java.io.File plist,
java.lang.String property,
java.lang.String type,
java.lang.String value)
plist - file to modifyproperty - property to settype - of propertyvalue - of propertyprotected void deletePlistProperty(java.io.File plist,
java.lang.String property)
plist - file to modifyproperty - property to setprotected void copyBundleFiles(Application application) throws java.io.IOException
application - the applicationjava.io.IOException - on errorsprotected void setApplicationFilePermissions(java.io.File destination)
throws java.io.IOException
destination - of the files to manipulatejava.io.IOException - on errorsprotected AppBundlerTask getAppBundler()
protected S getSetupBuilder()