Skip to content

Commit

Permalink
Minor fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Valentin Kulichenko committed Sep 3, 2014
1 parent 9cd999c commit d8e0e02
Show file tree
Hide file tree
Showing 3,855 changed files with 59,102 additions and 4,952 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
15 changes: 14 additions & 1 deletion bin/ggrouter.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
::
:: @bat.file.header
:: Copyright (C) GridGain Systems. All Rights Reserved.
::
:: Licensed under the Apache License, Version 2.0 (the "License");
:: you may not use this file except in compliance with the License.
:: You may obtain a copy of the License at

:: http://www.apache.org/licenses/LICENSE-2.0
::
:: Unless required by applicable law or agreed to in writing, software
:: distributed under the License is distributed on an "AS IS" BASIS,
:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
:: See the License for the specific language governing permissions and
:: limitations under the License.

:: _________ _____ __________________ _____
:: __ ____/___________(_)______ /__ ____/______ ____(_)_______
:: _ / __ __ ___/__ / _ __ / _ / __ _ __ `/__ / __ __ \
Expand Down
21 changes: 17 additions & 4 deletions bin/ggrouter.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
#!/bin/bash
#
# @sh.file.header
# Copyright (C) GridGain Systems. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at

# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# _________ _____ __________________ _____
# __ ____/___________(_)______ /__ ____/______ ____(_)_______
# _ / __ __ ___/__ / _ __ / _ / __ _ __ `/__ / __ __ \
Expand All @@ -18,11 +31,11 @@
# Import common functions.
#
if [ "${GRIDGAIN_HOME}" = "" ];
then GRIDGAIN_HOME_TMP="$(dirname "$(cd "$(dirname "$0")"; "pwd")")";GRIDGAIN_HOME_TMP="$(dirname "${GRIDGAIN_HOME_TMP}")"
then GRIDGAIN_HOME_TMP="$(dirname "$(cd "$(dirname "$0")"; "pwd")")";
else GRIDGAIN_HOME_TMP=${GRIDGAIN_HOME};
fi

source "${GRIDGAIN_HOME_TMP}"/os/bin/include/functions.sh
source "${GRIDGAIN_HOME_TMP}"/bin/include/functions.sh

#
# Discover GRIDGAIN_HOME environment variable.
Expand All @@ -43,4 +56,4 @@ export MAIN_CLASS=org.gridgain.client.router.impl.GridRouterCommandLineStartup
#
# Start router service.
#
. "${GRIDGAIN_HOME}/os/bin/ggstart.sh" $@
. "${GRIDGAIN_HOME}/bin/ggstart.sh" $@
33 changes: 23 additions & 10 deletions bin/ggstart.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
::
:: @bat.file.header
:: Copyright (C) GridGain Systems. All Rights Reserved.
::
:: Licensed under the Apache License, Version 2.0 (the "License");
:: you may not use this file except in compliance with the License.
:: You may obtain a copy of the License at

:: http://www.apache.org/licenses/LICENSE-2.0
::
:: Unless required by applicable law or agreed to in writing, software
:: distributed under the License is distributed on an "AS IS" BASIS,
:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
:: See the License for the specific language governing permissions and
:: limitations under the License.

:: _________ _____ __________________ _____
:: __ ____/___________(_)______ /__ ____/______ ____(_)_______
:: _ / __ __ ___/__ / _ __ / _ / __ _ __ `/__ / __ __ \
Expand Down Expand Up @@ -46,7 +59,7 @@ goto error_finish
:: Check GRIDGAIN_HOME.
:checkGridGainHome1
if defined GRIDGAIN_HOME goto checkGridGainHome2
pushd "%~dp0"/../..
pushd "%~dp0"/..
set GRIDGAIN_HOME=%CD%
popd

Expand All @@ -71,7 +84,7 @@ if exist "%GRIDGAIN_HOME%\config" goto checkGridGainHome4
goto error_finish

:checkGridGainHome4
if /i "%GRIDGAIN_HOME%\os\bin\" == "%~dp0" goto setProgName
if /i "%GRIDGAIN_HOME%\bin\" == "%~dp0" goto setProgName
echo %0, WARN: GRIDGAIN_HOME environment variable may be pointing to wrong folder: %GRIDGAIN_HOME%

:setProgName
Expand All @@ -84,20 +97,20 @@ if "%OS%" == "Windows_NT" set PROG_NAME=%~nx0%
:run

:: This is Ant-augmented variable.
set ANT_AUGMENTED_GGJAR=gridgain.jar
set ANT_AUGMENTED_GGJAR=target\gridgain.jar

::
:: Set GRIDGAIN_LIBS
::
call "%GRIDGAIN_HOME%\os\bin\include\setenv.bat"
call "%GRIDGAIN_HOME%\bin\include\setenv.bat"

set CP=%GRIDGAIN_LIBS%

::
:: Parse command line parameters.
::
if not defined DEFAULT_CONFIG set "DEFAULT_CONFIG=%GRIDGAIN_HOME%\os\config\default-config.xml"
call "%GRIDGAIN_HOME%\os\bin\include\parseargs.bat" %*
if not defined DEFAULT_CONFIG set "DEFAULT_CONFIG=%GRIDGAIN_HOME%\config\default-config.xml"
call "%GRIDGAIN_HOME%\bin\include\parseargs.bat" %*
if %ERRORLEVEL% neq 0 (
echo Arguments parsing failed
exit /b %ERRORLEVEL%
Expand Down Expand Up @@ -174,7 +187,7 @@ if "%JVM_OPTS%" == "" (
:: Assertions are disabled by default since version 3.5.
:: If you want to enable them - set 'ENABLE_ASSERTIONS' flag to '1'.
::
set ENABLE_ASSERTIONS=1
set ENABLE_ASSERTIONS=0

::
:: Set '-ea' options if assertions are enabled.
Expand All @@ -197,11 +210,11 @@ if "%MAIN_CLASS%" == "" set MAIN_CLASS=org.gridgain.grid.startup.cmdline.GridCom

if "%INTERACTIVE%" == "1" (
"%JAVA_HOME%\bin\java.exe" %JVM_OPTS% %QUIET% %RESTART_SUCCESS_OPT% %JMX_MON% ^
-DGRIDGAIN_UPDATE_NOTIFIER=false -DGRIDGAIN_HOME="%GRIDGAIN_HOME%" -DGRIDGAIN_PROG_NAME="%PROG_NAME%" %JVM_XOPTS% ^
-DGRIDGAIN_HOME="%GRIDGAIN_HOME%" -DGRIDGAIN_PROG_NAME="%PROG_NAME%" %JVM_XOPTS% ^
-cp "%CP%" %MAIN_CLASS%
) else (
"%JAVA_HOME%\bin\java.exe" %JVM_OPTS% %QUIET% %RESTART_SUCCESS_OPT% %JMX_MON% ^
-DGRIDGAIN_UPDATE_NOTIFIER=false -DGRIDGAIN_HOME="%GRIDGAIN_HOME%" -DGRIDGAIN_PROG_NAME="%PROG_NAME%" %JVM_XOPTS% ^
-DGRIDGAIN_HOME="%GRIDGAIN_HOME%" -DGRIDGAIN_PROG_NAME="%PROG_NAME%" %JVM_XOPTS% ^
-cp "%CP%" %MAIN_CLASS% "%CONFIG%"
)

Expand Down
35 changes: 24 additions & 11 deletions bin/ggstart.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
#!/bin/bash
#
# @sh.file.header
# Copyright (C) GridGain Systems. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at

# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# _________ _____ __________________ _____
# __ ____/___________(_)______ /__ ____/______ ____(_)_______
# _ / __ __ ___/__ / _ __ / _ / __ _ __ `/__ / __ __ \
Expand All @@ -18,11 +31,11 @@
# Import common functions.
#
if [ "${GRIDGAIN_HOME}" = "" ];
then GRIDGAIN_HOME_TMP="$(dirname "$(cd "$(dirname "$0")"; "pwd")")";GRIDGAIN_HOME_TMP="$(dirname "${GRIDGAIN_HOME_TMP}")"
then GRIDGAIN_HOME_TMP="$(dirname "$(cd "$(dirname "$0")"; "pwd")")";
else GRIDGAIN_HOME_TMP=${GRIDGAIN_HOME};
fi

source "${GRIDGAIN_HOME_TMP}"/os/bin/include/functions.sh
source "${GRIDGAIN_HOME_TMP}"/bin/include/functions.sh

#
# Discover path to Java executable and check it's version.
Expand All @@ -35,18 +48,18 @@ checkJava
setGridGainHome

if [ "${DEFAULT_CONFIG}" == "" ]; then
DEFAULT_CONFIG="${GRIDGAIN_HOME}/os/config/default-config.xml"
DEFAULT_CONFIG="${GRIDGAIN_HOME}/config/default-config.xml"
fi

#
# Parse command line parameters.
#
. "${GRIDGAIN_HOME}"/os/bin/include/parseargs.sh
. "${GRIDGAIN_HOME}"/bin/include/parseargs.sh

#
# Set GRIDGAIN_LIBS.
#
. "${GRIDGAIN_HOME}"/os/bin/include/setenv.sh
. "${GRIDGAIN_HOME}"/bin/include/setenv.sh

CP="${GRIDGAIN_LIBS}"

Expand Down Expand Up @@ -104,7 +117,7 @@ fi
# Assertions are disabled by default since version 3.5.
# If you want to enable them - set 'ENABLE_ASSERTIONS' flag to '1'.
#
ENABLE_ASSERTIONS="1"
ENABLE_ASSERTIONS="0"

#
# Set '-ea' options if assertions are enabled.
Expand Down Expand Up @@ -134,25 +147,25 @@ do
case $osname in
Darwin*)
"$JAVA" ${JVM_OPTS} ${QUIET} "${DOCK_OPTS}" "${RESTART_SUCCESS_OPT}" ${JMX_MON} \
-DGRIDGAIN_UPDATE_NOTIFIER=false -DGRIDGAIN_HOME="${GRIDGAIN_HOME}" \
-DGRIDGAIN_HOME="${GRIDGAIN_HOME}" \
-DGRIDGAIN_PROG_NAME="$0" ${JVM_XOPTS} -cp "${CP}" ${MAIN_CLASS}
;;
*)
"$JAVA" ${JVM_OPTS} ${QUIET} "${RESTART_SUCCESS_OPT}" ${JMX_MON} \
-DGRIDGAIN_UPDATE_NOTIFIER=false -DGRIDGAIN_HOME="${GRIDGAIN_HOME}" \
-DGRIDGAIN_HOME="${GRIDGAIN_HOME}" \
-DGRIDGAIN_PROG_NAME="$0" ${JVM_XOPTS} -cp "${CP}" ${MAIN_CLASS}
;;
esac
else
case $osname in
Darwin*)
"$JAVA" ${JVM_OPTS} ${QUIET} "${DOCK_OPTS}" "${RESTART_SUCCESS_OPT}" ${JMX_MON} \
-DGRIDGAIN_UPDATE_NOTIFIER=false -DGRIDGAIN_HOME="${GRIDGAIN_HOME}" \
-DGRIDGAIN_HOME="${GRIDGAIN_HOME}" \
-DGRIDGAIN_PROG_NAME="$0" ${JVM_XOPTS} -cp "${CP}" ${MAIN_CLASS} "${CONFIG}"
;;
*)
"$JAVA" ${JVM_OPTS} ${QUIET} "${RESTART_SUCCESS_OPT}" ${JMX_MON} \
-DGRIDGAIN_UPDATE_NOTIFIER=false -DGRIDGAIN_HOME="${GRIDGAIN_HOME}" \
-DGRIDGAIN_HOME="${GRIDGAIN_HOME}" \
-DGRIDGAIN_PROG_NAME="$0" ${JVM_XOPTS} -cp "${CP}" ${MAIN_CLASS} "${CONFIG}"
;;
esac
Expand Down
27 changes: 20 additions & 7 deletions bin/ggvisorcmd.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
::
:: @bat.file.header
:: Copyright (C) GridGain Systems. All Rights Reserved.
::
:: Licensed under the Apache License, Version 2.0 (the "License");
:: you may not use this file except in compliance with the License.
:: You may obtain a copy of the License at

:: http://www.apache.org/licenses/LICENSE-2.0
::
:: Unless required by applicable law or agreed to in writing, software
:: distributed under the License is distributed on an "AS IS" BASIS,
:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
:: See the License for the specific language governing permissions and
:: limitations under the License.

:: _________ _____ __________________ _____
:: __ ____/___________(_)______ /__ ____/______ ____(_)_______
:: _ / __ __ ___/__ / _ __ / _ / __ _ __ `/__ / __ __ \
Expand Down Expand Up @@ -42,7 +55,7 @@ goto error_finish
:: Check GRIDGAIN_HOME.
:checkGridGainHome1
if not "%GRIDGAIN_HOME%" == "" goto checkGridGainHome2
pushd "%~dp0"/../..
pushd "%~dp0"/..
set GRIDGAIN_HOME=%CD%
popd

Expand All @@ -67,25 +80,25 @@ if exist "%GRIDGAIN_HOME%\config" goto checkGridGainHome4
goto error_finish

:checkGridGainHome4
if /i "%GRIDGAIN_HOME%\os\bin\" == "%~dp0" goto run
if /i "%GRIDGAIN_HOME%\bin\" == "%~dp0" goto run
echo %0, WARN: GRIDGAIN_HOME environment variable may be pointing to wrong folder: %GRIDGAIN_HOME%

:run

:: This is Ant-augmented variable.
set ANT_AUGMENTED_GGJAR=gridgain.jar
set ANT_AUGMENTED_GGJAR=target\gridgain.jar

::
:: Set GRIDGAIN_LIBS
::
call "%GRIDGAIN_HOME%\os\bin\include\setenv.bat"
call "%GRIDGAIN_HOME%\bin\include\setenv.bat"

set CP=%GRIDGAIN_LIBS%;%GRIDGAIN_HOME%\bin\include\visorcmd\*

::
:: Parse command line parameters.
::
call "%GRIDGAIN_HOME%\os\bin\include\parseargs.bat" %*
call "%GRIDGAIN_HOME%\bin\include\parseargs.bat" %*
if %ERRORLEVEL% neq 0 (
echo Arguments parsing failed
exit /b %ERRORLEVEL%
Expand Down Expand Up @@ -113,7 +126,7 @@ if "%JVM_OPTS_VISOR%" == "" set JVM_OPTS_VISOR=-Xms1g -Xmx1g -XX:MaxPermSize=128
:: Assertions are disabled by default since version 3.5.
:: If you want to enable them - set 'ENABLE_ASSERTIONS' flag to '1'.
::
set ENABLE_ASSERTIONS=1
set ENABLE_ASSERTIONS=0

::
:: Set '-ea' options if assertions are enabled.
Expand Down
29 changes: 21 additions & 8 deletions bin/ggvisorcmd.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
#!/bin/bash
#
# @sh.file.header
# Copyright (C) GridGain Systems. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at

# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# _________ _____ __________________ _____
# __ ____/___________(_)______ /__ ____/______ ____(_)_______
# _ / __ __ ___/__ / _ __ / _ / __ _ __ `/__ / __ __ \
Expand All @@ -16,11 +29,11 @@
# Import common functions.
#
if [ "${GRIDGAIN_HOME}" = "" ];
then GRIDGAIN_HOME_TMP="$(dirname "$(cd "$(dirname "$0")"; "pwd")")";GRIDGAIN_HOME_TMP="$(dirname "${GRIDGAIN_HOME_TMP}")"
then GRIDGAIN_HOME_TMP="$(dirname "$(cd "$(dirname "$0")"; "pwd")")";
else GRIDGAIN_HOME_TMP=${GRIDGAIN_HOME};
fi

source "${GRIDGAIN_HOME_TMP}"/os/bin/include/functions.sh
source "${GRIDGAIN_HOME_TMP}"/bin/include/functions.sh

#
# Discover path to Java executable and check it's version.
Expand All @@ -35,12 +48,12 @@ setGridGainHome
#
# Parse command line parameters.
#
. "${GRIDGAIN_HOME}"/os/bin/include/parseargs.sh
. "${GRIDGAIN_HOME}"/bin/include/parseargs.sh

#
# Set GRIDGAIN_LIBS.
#
. "${GRIDGAIN_HOME}"/os/bin/include/setenv.sh
. "${GRIDGAIN_HOME}"/bin/include/setenv.sh

CP="${GRIDGAIN_LIBS}${SEP}${GRIDGAIN_HOME}/bin/include/visorcmd/*"

Expand All @@ -67,7 +80,7 @@ fi
# Assertions are disabled by default since version 3.5.
# If you want to enable them - set 'ENABLE_ASSERTIONS' flag to '1'.
#
ENABLE_ASSERTIONS="1"
ENABLE_ASSERTIONS="0"

#
# Set '-ea' options if assertions are enabled.
Expand Down Expand Up @@ -99,12 +112,12 @@ trap restoreSttySettings INT
case $osname in
Darwin*)
"$JAVA" ${JVM_OPTS} ${QUIET} "${DOCK_OPTS}" \
-DGRIDGAIN_UPDATE_NOTIFIER=false -DGRIDGAIN_HOME="${GRIDGAIN_HOME}" -DGRIDGAIN_PROG_NAME="$0" \
-DGRIDGAIN_HOME="${GRIDGAIN_HOME}" -DGRIDGAIN_PROG_NAME="$0" \
-DGRIDGAIN_DEPLOYMENT_MODE_OVERRIDE=ISOLATED ${JVM_XOPTS} -cp "${CP}" \
org.gridgain.visor.commands.VisorConsole
;;
*)
"$JAVA" ${JVM_OPTS} ${QUIET} -DGRIDGAIN_UPDATE_NOTIFIER=false \
"$JAVA" ${JVM_OPTS} ${QUIET} \
-DGRIDGAIN_HOME="${GRIDGAIN_HOME}" -DGRIDGAIN_PROG_NAME="$0" -DGRIDGAIN_DEPLOYMENT_MODE_OVERRIDE=ISOLATED \
${JVM_XOPTS} -cp "${CP}" \
org.gridgain.visor.commands.VisorConsole
Expand Down
Loading

0 comments on commit d8e0e02

Please sign in to comment.