我有以下批处理文件:
:RELEASE
for /d %%i in (D:\Projekte\UDG\OSB-Projekte\*) do (
::cd "%%i" & mvn versions:use-latest-versions -Dincludes=de.db.udg.test-framework:component-tester & mvn clean test >> %back%/test.log
)
goto MAKEDECISION
:MAKEDECISION
set /p decision=Do you want to commit?[[c]ommit/[r]evert/[e]xit]
然而循环结束后 cmd 立即关闭。
答案1
我必须使用call
命令mvn
->cd "%%i" & call mvn versions:use-latest-versions -Dincludes=de.db.udg.test-framework:component-tester & call mvn clean test >> %back%/test.log