Fix -args
This commit is contained in:
@@ -557,7 +557,7 @@ class CommandLineTools {
|
|||||||
|
|
||||||
if (platform != null) {
|
if (platform != null) {
|
||||||
|
|
||||||
platform.execute ();
|
platform.execute (additionalArguments);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
|||||||
@@ -248,7 +248,7 @@ class LinuxPlatform extends PlatformTarget {
|
|||||||
|
|
||||||
public override function run ():Void {
|
public override function run ():Void {
|
||||||
|
|
||||||
var arguments = [];
|
var arguments = additionalArguments.copy ();
|
||||||
|
|
||||||
if (project.target == PlatformHelper.hostPlatform) {
|
if (project.target == PlatformHelper.hostPlatform) {
|
||||||
|
|
||||||
|
|||||||
@@ -212,7 +212,7 @@ class MacPlatform extends PlatformTarget {
|
|||||||
|
|
||||||
public override function run ():Void {
|
public override function run ():Void {
|
||||||
|
|
||||||
var arguments = [];
|
var arguments = additionalArguments.copy ();
|
||||||
|
|
||||||
if (project.target == PlatformHelper.hostPlatform) {
|
if (project.target == PlatformHelper.hostPlatform) {
|
||||||
|
|
||||||
|
|||||||
@@ -197,7 +197,7 @@ class WindowsPlatform extends PlatformTarget {
|
|||||||
|
|
||||||
public override function run ():Void {
|
public override function run ():Void {
|
||||||
|
|
||||||
var arguments = [];
|
var arguments = additionalArguments.copy ();
|
||||||
|
|
||||||
if (project.target == PlatformHelper.hostPlatform) {
|
if (project.target == PlatformHelper.hostPlatform) {
|
||||||
|
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ import helpers.LogHelper;
|
|||||||
class PlatformTarget {
|
class PlatformTarget {
|
||||||
|
|
||||||
|
|
||||||
|
public var additionalArguments:Array <String>;
|
||||||
public var command:String;
|
public var command:String;
|
||||||
public var project:HXProject;
|
public var project:HXProject;
|
||||||
public var targetFlags:Map <String, String>;
|
public var targetFlags:Map <String, String>;
|
||||||
@@ -24,10 +25,11 @@ class PlatformTarget {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public function execute ():Void {
|
public function execute (additionalArguments:Array <String>):Void {
|
||||||
|
|
||||||
LogHelper.info ("", LogHelper.accentColor + "Using target platform: " + Std.string (project.target).toUpperCase () + LogHelper.resetColor);
|
LogHelper.info ("", LogHelper.accentColor + "Using target platform: " + Std.string (project.target).toUpperCase () + LogHelper.resetColor);
|
||||||
|
|
||||||
|
this.additionalArguments = additionalArguments;
|
||||||
var metaFields = Meta.getFields (Type.getClass (this));
|
var metaFields = Meta.getFields (Type.getClass (this));
|
||||||
|
|
||||||
if (!Reflect.hasField (metaFields.display, "ignore") && (command == "display")) {
|
if (!Reflect.hasField (metaFields.display, "ignore") && (command == "display")) {
|
||||||
|
|||||||
Reference in New Issue
Block a user