Rename to <haxelib name= optional= />
This commit is contained in:
@@ -706,6 +706,13 @@ class ProjectXMLParser extends HXProject {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
private function parseBool (attribute:String):Bool {
|
||||||
|
|
||||||
|
return substitute (attribute) == "true";
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
private function parseMetaElement (element:Fast):Void {
|
private function parseMetaElement (element:Fast):Void {
|
||||||
|
|
||||||
for (attribute in element.x.attributes ()) {
|
for (attribute in element.x.attributes ()) {
|
||||||
@@ -762,13 +769,6 @@ class ProjectXMLParser extends HXProject {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private function parseBool (attribute:String):Bool {
|
|
||||||
|
|
||||||
return substitute (attribute) == "true";
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
private function parseXML (xml:Fast, section:String, extensionPath:String = ""):Void {
|
private function parseXML (xml:Fast, section:String, extensionPath:String = ""):Void {
|
||||||
|
|
||||||
for (element in xml.elements) {
|
for (element in xml.elements) {
|
||||||
@@ -963,7 +963,7 @@ class ProjectXMLParser extends HXProject {
|
|||||||
|
|
||||||
var name = substitute (element.att.name);
|
var name = substitute (element.att.name);
|
||||||
var version = "";
|
var version = "";
|
||||||
var validate = true;
|
var optional = false;
|
||||||
|
|
||||||
if (element.has.version) {
|
if (element.has.version) {
|
||||||
|
|
||||||
@@ -971,9 +971,9 @@ class ProjectXMLParser extends HXProject {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (element.has.validate) {
|
if (element.has.optional) {
|
||||||
|
|
||||||
validate = parseBool (element.att.validate);
|
optional = parseBool (element.att.optional);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -993,7 +993,7 @@ class ProjectXMLParser extends HXProject {
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
path = PathHelper.getHaxelib (haxelib, validate);
|
path = PathHelper.getHaxelib (haxelib, !optional);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user