拷贝文件bat

::替换文件需要添加 /y 参数才能直接替换.不然会出现提示是否替换.

::复制Axis2Implementation和WebServices编译后的文件到tomcat的webapps\axis2\WEB-INF\services和modules目录下
@echo off
echo "先删除tomcat对应目录下的三个旧文件"
del /f /s /q D:\work\workspace_cango\web-CarService\src\main\lib\grpc-carservice-api-1.0.3-56270-SNAPSHOT.jar
del /f /s /q D:\work\workspace_cango\web-CarService\src\main\lib\grpc-carservice-client-1.0.3-56270-SNAPSHOT.jar
del /f /s /q D:\work\workspace_cango\web-CarService\src\main\lib\grpc-carservice-model-1.0.3-56270-SNAPSHOT.jar
echo.
echo "复制 目录下"
copy /y D:\work\workspace_cango\grpc-CarService\api\build\libs\grpc-carservice-api-1.0.3-56270-SNAPSHOT.jar D:\work\workspace_cango\web-CarService\src\main\lib\

echo "复制 目录下"
copy /y D:\work\workspace_cango\grpc-CarService\client\build\libs\grpc-carservice-client-1.0.3-56270-SNAPSHOT.jar D:\work\workspace_cango\web-CarService\src\main\lib\

echo "复制 目录下"
copy /y D:\work\workspace_cango\grpc-CarService\model\build\libs\grpc-carservice-model-1.0.3-56270-SNAPSHOT.jar D:\work\workspace_cango\web-CarService\src\main\lib\
posted @ 2023-03-31 15:33  亲爱的阿道君  阅读(43)  评论(0编辑  收藏  举报