diff --git a/openesb-standalone-packaging/src/main/resources/bin/cli.cmd b/openesb-standalone-packaging/src/main/resources/bin/cli.cmd new file mode 100755 index 0000000..3a7692d --- /dev/null +++ b/openesb-standalone-packaging/src/main/resources/bin/cli.cmd @@ -0,0 +1,21 @@ +@echo off +COLOR F8 +prompt OE-ADMIN$Q$G +mode con:cols=180 lines=2500 + +doskey oeadmin=java -jar %OPENESB_HOME%\lib\openesb-oeadmin.jar $* + +echo ********************************************************************************************** +echo * +echo * Welcome to OpenESB Command Line Interface OEADMIN +echo * +echo * OEADMIN is the OpenESB command line interface. OEAdmin utility can be used to perform any +echo * OpenESB administrative task to install and manage OE components and applications +echo * +echo * -Type oeadmin + a commande to execute the command +echo * -Type oeadmin to get the command list +echo * -Type exit to leave this window +echo * +echo * Mode detail on www.open-esb.net +echo ********************************************************************************************** +echo. diff --git a/openesb-standalone-packaging/src/main/resources/bin/oeadmin.bat b/openesb-standalone-packaging/src/main/resources/bin/oeadmin.bat new file mode 100755 index 0000000..5d5bb7d --- /dev/null +++ b/openesb-standalone-packaging/src/main/resources/bin/oeadmin.bat @@ -0,0 +1,28 @@ +:: Change to the current disk to %OPENESB_HOME% disk +%~d0 +:: Change to the %OPENESB_HOME% directory +CD %~p0 +SET OESETENV_DIR=%~dp0 +CALL %OESETENV_DIR%\setenv.bat + +::****************** set configuration variables *********************** +:: Check if Java home is set +::****************** set configuration variables *********************** +IF "%JAVA_HOME%"=="" GOTO nojavahome + +start "OpenESB OE-ADMIN" cli.cmd +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 ************************************************** +GOTO endbatch + +:endbatch \ No newline at end of file diff --git a/openesb-standalone-packaging/src/main/resources/bin/oeadmin.sh b/openesb-standalone-packaging/src/main/resources/bin/oeadmin.sh index 09e2db6..e7ba7ec 100644 --- a/openesb-standalone-packaging/src/main/resources/bin/oeadmin.sh +++ b/openesb-standalone-packaging/src/main/resources/bin/oeadmin.sh @@ -1,4 +1,27 @@ #!/bin/sh + +## *************************************************************** +## 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 2014. +## ***************************************************************** + ### ====================================================================== ### ## ## ## OpenESB Administration Command Line ## diff --git a/openesb-standalone-packaging/src/main/resources/bin/openesb.bat b/openesb-standalone-packaging/src/main/resources/bin/openesb.bat old mode 100644 new mode 100755 index e677318..5e96c15 --- a/openesb-standalone-packaging/src/main/resources/bin/openesb.bat +++ b/openesb-standalone-packaging/src/main/resources/bin/openesb.bat @@ -16,7 +16,7 @@ :: your own identifying information: Portions Copyright :: [year] [name of copyright owner] -:: Copyright OpenESB Community 2013 . +:: Copyright OpenESB Community 2014. :: ****************************************************************************** :: ******************** Read me first ******************************************* @@ -29,7 +29,7 @@ :: if it is not the case, please modify the .bat file :: ******************** END Read me first ******************************************* -@echo off +::@echo off echo ************************************************** echo * @@ -40,30 +40,28 @@ echo * OpenESB Community: www.open-esb.net echo ************************************************** echo. +::****************** set configuration variables *********************** +:: Call setenv.bat that MUST be in the same directory than openesb.bat +:: Change to be in OEHOME directory +::********************************************************************** -::****************** 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 OESETENV_DIR=%~dp0 +CALL %OESETENV_DIR%\setenv.bat -:: set up OPENESB_HOME -pushd .. -set OPENESB_HOME=%cd% -echo OPENESB_HOME is set with the value: %OPENESB_HOME% +::****************** set configuration variables *********************** +:: Check if Java home is set +::****************** set configuration variables *********************** +IF "%JAVA_HOME%"=="" GOTO nojavahome :: change to OpenESB home directory cd %OPENESB_HOME% :: Start OpenESB in a new Dos window -START /MIN "OpenESB SE" %JAVA_HOME%\bin\java -Djava.util.logging.config.file=%OPENESB_HOME%/config/logger.properties -Djava.util.logging.manager=net.openesb.standalone.logger.OpenESBLogManager -Djavax.net.ssl.keyStore=%OPENESB_HOME%/keystore.jks -Djavax.net.ssl.trustStore=%OPENESB_HOME%/cacerts.jks -Djavax.net.ssl.keyStorePassword=changeit -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=9009,suspend=n -Djmx.invoke.getters=true -Dinstall.root=%OPENESB_HOME% -jar %OPENESB_HOME%\lib\openesb-standalone-bootstrap.jar +START "OpenESB SE" %JAVA_HOME%\bin\java -Djava.util.logging.config.file=%OPENESB_HOME%/config/logger.properties -Djava.util.logging.manager=net.openesb.standalone.logger.OpenESBLogManager -Djavax.net.ssl.keyStore=%OPENESB_HOME%/keystore.jks -Djavax.net.ssl.trustStore=%OPENESB_HOME%/cacerts.jks -Djavax.net.ssl.keyStorePassword=changeit -Djmx.invoke.getters=true -Dinstall.root=%OPENESB_HOME% -jar %OPENESB_HOME%\lib\openesb-standalone-bootstrap.jar echo. echo. @@ -89,6 +87,6 @@ echo * JAVA_HOME must be set before starting OpenESB echo * Please check Java documentation to do it echo * echo ************************************************** - +GOTO endbatch :endbatch \ No newline at end of file diff --git a/openesb-standalone-packaging/src/main/resources/bin/openesb.sh b/openesb-standalone-packaging/src/main/resources/bin/openesb.sh index c9dd78d..a5af3f8 100644 --- a/openesb-standalone-packaging/src/main/resources/bin/openesb.sh +++ b/openesb-standalone-packaging/src/main/resources/bin/openesb.sh @@ -1,4 +1,27 @@ #!/bin/sh + +## *************************************************************** +## 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 2014. +## ***************************************************************** + ### ====================================================================== ### ## ## ## OpenESB Standalone runtime Bootstrap Script ## diff --git a/openesb-standalone-packaging/src/main/resources/bin/setenv.bat b/openesb-standalone-packaging/src/main/resources/bin/setenv.bat new file mode 100755 index 0000000..2134749 --- /dev/null +++ b/openesb-standalone-packaging/src/main/resources/bin/setenv.bat @@ -0,0 +1,109 @@ +:: *************************************************************** +:: 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 2014. +:: ****************************************************************************** + +:: ******************** 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 setenv.bat file +:: ******************** END Read me first ******************************************* + +@echo off +echo. +echo ************************************************** +echo * +echo * Welcome to OpenESB SE for Windows +echo * OpenESB set your environment... +echo * +echo * More detail on OpenESB Community: www.open-esb.net +echo ************************************************** + + +::****************** set Java Home *********************** +:: Set your java home.To set JAVA_HOME: To set this property on Windows +:: Right click My Computer and select Properties. +:: On the Advanced tab, select Environment Variables, +:: and then edit JAVA_HOME to point to where the JDK software is located, +:: for example, C:\Program Files\Java\jdk1.7.0_19 +::******************************************************** + +:: If you need a local java home uncomment the following line +:: and set your local JAVA_HOME. Don't do it if you want to use +:: your JAVA_HOME setting defined in your machine +:: SET JAVA_HOME= C:\Program Files\Java\jdk1.7.0_19 + + +:: Check if Java home is empty +IF NOT "%JAVA_HOME%"=="" GOTO javaHome + +echo. +echo ************************************************** +echo * +echo * WARNING ... +echo * JAVA_HOME must be set before starting OpenESB +echo * Please check Java documentation to do it +echo * +echo ************************************************** +GOTO set OEHome + +:javaHome +echo. +echo ************************************************** +echo * +echo * JAVA_HOME is set with the value: %JAVA_HOME% +echo * +echo ************************************************** + +:OEHome +::****************** set OpenESB Home *********************** +:: Set your OpenESB home +:: Seeting OpenESB_Home is optionnal. If this property is empty +:: OpenESB on Windows is supposed to start where you installed OpenESB +:: For a safer starting, we advice the users to setup OPENESB_HOME. +:: For the windows edition, OpenESB java home is the directory where +:: you installed OpenESB and not the bin directory +::******************************************************** + +:: To set a value for %OPENESB_HOME% here +:: SET OPENESB_HOME=f:\mySoftware\openesb-se + +::****************** set default OpenESB Home *********************** +:: if OPENESB_HOME is empty we set it with the value of the parent directory +:: of this setenv.bat file. +::We suppose setanv.bat is in the directory %OPENESB_HOME\BIN +::****************** set default OpenESB Home *********************** + +IF NOT "%OPENESB_HOME%"=="" GOTO displayOEHome +SET OESETENV_DIR=%~dp0 +for %%? in ("%~dp0..") do set OPENESB_HOME=%%~f? + + +:displayOEHome +echo. +echo ************************************************** +echo * +echo * OPENESB_HOME is set with the value %OPENESB_HOME% +echo * +echo ************************************************** +echo.