David BRASSELY 2013-07-02 14:28:45 +02:00
commit 635d986ef0
2 changed files with 95 additions and 1 deletions

View File

@ -0,0 +1,94 @@
:: ***************************************************************
:: The contents of this file are subject to the terms
:: of the Common Development and Distribution License
:: (the "License"). You may not use this file except
:: in compliance with the License.
:: You can obtain a copy of the license at
:: www.opensource.org/licenses/CDDL-1.0.
:: See the License for the specific language governing
:: permissions and limitations under the License.
::
:: When distributing Covered Code, include this CDDL
:: HEADER in each file and include the License file at
:: https://open-esb.dev.java.net/public/CDDLv1.0.html.
:: If applicable add the following below this CDDL HEADER,
:: with the fields enclosed by brackets "[]" replaced with
:: your own identifying information: Portions Copyright
:: [year] [name of copyright owner]
:: Copyright OpenESB Community 2013 .
:: ******************************************************************************
:: ******************** Read me first *******************************************
:: This batch file starts OpenESB for standalone JVM.
:: Two variables JAVA_HOME and OPENESB_HOME must be set before starting.
:: JAVA_HOME must be defined before starting OpenESB
:: OPENESB_HOME is the directory where openESB is installed.
::
:: Note: we suppose that openesb.bat is in the directory %OPENESB_HOME%\bin
:: if it is not the case, please modify the .bat file
:: ******************** END Read me first *******************************************
@echo off
echo **************************************************
echo *
echo * Welcome to OpenESB SE for Windows
echo * OpenESB starting in process ...
echo *
echo * OpenESB Community: www.open-esb.net
echo **************************************************
echo.
::****************** set Java Home ***********************
:: check if Java home value has been defined
::********************************************************
IF "%JAVA_HOME%"=="" GOTO nojavahome
echo JAVA_HOME is set with the value: %JAVA_HOME%
:: Change directory location and disk
::We suppose openESB.bat is in the directory %OPENESB_HOME\BIN
:: Change to the current disk to %OPENESB_HOME% disk
%~d0
:: Change to the %OPENESB_HOME% directory
CD %~p0
:: set up OPENESB_HOME
pushd ..
set OPENESB_HOME=%cd%
echo OPENESB_HOME is set with the value: %OPENESB_HOME%
:: change to OpenESB home directory
cd %OPENESB_HOME%
:: Start OpenESB in a new Dos window
START /MIN "OpenESB SE" %JAVA_HOME%\bin\java -jar %OPENESB_HOME%\lib\openesb-standalone-bootstrap.jar
echo.
echo.
echo **************************************************
echo *
echo * OpenESB SE Windows is opening in a new console
echo *
echo * Please check the logs to get OpenESB JMX Port
echo *
echo * Documentation and forum on www.open-esb.net
echo * or contact@open-esb.net
echo *
echo **************************************************
GOTO endbatch
:nojavahome
echo.
echo **************************************************
echo *
echo * WARNING ...
echo * JAVA_HOME must be set before starting OpenESB
echo * Please check Java documentation to do it
echo *
echo **************************************************
:endbatch

View File

@ -77,7 +77,7 @@ echo ""
# Execute the JVM in the foreground
"$JAVA" $JAVA_OPTS \
-Djava.util.logging.config.file=$OPENESB_HOME/config/logger.properties \
-Dinstall.root=$OPENESB_HOME
-Dinstall.root=$OPENESB_HOME \
-jar "$OPENESB_BOOT_CLASSPATH" \
"$@"
OPENESB_STATUS=$?