CB-8548 Allow ant-style property key for key.store.type

Other properties already allowed ant-style. This one was missed.
This commit is contained in:
Andrew Grieve 2015-03-31 20:42:26 -04:00
parent 1aaba440b5
commit 97718a0a25

View File

@ -286,17 +286,15 @@ def addSigningProps(propsFilePath, signingConfig) {
signingConfig.keyPassword = props.get('keyPassword', props.get('key.alias.password', signingConfig.keyPassword))
signingConfig.storeFile = storeFile
signingConfig.storePassword = props.get('storePassword', props.get('key.store.password', signingConfig.storePassword))
def storeType = props.get('storeType')
def storeType = props.get('storeType', props.get('key.store.type', signingConfig.storeType))
if (!storeType) {
def filename = storeFile.getName().toLowerCase();
if (filename.endsWith('.p12') || filename.endsWith('.pfx')) {
storeType = 'pkcs12'
}
}
if (storeType) {
signingConfig.storeType = storeType
}
}
for (def func : cdvPluginPostBuildExtras) {
func()