-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented support for modulepath - bootstrap libs use it.
Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
- Loading branch information
Showing
48 changed files
with
414 additions
and
333 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
69 changes: 36 additions & 33 deletions
69
appserver/distributions/glassfish-common/src/main/resources/bin/asadmin.bat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,36 @@ | ||
@echo off | ||
REM | ||
REM Copyright (c) 2022, 2024 Contributors to the Eclipse Foundation | ||
REM Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved. | ||
REM | ||
REM This program and the accompanying materials are made available under the | ||
REM terms of the Eclipse Public License v. 2.0, which is available at | ||
REM http://www.eclipse.org/legal/epl-2.0. | ||
REM | ||
REM This Source Code may also be made available under the following Secondary | ||
REM Licenses when the conditions for such availability set forth in the | ||
REM Eclipse Public License v. 2.0 are satisfied: GNU General Public License, | ||
REM version 2 with the GNU Classpath Exception, which is available at | ||
REM https://www.gnu.org/software/classpath/license.html. | ||
REM | ||
REM SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 | ||
REM | ||
|
||
|
||
VERIFY OTHER 2>nul | ||
setlocal ENABLEEXTENSIONS | ||
if ERRORLEVEL 0 goto ok | ||
echo "Unable to enable extensions" | ||
exit /B 1 | ||
:ok | ||
call "%~dp0..\glassfish\config\asenv.bat" | ||
if "%AS_JAVA%x" == "x" goto UsePath | ||
set JAVA="%AS_JAVA%\bin\java" | ||
goto run | ||
:UsePath | ||
set JAVA=java | ||
:run | ||
%JAVA% "-Djava.util.logging.manager=org.glassfish.main.jul.GlassFishLogManager" -jar "%~dp0..\glassfish\lib\client\appserver-cli.jar" %* | ||
@echo off | ||
REM | ||
REM Copyright (c) 2022, 2024 Contributors to the Eclipse Foundation | ||
REM Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved. | ||
REM | ||
REM This program and the accompanying materials are made available under the | ||
REM terms of the Eclipse Public License v. 2.0, which is available at | ||
REM http://www.eclipse.org/legal/epl-2.0. | ||
REM | ||
REM This Source Code may also be made available under the following Secondary | ||
REM Licenses when the conditions for such availability set forth in the | ||
REM Eclipse Public License v. 2.0 are satisfied: GNU General Public License, | ||
REM version 2 with the GNU Classpath Exception, which is available at | ||
REM https://www.gnu.org/software/classpath/license.html. | ||
REM | ||
REM SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 | ||
REM | ||
|
||
VERIFY OTHER 2>nul | ||
setlocal ENABLEEXTENSIONS | ||
if ERRORLEVEL 0 goto ok | ||
echo "Unable to enable extensions" | ||
exit /B 1 | ||
|
||
:ok | ||
call "%~dp0..\glassfish\config\asenv.bat" | ||
if "%AS_JAVA%x" == "x" goto UsePath | ||
set JAVA="%AS_JAVA%\bin\java" | ||
goto run | ||
|
||
:UsePath | ||
set JAVA=java | ||
|
||
:run | ||
set ASADMIN_CLASSPATH="%AS_INSTALL%/appserver-cli.jar:%AS_INSTALL%/admin-cli.jar:%AS_INSTALL%/modules/*" | ||
%JAVA% "%ASADMIN_JVM_OPTIONS%" --module-path "%ASADMIN_MODULEPATH%" --add-modules ALL-MODULE-PATH -cp "%ASADMIN_CLASSPATH%" org.glassfish.admin.cli.AsadminMain %* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 20 additions & 20 deletions
40
appserver/distributions/glassfish-common/src/main/resources/bin/stopserv.bat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
@echo off | ||
REM | ||
REM Copyright (c) 2024 Contributors to the Eclipse Foundation | ||
REM Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved. | ||
REM | ||
REM This program and the accompanying materials are made available under the | ||
REM terms of the Eclipse Public License v. 2.0, which is available at | ||
REM http://www.eclipse.org/legal/epl-2.0. | ||
REM | ||
REM This Source Code may also be made available under the following Secondary | ||
REM Licenses when the conditions for such availability set forth in the | ||
REM Eclipse Public License v. 2.0 are satisfied: GNU General Public License, | ||
REM version 2 with the GNU Classpath Exception, which is available at | ||
REM https://www.gnu.org/software/classpath/license.html. | ||
REM | ||
REM SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 | ||
REM | ||
|
||
|
||
java "-Djava.util.logging.manager=org.glassfish.main.jul.GlassFishLogManager" -jar "%~dp0..\glassfish\modules\admin-cli.jar" stop-domain %* | ||
@echo off | ||
REM | ||
REM Copyright (c) 2024 Contributors to the Eclipse Foundation | ||
REM Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved. | ||
REM | ||
REM This program and the accompanying materials are made available under the | ||
REM terms of the Eclipse Public License v. 2.0, which is available at | ||
REM http://www.eclipse.org/legal/epl-2.0. | ||
REM | ||
REM This Source Code may also be made available under the following Secondary | ||
REM Licenses when the conditions for such availability set forth in the | ||
REM Eclipse Public License v. 2.0 are satisfied: GNU General Public License, | ||
REM version 2 with the GNU Classpath Exception, which is available at | ||
REM https://www.gnu.org/software/classpath/license.html. | ||
REM | ||
REM SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 | ||
REM | ||
|
||
|
||
java "-Djava.util.logging.manager=org.glassfish.main.jul.GlassFishLogManager" -jar "%~dp0..\glassfish\admin-cli.jar" stop-domain %* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
69 changes: 36 additions & 33 deletions
69
appserver/distributions/glassfish-common/src/main/resources/glassfish/bin/asadmin.bat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,36 @@ | ||
@echo off | ||
REM | ||
REM Copyright (c) 2022, 2024 Contributors to the Eclipse Foundation | ||
REM Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved. | ||
REM | ||
REM This program and the accompanying materials are made available under the | ||
REM terms of the Eclipse Public License v. 2.0, which is available at | ||
REM http://www.eclipse.org/legal/epl-2.0. | ||
REM | ||
REM This Source Code may also be made available under the following Secondary | ||
REM Licenses when the conditions for such availability set forth in the | ||
REM Eclipse Public License v. 2.0 are satisfied: GNU General Public License, | ||
REM version 2 with the GNU Classpath Exception, which is available at | ||
REM https://www.gnu.org/software/classpath/license.html. | ||
REM | ||
REM SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 | ||
REM | ||
|
||
|
||
VERIFY OTHER 2>nul | ||
setlocal ENABLEEXTENSIONS | ||
if ERRORLEVEL 0 goto ok | ||
echo "Unable to enable extensions" | ||
exit /B 1 | ||
:ok | ||
call "%~dp0..\config\asenv.bat" | ||
if "%AS_JAVA%x" == "x" goto UsePath | ||
set JAVA="%AS_JAVA%\bin\java" | ||
goto run | ||
:UsePath | ||
set JAVA=java | ||
:run | ||
%JAVA% "-Djava.util.logging.manager=org.glassfish.main.jul.GlassFishLogManager" -jar "%~dp0..\lib\client\appserver-cli.jar" %* | ||
@echo off | ||
REM | ||
REM Copyright (c) 2022, 2024 Contributors to the Eclipse Foundation | ||
REM Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved. | ||
REM | ||
REM This program and the accompanying materials are made available under the | ||
REM terms of the Eclipse Public License v. 2.0, which is available at | ||
REM http://www.eclipse.org/legal/epl-2.0. | ||
REM | ||
REM This Source Code may also be made available under the following Secondary | ||
REM Licenses when the conditions for such availability set forth in the | ||
REM Eclipse Public License v. 2.0 are satisfied: GNU General Public License, | ||
REM version 2 with the GNU Classpath Exception, which is available at | ||
REM https://www.gnu.org/software/classpath/license.html. | ||
REM | ||
REM SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 | ||
REM | ||
|
||
VERIFY OTHER 2>nul | ||
setlocal ENABLEEXTENSIONS | ||
if ERRORLEVEL 0 goto ok | ||
echo "Unable to enable extensions" | ||
exit /B 1 | ||
|
||
:ok | ||
call "%~dp0..\config\asenv.bat" | ||
if "%AS_JAVA%x" == "x" goto UsePath | ||
set JAVA="%AS_JAVA%\bin\java" | ||
goto run | ||
|
||
:UsePath | ||
set JAVA=java | ||
|
||
:run | ||
set ASADMIN_CLASSPATH="%AS_INSTALL%/appserver-cli.jar:%AS_INSTALL%/admin-cli.jar:%AS_INSTALL%/modules/*" | ||
%JAVA% "%ASADMIN_JVM_OPTIONS%" --module-path "%ASADMIN_MODULEPATH%" --add-modules ALL-MODULE-PATH -cp "%ASADMIN_CLASSPATH%" org.glassfish.admin.cli.AsadminMain %* |
Oops, something went wrong.