Repository: flex-falcon
Updated Branches:
  refs/heads/develop 87ceb80b4 -> 177ec8e21


- Made the MavenTestAdapter also look into environment variables


Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/a5c91186
Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/a5c91186
Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/a5c91186

Branch: refs/heads/develop
Commit: a5c911861e95090da63ba3c9ef2b33f5bed51528
Parents: 87ceb80
Author: Christofer Dutz <christofer.d...@codecentric.de>
Authored: Thu May 19 10:27:42 2016 +0200
Committer: Christofer Dutz <christofer.d...@codecentric.de>
Committed: Thu May 19 10:27:42 2016 +0200

----------------------------------------------------------------------
 .../src/main/java/org/apache/flex/utils/MavenTestAdapter.java   | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/a5c91186/compiler-build-tools/src/main/java/org/apache/flex/utils/MavenTestAdapter.java
----------------------------------------------------------------------
diff --git 
a/compiler-build-tools/src/main/java/org/apache/flex/utils/MavenTestAdapter.java
 
b/compiler-build-tools/src/main/java/org/apache/flex/utils/MavenTestAdapter.java
index 457249d..81da0c8 100644
--- 
a/compiler-build-tools/src/main/java/org/apache/flex/utils/MavenTestAdapter.java
+++ 
b/compiler-build-tools/src/main/java/org/apache/flex/utils/MavenTestAdapter.java
@@ -75,7 +75,10 @@ public class MavenTestAdapter implements ITestAdapter {
         // TODO: Return a reference to the player debugger executable, 
depending on the current platform.
         String FLASHPLAYER_DEBUGGER = 
System.getProperty("FLASHPLAYER_DEBUGGER", null);
         if(FLASHPLAYER_DEBUGGER == null || FLASHPLAYER_DEBUGGER.length() == 0) 
{
-            throw new RuntimeException("You have to specify the location of 
the flash debug player executable.");
+            FLASHPLAYER_DEBUGGER = System.getenv("FLASHPLAYER_DEBUGGER");
+            if(FLASHPLAYER_DEBUGGER == null || FLASHPLAYER_DEBUGGER.length() 
== 0) {
+                throw new RuntimeException("You have to specify the location 
of the flash debug player executable.");
+            }
         }
         return new File(FLASHPLAYER_DEBUGGER);
         /*return getDependency("com.adobe.flash.runtime", "player-debugger",

Reply via email to