Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bonita
bonita-distrib
Commits
944f155d
Commit
944f155d
authored
Jun 18, 2021
by
Bonita CI
Browse files
Merge branch 'master' into 'dev'
parents
615558a2
bdcbe713
Changes
4
Hide whitespace changes
Inline
Side-by-side
tomcat/src/main/resources/start-bonita.bat
View file @
944f155d
@echo
off
setlocal
set
BASEDIR
=
%~dp0
echo
BASEDIR
:
%BASEDIR%
:: Test if system variable JRE_HOME is set.
if
"x
%JRE_HOME%
"
==
"x"
(
echo
JRE_HOME
is
not
set
.
Trying
to
use
JAVA_HOME
instead
...
...
...
@@ -69,27 +72,27 @@ if "%VERSION_NUMBER%" NEQ "11" (
)
echo Java version is compatible
IF NOT EXIST setup GOTO NOSETUPDIR
IF NOT EXIST
%BASEDIR%
\
setup GOTO NOSETUPDIR
echo ------------------------------------------------------
echo Initializing and configuring Bonita Tomcat bundle
echo ------------------------------------------------------
shift
call setup\setup.bat init
%
0
%
1
%
2
%
3
%
4
%
5
%
6
%
7
%
8
%
9
call
%BASEDIR%
\
setup\setup.bat init
%
0
%
1
%
2
%
3
%
4
%
5
%
6
%
7
%
8
%
9
if errorlevel 1 (
goto exit
)
call setup\setup.bat configure
%
0
%
1
%
2
%
3
%
4
%
5
%
6
%
7
%
8
%
9
call
%BASEDIR%
\
setup\setup.bat configure
%
0
%
1
%
2
%
3
%
4
%
5
%
6
%
7
%
8
%
9
if errorlevel 1 (
goto exit
)
:NOSETUPDIR
cd
%BASEDIR%
cd server
echo "
-----------------------------------------------------
"
echo "
Starting
Bonita
Tomcat
bundle
"
echo "
-----------------------------------------------------
"
call bin\startup.bat
cd ..
exit /b 0
:exit
...
...
tomcat/src/main/resources/start-bonita.sh
View file @
944f155d
#!/bin/sh
BASEDIR
=
$(
cd
$(
dirname
"
$0
"
)
&&
pwd
-P
)
testReturnCode
()
{
COD_RET
=
$1
if
[
${
COD_RET
}
-ne
0
]
;
then
...
...
@@ -35,15 +37,15 @@ if [ "$java_version" != "11" ]; then
fi
echo
"Java version is compatible"
if
[
-d
"
.
/setup"
]
;
then
if
[
-d
"
${
BASEDIR
}
/setup"
]
;
then
echo
"------------------------------------------------------"
echo
"Initializing and configuring Bonita Tomcat bundle"
echo
"------------------------------------------------------"
.
/setup/setup.sh init
$@
${
BASEDIR
}
/setup/setup.sh init
$@
testReturnCode
$?
.
/setup/setup.sh configure
$@
${
BASEDIR
}
/setup/setup.sh configure
$@
testReturnCode
$?
fi
...
...
@@ -51,4 +53,4 @@ fi
echo
"------------------------------------------------------"
echo
"Starting Bonita Tomcat bundle"
echo
"------------------------------------------------------"
.
/server/bin/startup.sh
${
BASEDIR
}
/server/bin/startup.sh
tomcat/src/main/resources/stop-bonita.bat
View file @
944f155d
@echo
off
setlocal
set
BASEDIR
=
%~dp0
cd
%BASEDIR%
cd
server
call
bin
\shutdown.bat
cd
..
\ No newline at end of file
call
bin
\shutdown.bat
\ No newline at end of file
tomcat/src/main/resources/stop-bonita.sh
View file @
944f155d
#!/bin/sh
./server/bin/shutdown.sh
BASEDIR
=
$(
cd
$(
dirname
"
$0
"
)
&&
pwd
-P
)
${
BASEDIR
}
/server/bin/shutdown.sh
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment