diff --git a/dist/common/src/main/resources/packages/org.jboss.prospero/content/bin/prospero.bat b/dist/common/src/main/resources/packages/org.jboss.prospero/content/bin/prospero.bat index 74bcb653e..7133bf853 100644 --- a/dist/common/src/main/resources/packages/org.jboss.prospero/content/bin/prospero.bat +++ b/dist/common/src/main/resources/packages/org.jboss.prospero/content/bin/prospero.bat @@ -82,7 +82,6 @@ setlocal DisableDelayedExpansion rem $Id$ -) pushd "%DIRNAME%.." set "RESOLVED_PROSPERO_HOME=%CD%" @@ -203,7 +202,7 @@ rem Use a copy of jboss-modules to avoid locking issues when jboss-modules is up set "TMP_JBOSS_MODULES=%PROSPERO_HOME%\jboss-modules~%RANDOM%.tmp" rem loop while we find a non-existing filename if exist "%TMP_JBOSS_MODULES%" goto :COPY_JBOSS_MODULES - cp "%RUNJAR%" "%TMP_JBOSS_MODULES%" + copy "%RUNJAR%" "%TMP_JBOSS_MODULES%" rem If the -Djava.security.manager is found, enable the -secmgr and include a bogus security manager for JBoss Modules to replace echo(!JAVA_OPTS! | findstr /r /c:"-Djava.security.manager" > nul && ( @@ -271,5 +270,5 @@ if "x%NOPAUSE%" == "x" pause :END_NO_PAUSE set EXIT_LEVEL="%errorlevel%" -if exist "%TMP_JBOSS_MODULES%" rm -rf "%TMP_JBOSS_MODULES%" +if exist "%TMP_JBOSS_MODULES%" del /Q "%TMP_JBOSS_MODULES%" exit /b %EXIT_LEVEL%