Why does only the first line of this Windows batch file execute but all three lines execute in a command shell?

前端 未结 6 715
伪装坚强ぢ
伪装坚强ぢ 2020-11-29 16:30

I have a batch file that executes three Maven commands, one after the other. Each command can be successfully executed in the script - by itself!. But when I add all three c

6条回答
  •  臣服心动
    2020-11-29 16:53

    Maven uses batch files to do its business. With any batch script, you must call another script using the call command so it knows to return back to your script after the called script completes. Try prepending call to all commands.

    Another thing you could try is using the start command which should work similarly.

提交回复
热议问题