jmeter maven自動移動jar包windows 批處理命令

jmeter項目maven文件下面放這.bat 工具,能夠把必要的jar包移動到jmeter響應的文件夾下面apache

rem 本文件放在jmeter 腳本maven項目根目錄下面,和pom.xml在同一個文件夾下面
rem 預置條件,把官網下載的apache-jmeter-3.2.zip  放在以下filePath 並解壓到當前文件夾
set filePath=D:\work\jmeterPerformanceTest
rem rd /s /q %filePath%\apache-jmeter-3.2\
rem echo "start expand"
rem expand %filePath%\apache-jmeter-3.2.zip  %filePath%
echo "start mvn"
cmd /c "mvn -U clean install dependency:copy-dependencies -DoutputDirectory=%filePath%\apache-jmeter-3.2\lib"
echo "start copy"
echo yes|copy target\test-box-perf-1.0-SNAPSHOT.jar  %filePath%\apache-jmeter-3.2\lib\ext
echo "finshed"
pause
相關文章
相關標籤/搜索