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);
|
parseXML(element, "", extensionPath);
|
||||||
|
|
||||||
case "certificate":
|
case "certificate":
|
||||||
var path = null;
|
if (element.has.path || element.has.type)
|
||||||
|
|
||||||
if (element.has.path)
|
|
||||||
{
|
{
|
||||||
path = element.att.path;
|
keystore = new Keystore();
|
||||||
}
|
|
||||||
else if (element.has.keystore)
|
|
||||||
{
|
|
||||||
path = element.att.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)
|
if (element.has.type)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user