Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 28EC5200BAE for ; Fri, 14 Oct 2016 07:51:31 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 275A6160AF6; Fri, 14 Oct 2016 05:51:31 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 6E7F9160AE4 for ; Fri, 14 Oct 2016 07:51:30 +0200 (CEST) Received: (qmail 28093 invoked by uid 500); 14 Oct 2016 05:51:29 -0000 Mailing-List: contact commits-help@eagle.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@eagle.incubator.apache.org Delivered-To: mailing list commits@eagle.incubator.apache.org Received: (qmail 28084 invoked by uid 99); 14 Oct 2016 05:51:29 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Oct 2016 05:51:29 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 3385F1A01DD for ; Fri, 14 Oct 2016 05:51:29 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -6.219 X-Spam-Level: X-Spam-Status: No, score=-6.219 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 1r7DWXbpuTFj for ; Fri, 14 Oct 2016 05:51:27 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id 13D035F396 for ; Fri, 14 Oct 2016 05:51:25 +0000 (UTC) Received: (qmail 28054 invoked by uid 99); 14 Oct 2016 05:51:25 -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; Fri, 14 Oct 2016 05:51:25 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 0D05FDFF03; Fri, 14 Oct 2016 05:51:25 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: jilin@apache.org To: commits@eagle.incubator.apache.org Message-Id: <37fdbe8f4912442ba40729a961daa8c4@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: incubator-eagle git commit: [EAGLE-612] Use LOCAL when app provider is from class file and use Cluster when from jar file Date: Fri, 14 Oct 2016 05:51:25 +0000 (UTC) archived-at: Fri, 14 Oct 2016 05:51:31 -0000 Repository: incubator-eagle Updated Branches: refs/heads/master 649adb1ae -> f3204bcaf [EAGLE-612] Use LOCAL when app provider is from class file and use Cluster when from jar file When jarFile is jar file and use CLUSTER by default. (end with *.jar) When jarFile is class and use LOCAL by default. (end with *.class) Author: zombieJ Closes #506 from zombieJ/EAGLE-612. Project: http://git-wip-us.apache.org/repos/asf/incubator-eagle/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-eagle/commit/f3204bca Tree: http://git-wip-us.apache.org/repos/asf/incubator-eagle/tree/f3204bca Diff: http://git-wip-us.apache.org/repos/asf/incubator-eagle/diff/f3204bca Branch: refs/heads/master Commit: f3204bcafc345edc9b600715776af77d0d1f4496 Parents: 649adb1 Author: zombieJ Authored: Fri Oct 14 13:51:10 2016 +0800 Committer: zombieJ Committed: Fri Oct 14 13:51:10 2016 +0800 ---------------------------------------------------------------------- eagle-dev/merge-eagle-pr.py | 2 ++ .../main/webapp/app/dev/partials/integration/site.html | 2 +- .../webapp/app/dev/public/js/ctrls/integrationCtrl.js | 10 ++++++++++ 3 files changed, 13 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/f3204bca/eagle-dev/merge-eagle-pr.py ---------------------------------------------------------------------- diff --git a/eagle-dev/merge-eagle-pr.py b/eagle-dev/merge-eagle-pr.py index 01661d5..9243265 100755 --- a/eagle-dev/merge-eagle-pr.py +++ b/eagle-dev/merge-eagle-pr.py @@ -105,9 +105,11 @@ def clean_up(): print "Restoring head pointer to %s" % original_head run_cmd("git checkout %s" % original_head) + ansi_escape = re.compile(r'\x1b[^m]*m') branches = run_cmd("git branch").replace(" ", "").split("\n") for branch in filter(lambda x: x.startswith(BRANCH_PREFIX), branches): + branch = ansi_escape.sub('', branch) print "Deleting local branch %s" % branch run_cmd("git branch -D %s" % branch) http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/f3204bca/eagle-server/src/main/webapp/app/dev/partials/integration/site.html ---------------------------------------------------------------------- diff --git a/eagle-server/src/main/webapp/app/dev/partials/integration/site.html b/eagle-server/src/main/webapp/app/dev/partials/integration/site.html index e320c48..98e7d97 100644 --- a/eagle-server/src/main/webapp/app/dev/partials/integration/site.html +++ b/eagle-server/src/main/webapp/app/dev/partials/integration/site.html @@ -237,7 +237,7 @@
- +
http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/f3204bca/eagle-server/src/main/webapp/app/dev/public/js/ctrls/integrationCtrl.js ---------------------------------------------------------------------- diff --git a/eagle-server/src/main/webapp/app/dev/public/js/ctrls/integrationCtrl.js b/eagle-server/src/main/webapp/app/dev/public/js/ctrls/integrationCtrl.js index ca6c92e..e53a11e 100644 --- a/eagle-server/src/main/webapp/app/dev/public/js/ctrls/integrationCtrl.js +++ b/eagle-server/src/main/webapp/app/dev/public/js/ctrls/integrationCtrl.js @@ -188,6 +188,15 @@ return pass; }; + $scope.checkJarPath = function () { + var jarPath = ($scope.tmpApp || {}).jarPath; + if(/\.jar$/.test(jarPath)) { + $scope.tmpApp.mode = "CLUSTER"; + } else if(/\.class/.test(jarPath)) { + $scope.tmpApp.mode = "LOCAL"; + } + }; + $scope.installAppConfirm = function () { $scope.installLock = true; @@ -236,6 +245,7 @@ siteId: $scope.site.siteId, appType: application.type }); + $scope.checkJarPath(); } var fields = $scope.tmpAppConfigFields = common.getValueByPath(application, "configuration.properties", []).concat();