T - concrete TaskS - concrete SetupBuilderpublic class OSXCodeSign<T extends AbstractTask,S extends AbstractSetupBuilder> extends AbstractBuilder<T,S>
buildDir, fileResolver, task| Constructor and Description |
|---|
OSXCodeSign(T task,
org.gradle.api.internal.file.FileResolver fileResolver)
Setup up the Sign Tool
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getEntitlements()
Returns entitlements set to use while processing the application
Will only be used for the ".app" files, not the ".pkg" files
|
java.lang.String |
getIdentifier()
Specific Identifier to embed in code (option -i)
|
java.lang.String |
getIdentity()
Return the Identity to sign with
This is the "Common Name" part from the certificate
|
java.lang.String |
getKeychain()
Key chain to use for signing.
|
java.lang.String |
getKeychainPassword()
The password to unlock the keychain
|
OSXNotarize<T,S> |
getNotarization()
Returns the notarization information
|
java.lang.String |
getProductIdentity()
Return the Identity to sign with
This is the "Common Name" part from the certificate
|
boolean |
isDeepsign()
Should be deep signed?
|
boolean |
isHardened()
Returns true if the signing process should add the option to sign hardened
|
boolean |
isIgnoreError()
True if errors during signing should be ignored
|
void |
notarization(org.gradle.api.Action<? super OSXNotarize<? super T,? super S>> action)
Set the notarization information via an action
|
void |
notarization(groovy.lang.Closure<OSXNotarize<T,S>> closure)
Set the notarization information via a closure
|
void |
notarize(java.io.File notarizeFile)
Notarize the given file.
|
void |
setDeepsign(boolean deepsign)
Set deep signing
|
void |
setEntitlements(java.lang.String entitlements)
Set an XML content string used while signing the main application bundle
|
void |
setHardened(boolean hardened)
Set true (default=true) to enabled hardened signing for applications.
|
void |
setIdentifier(java.lang.String identifier)
Specific Identifier to embed in code (option -i)
|
void |
setIdentity(java.lang.String identity)
Set the Identity to sign with.
|
void |
setIgnoreError(boolean ignoreError)
Should errors be ignored during signing
|
void |
setKeychain(java.lang.String keychain)
Set Key chain to use for signing.
|
void |
setKeychainPassword(java.lang.String keychainPassword)
Set the keychain password to unlock the keychain
|
void |
setProductIdentity(java.lang.String identity)
Set the Identity to sign with.
|
void |
signApplication(java.io.File path)
Signed an application package
|
void |
signProduct(java.io.File path)
Signed a product package
|
protected void |
unlockKeychain()
Unlocks the keychain if the password is not null.
|
public OSXCodeSign(T task, org.gradle.api.internal.file.FileResolver fileResolver)
task - taskfileResolver - resolverpublic java.lang.String getIdentity()
public void setIdentity(java.lang.String identity)
identity - to sign withpublic java.lang.String getProductIdentity()
public void setProductIdentity(java.lang.String identity)
identity - to sign withpublic java.lang.String getIdentifier()
public void setIdentifier(java.lang.String identifier)
identifier - to setpublic java.lang.String getKeychain()
public void setKeychain(java.lang.String keychain)
keychain - key chainpublic java.lang.String getKeychainPassword()
public void setKeychainPassword(java.lang.String keychainPassword)
keychainPassword - the keychainPassword to setpublic boolean isIgnoreError()
public void setIgnoreError(boolean ignoreError)
ignoreError - ignoreprotected void unlockKeychain()
public void signApplication(java.io.File path)
path - of the applicationpublic void signProduct(java.io.File path)
path - of the applicationpublic boolean isDeepsign()
public void setDeepsign(boolean deepsign)
deepsign - deep sign?public void setHardened(boolean hardened)
hardened - true if hardening is requiredpublic boolean isHardened()
public java.lang.String getEntitlements()
public void setEntitlements(java.lang.String entitlements)
entitlements - XML content string used while signing the main application bundlepublic void notarize(java.io.File notarizeFile)
notarizeFile - the file to notarizepublic void notarization(groovy.lang.Closure<OSXNotarize<T,S>> closure)
closure - the notarization informationpublic void notarization(org.gradle.api.Action<? super OSXNotarize<? super T,? super S>> action)
action - the notarization informationpublic OSXNotarize<T,S> getNotarization()