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:
Josh Tynjala
2022-12-30 22:05:59 -08:00
parent 7d7f6fbbd3
commit 468c193330

View File

@@ -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)
{