Add hxProject.includeXML
This commit is contained in:
@@ -18,6 +18,7 @@ import sys.FileSystem;
|
|||||||
import sys.io.File;
|
import sys.io.File;
|
||||||
|
|
||||||
#if (lime && !lime_legacy)
|
#if (lime && !lime_legacy)
|
||||||
|
import haxe.xml.Fast;
|
||||||
import lime.text.Font;
|
import lime.text.Font;
|
||||||
import lime.tools.helpers.FileHelper;
|
import lime.tools.helpers.FileHelper;
|
||||||
import lime.tools.helpers.ProcessHelper;
|
import lime.tools.helpers.ProcessHelper;
|
||||||
@@ -619,6 +620,19 @@ class HXProject {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#if (lime && !lime_legacy)
|
||||||
|
|
||||||
|
public function includeXML (xml:String):Void {
|
||||||
|
|
||||||
|
var projectXML = new ProjectXMLParser ();
|
||||||
|
@:privateAccess projectXML.parseXML (new Fast (Xml.parse (xml).firstElement ()), "");
|
||||||
|
merge (projectXML);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#end
|
||||||
|
|
||||||
|
|
||||||
private static function initialize ():Void {
|
private static function initialize ():Void {
|
||||||
|
|
||||||
if (!initialized) {
|
if (!initialized) {
|
||||||
|
|||||||
Reference in New Issue
Block a user