在Windows批处理脚本中生成grunt后,无法执行其他命令

在Windows批处理脚本中生成grunt后,无法执行其他命令,windows,gruntjs,yeoman,oracle-jet,Windows,Gruntjs,Yeoman,Oracle Jet,使用yeoman navdrawer模板构建Oracle Jet应用程序,并尝试编写我需要执行的一些常用任务(例如:构建、在远程服务器上部署等) 如果我在windows上使用以下内容创建test.bat: grunt build echo "next command is an echo" 未执行echo命令 Running "build" task Running "oraclejet-build:undefined" (oraclejet-build) task Oracle JET

使用yeoman navdrawer模板构建Oracle Jet应用程序,并尝试编写我需要执行的一些常用任务(例如:构建、在远程服务器上部署等)

如果我在windows上使用以下内容创建test.bat:

grunt build
echo "next command is an echo"
未执行echo命令

Running "build" task

Running "oraclejet-build:undefined" (oraclejet-build) task
 Oracle JET Grunt plugin
Processing Grunt command...
JET Warning: Missing platform. Default to web.
 Oracle JET Tooling
cleaning staging path.....
copy files to staging directory.....
copy finished...
copy library files to staging directory.....
copy finished...
compiling sass....
sass compile finished...
running theme injection task.....
indexHtml theme path injection finished..
running theme copy task.....
theme copy finished...
running injection task.....
mainJs paths injection finished..

Done.
然后返回到命令行


它为什么不执行echo命令?

在另一篇文章中找到了它

必须使用call使其工作

call grunt build
echo "it works!"