ProjectXMLParser: don't require path to be specified in <certificate/> element to create Keystore object (can also be created if type is specified, which allows keystores without paths)
This commit is contained in:
@@ -1670,20 +1670,21 @@ class ProjectXMLParser extends HXProject
|
||||
parseXML(element, "", extensionPath);
|
||||
|
||||
case "certificate":
|
||||
var path = null;
|
||||
|
||||
if (element.has.path)
|
||||
if (element.has.path || element.has.type)
|
||||
{
|
||||
path = element.att.path;
|
||||
}
|
||||
else if (element.has.keystore)
|
||||
{
|
||||
path = element.att.keystore;
|
||||
keystore = new Keystore();
|
||||
}
|
||||
|
||||
if (path != null)
|
||||
if (keystore != null)
|
||||
{
|
||||
keystore = new Keystore(Path.combine(extensionPath, substitute(element.att.path)));
|
||||
if (element.has.path)
|
||||
{
|
||||
keystore.path = Path.combine(extensionPath, substitute(element.att.path));
|
||||
}
|
||||
else if (element.has.keystore)
|
||||
{
|
||||
keystore.path = Path.combine(extensionPath, substitute(element.att.keystore));
|
||||
}
|
||||
|
||||
if (element.has.type)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user