Merge Aether tools

This commit is contained in:
Joshua Granick
2014-09-30 17:41:39 -07:00
parent f1e3707ad9
commit 540aa48c39
272 changed files with 35574 additions and 127 deletions

View File

@@ -0,0 +1,46 @@
package helpers;
class AntHelper {
private static var ant:String;
public static function initialize (defines:Hash <String>):Void {
if (defines.exists ("ANDROID_SDK")) {
Sys.putEnv ("ANDROID_SDK", defines.get ("ANDROID_SDK"));
}
ant = defines.get ("ANT_HOME");
if (ant == null || ant == "") {
ant = "ant";
} else {
ant += "/bin/ant";
}
}
public static function run (workingDirectory:String, commands:Array <String>):Void {
if (commands == null) {
commands = [];
}
ProcessHelper.runCommand (workingDirectory, ant, commands);
}
}