您的位置:首页 > 其它

bat批处理ant执行完毕后执行其他命令

2016-12-29 10:41 274 查看
    一个bat批处理文件中,执行ant命令完毕后,其他命令或其他ant脚本不执行的问题,可以通过call命令解决。call命令说明如下:

-----------------------------------------------------------------------------------------------

Syntax

      CALL [drive:][path]filename [parameters]

      CALL :label [parameters]

      CALL internal_cmd

Key:

   pathname     The batch program to run.

   parameters   Any command-line arguments.

   :label       Jump to a label in the current batch script.

   internal_cmd Run an internal command, first expanding any variables in the argument.

-------------------------------------------------------------------------------------------------

    根据上面call命令解释的,编写一个ant的bat脚本(ant_build.bat),然后再编写一个ant之后需要执行的bat脚本(createZip.bat),通过call进行处理:

call ant_build.bat
call createZip.bat
pause
执行效果如下:

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: