Return-Path: X-Original-To: apmail-flex-commits-archive@www.apache.org Delivered-To: apmail-flex-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D0D69197D2 for ; Sat, 19 Mar 2016 17:12:59 +0000 (UTC) Received: (qmail 76328 invoked by uid 500); 19 Mar 2016 17:12:59 -0000 Delivered-To: apmail-flex-commits-archive@flex.apache.org Received: (qmail 76306 invoked by uid 500); 19 Mar 2016 17:12:59 -0000 Mailing-List: contact commits-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list commits@flex.apache.org Received: (qmail 76298 invoked by uid 99); 19 Mar 2016 17:12:59 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 19 Mar 2016 17:12:59 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 3B6C2DFA6C; Sat, 19 Mar 2016 17:12:59 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: cdutz@apache.org To: commits@flex.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: git commit: [flex-falcon] [refs/heads/develop] - Added a check to throw a meaningfull exception if no FLASHPLAYER_DEBUGGER environment variable is set. Date: Sat, 19 Mar 2016 17:12:59 +0000 (UTC) Repository: flex-falcon Updated Branches: refs/heads/develop 63f75cf46 -> 00c0b4153 Added a check to throw a meaningfull exception if no FLASHPLAYER_DEBUGGER environment variable is set. Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/00c0b415 Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/00c0b415 Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/00c0b415 Branch: refs/heads/develop Commit: 00c0b4153eb391450cb6f0bed371d569c87dd675 Parents: 63f75cf Author: Christofer Dutz Authored: Sat Mar 19 18:12:52 2016 +0100 Committer: Christofer Dutz Committed: Sat Mar 19 18:12:52 2016 +0100 ---------------------------------------------------------------------- compiler.tests/src/org/apache/flex/utils/MavenTestAdapter.java | 3 +++ 1 file changed, 3 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/00c0b415/compiler.tests/src/org/apache/flex/utils/MavenTestAdapter.java ---------------------------------------------------------------------- diff --git a/compiler.tests/src/org/apache/flex/utils/MavenTestAdapter.java b/compiler.tests/src/org/apache/flex/utils/MavenTestAdapter.java index 9e87e3b..457249d 100644 --- a/compiler.tests/src/org/apache/flex/utils/MavenTestAdapter.java +++ b/compiler.tests/src/org/apache/flex/utils/MavenTestAdapter.java @@ -74,6 +74,9 @@ public class MavenTestAdapter implements ITestAdapter { // TODO: If the archive isn't unpacked, unpack it. // 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."); + } return new File(FLASHPLAYER_DEBUGGER); /*return getDependency("com.adobe.flash.runtime", "player-debugger", System.getProperty("flashVersion"), "zip", null);*/