-
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.
- Path.of expects a path using slash as a separator, so old windows paths are invalid for this. We always have to use File first. Signed-off-by: David Matějček <[email protected]>
- Loading branch information
Showing
16 changed files
with
116 additions
and
132 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
74 changes: 37 additions & 37 deletions
74
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,37 +1,37 @@ | ||
@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 | ||
set AS_INSTALL="%~dp0..\glassfish" | ||
call "%AS_INSTALL%\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:%ASADMIN_CLASSPATH%" | ||
%JAVA% %ASADMIN_JVM_OPTIONS% --module-path "%ASADMIN_MODULEPATH%" --add-modules ALL-MODULE-PATH -cp "%ASADMIN_CLASSPATH%" org.glassfish.admin.cli.AsadminMain %* | ||
@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 | ||
set AS_INSTALL="%~dp0..\glassfish" | ||
call "%AS_INSTALL%\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:%ASADMIN_CLASSPATH% | ||
%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
74 changes: 37 additions & 37 deletions
74
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,37 +1,37 @@ | ||
@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 | ||
set AS_INSTALL="%~dp0.." | ||
call "%AS_INSTALL%\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:%ASADMIN_CLASSPATH%" | ||
%JAVA% %ASADMIN_JVM_OPTIONS% --module-path "%ASADMIN_MODULEPATH%" --add-modules ALL-MODULE-PATH -cp "%ASADMIN_CLASSPATH%" org.glassfish.admin.cli.AsadminMain %* | ||
@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 | ||
set AS_INSTALL="%~dp0.." | ||
call "%AS_INSTALL%\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;%ASADMIN_CLASSPATH% | ||
%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
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