【7.2.5】更新工具类中变量名

pull/37/head
fengshuonan 2022-10-01 09:52:11 +08:00
parent ff19e2965b
commit e84f8a2ca7
1 changed files with 4 additions and 4 deletions

View File

@ -41,9 +41,9 @@ public class MvnDeployUtil {
* <p>
* jar
* <p>
* D:\tmp\needToDeploy.zip
* D:\tmp\needToDeploy
*/
private String targetZipPath;
private String targetToDeployPath;
/**
* mavensettings
@ -68,7 +68,7 @@ public class MvnDeployUtil {
public static void main(String[] args) {
MvnDeployUtil mvnDeployUtil = new MvnDeployUtil();
mvnDeployUtil.setTargetZipPath("D:\\workspace-guns\\roses\\kernel-a-rule\\target");
mvnDeployUtil.setTargetToDeployPath("D:\\tmp\\devops-plugins");
mvnDeployUtil.setMvnExePath("D:\\apache-maven-3.5.4\\bin\\mvn.cmd");
mvnDeployUtil.setMvnSettingXmlPath("D:\\apache-maven-3.5.4\\conf\\settings.xml");
mvnDeployUtil.setRepositoryId("company-hosted");
@ -220,7 +220,7 @@ public class MvnDeployUtil {
public void beginDeploy() {
//初始化获取所有的目录存到list
this.getAllDirs(targetZipPath);
this.getAllDirs(targetToDeployPath);
//遍历所有目录并根据不同类型的目录执行deploy
for (File directory : directories) {