Fix for issue 1753.
Instead of using %* to test if the user provided arguments in the command line just use the first argument with no quotes (%~0) to do the test. The fix applies both to the setup and the uninstall scripts on Windows.
| | |
| | | "%JAVA_BIN%" org.opends.server.tools.InstallDS -t > NUL 2>&1 |
| | | if not %errorlevel% == 0 goto noValidJavaHome |
| | | |
| | | if "%*" == "" goto callLaunch |
| | | if %~0 == "" goto callLaunch |
| | | goto callJava |
| | | |
| | | :callLaunch |
| | |
| | | "%JAVA_BIN%" org.opends.server.tools.InstallDS -t > NUL 2>&1 |
| | | if not %errorlevel% == 0 goto noValidJavaHome |
| | | |
| | | if "%*" == "" goto callLaunch |
| | | if %~0 == "" goto callLaunch |
| | | goto callJava |
| | | |
| | | :callLaunch |