From a093d456c64c03c69cda44890410abf6de3e46a6 Mon Sep 17 00:00:00 2001 From: Joshua Granick Date: Fri, 3 Apr 2015 17:05:23 -0700 Subject: [PATCH] Rebuild tweak --- tools/CommandLineTools.hx | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/tools/CommandLineTools.hx b/tools/CommandLineTools.hx index 92ceacf94..fdaee3700 100644 --- a/tools/CommandLineTools.hx +++ b/tools/CommandLineTools.hx @@ -136,7 +136,15 @@ class CommandLineTools { if (words.length < 2) { - words.unshift ("lime"); + if (targetFlags.exists ("openfl")) { + + words.unshift ("openfl"); + + } else { + + words.unshift ("lime"); + + } } @@ -252,6 +260,10 @@ class CommandLineTools { project = new HXProject (); project.config.set ("project.rebuild.path", PathHelper.combine (PathHelper.getHaxelib (haxelib), "project")); + } else { + + project.config.set ("project.rebuild.path", PathHelper.combine (PathHelper.getHaxelib (haxelib), project.config.get ("project.rebuild.path"))); + } } else {