Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
bes
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
market
bes
Commits
d3de018b
Commit
d3de018b
authored
Sep 26, 2023
by
邱勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upload New File
parent
2d71d078
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
78 additions
and
0 deletions
+78
-0
build/bes-appserver-lite-9.5.5/bin/gmkeytool.bat
build/bes-appserver-lite-9.5.5/bin/gmkeytool.bat
+78
-0
No files found.
build/bes-appserver-lite-9.5.5/bin/gmkeytool.bat
0 → 100644
View file @
d3de018b
@echo
off
@REM
@REM
Copyright
(
c
)
2018
-
2022
@REM
Beijing
Baolande
Software
Corporation
@REM
@REM
All
Rights
Reserved
@REM
setlocal
rem Guess BES_HOME if not defined
set
"CURRENT_DIR=
%cd%
"
if
not
"
%BES_HOME%
"
==
""
goto
validateBesHome
set
"BES_HOME=
%CURRENT_DIR%
"
if
exist
"
%BES_HOME%
\bin\startserver.bat"
goto
rightBesHome
cd
..
set
"BES_HOME=
%cd%
"
cd
"
%CURRENT_DIR%
"
:validateBesHome
if
not
exist
"
%BES_HOME%
\bin\setenv.bat"
goto
errorBesHome
if
not
exist
"
%BES_HOME%
\bin\setpatchenv.bat"
goto
errorBesHome
goto
rightBesHome
:errorBesHome
echo
The
BES_HOME
environment
variable
is
not
defined
correctly
echo
This
environment
variable
is
needed
to
run
this
program
goto
error
:rightBesHome
rem Copy BES_ROOT from BES_HOME if not defined
if
not
"
%BES_ROOT%
"
==
""
goto
setBesRoot
set
"BES_ROOT=
%BES_HOME%
"
:setBesRoot
rem Ensure that neither BES_HOME nor BES_ROOT contains a semi-colon
rem as this is used as the separator in the classpath and Java provides no
rem mechanism for escaping if the same character appears in the path. Check this
rem by replacing all occurrences of ';' with '' and checking that neither
rem BES_HOME nor BES_ROOT have changed
if
"
%BES_HOME%
"
==
"
%BES
_HOME:;=
%
"
goto
besHomeNoSemicolon
echo
Unable
to
start
as
BES_HOME
contains
a
semicolon
(;)
character
goto
error
:besHomeNoSemicolon
if
"
%BES_ROOT%
"
==
"
%BES
_ROOT:;=
%
"
goto
besRootNoSemicolon
echo
Unable
to
start
as
BES_ROOT
contains
a
semicolon
(;)
character
goto
error
:besRootNoSemicolon
set
CLASSPATH
=
call
"
%BES_HOME%
\bin\setenv.bat"
call
"
%BES_HOME%
\bin\setpatchenv.bat"
patch
if
not
exist
"
%BES_HOME%
\lib\bes-gmcert.jar"
(
echo
The
non
-gm
version
does
not
support
gmkeytool
!
goto
end
)
set
CLASSPATH
=
%CLASSPATH%
;
%BES_HOME%
\lib\bootstrap\bes
-gmssl
.jar
set
CLASSPATH
=
%CLASSPATH%
;
%BES_HOME%
\lib\bes
-gmcert
.jar
if
"
%PATCH_CLASSPATH%
"
==
""
goto
overSetPatchClassPath
set
CLASSPATH
=
%PATCH_CLASSPATH%
;
%CLASSPATH%
:overSetPatchClassPath
%JAVA%
-Dcom
.bes.installRoot
=
"
%BES_HOME%
"
%JAVA_OPTS%
-cp
"
%CLASSPATH%
"
com
.bes.enterprise.cert.BESKeyStoreInitializer
%
*
:error
endlocal
exit
/b
1
:end
endlocal
exit
/b
0
\ No newline at end of file
Write
Preview
Markdown
is supported
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