Return-Path: X-Original-To: apmail-karaf-commits-archive@minotaur.apache.org Delivered-To: apmail-karaf-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 723DF18958 for ; Wed, 2 Mar 2016 07:51:40 +0000 (UTC) Received: (qmail 73245 invoked by uid 500); 2 Mar 2016 07:51:40 -0000 Delivered-To: apmail-karaf-commits-archive@karaf.apache.org Received: (qmail 73215 invoked by uid 500); 2 Mar 2016 07:51:40 -0000 Mailing-List: contact commits-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list commits@karaf.apache.org Received: (qmail 73206 invoked by uid 99); 2 Mar 2016 07:51:40 -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; Wed, 02 Mar 2016 07:51:40 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 4082EE0231; Wed, 2 Mar 2016 07:51:40 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: acosentino@apache.org To: commits@karaf.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: karaf git commit: [KARAF-4373] Karaf.bat script produces "The syntax of the command is incorrect" even if it is working properly Date: Wed, 2 Mar 2016 07:51:40 +0000 (UTC) Repository: karaf Updated Branches: refs/heads/karaf-4.0.x 799e50c54 -> 721eafba6 [KARAF-4373] Karaf.bat script produces "The syntax of the command is incorrect" even if it is working properly Project: http://git-wip-us.apache.org/repos/asf/karaf/repo Commit: http://git-wip-us.apache.org/repos/asf/karaf/commit/721eafba Tree: http://git-wip-us.apache.org/repos/asf/karaf/tree/721eafba Diff: http://git-wip-us.apache.org/repos/asf/karaf/diff/721eafba Branch: refs/heads/karaf-4.0.x Commit: 721eafba6f6fb382b50b67f0baf06421e7666b81 Parents: 799e50c Author: Andrea Cosentino Authored: Wed Mar 2 08:49:31 2016 +0100 Committer: Andrea Cosentino Committed: Wed Mar 2 08:51:06 2016 +0100 ---------------------------------------------------------------------- .../base/src/main/resources/resources/bin/karaf.bat | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/karaf/blob/721eafba/assemblies/features/base/src/main/resources/resources/bin/karaf.bat ---------------------------------------------------------------------- diff --git a/assemblies/features/base/src/main/resources/resources/bin/karaf.bat b/assemblies/features/base/src/main/resources/resources/bin/karaf.bat index 611e5d0..3539949 100644 --- a/assemblies/features/base/src/main/resources/resources/bin/karaf.bat +++ b/assemblies/features/base/src/main/resources/resources/bin/karaf.bat @@ -400,11 +400,12 @@ if "%KARAF_PROFILER%" == "" goto :RUN if ERRORLEVEL 10 ( echo Restarting ... %KARAF_DAEMON% restart! - ) - ) else ( - if ERRORLEVEL 10 ( - echo Restarting JVM... - goto EXECUTE + ) + ) else ( + if ERRORLEVEL 10 ( + echo Restarting JVM... + goto EXECUTE + ) ) )