Skip to content

Commit

Permalink
修改maven清理逻辑
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx committed Feb 3, 2019
1 parent addba67 commit 0ebf9f4
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
11 changes: 6 additions & 5 deletions src/main/java/org/yyx/util/maven/UtilMavenClean.java
Original file line number Diff line number Diff line change
Expand Up @@ -130,16 +130,17 @@ public static void clean(final String mavenRepositoryPath) {
// 将路径以文件的形式表示
File mavenRepositoryFile = new File(mavenRepositoryPath);
// 一个线程去找输入文件下目录路径
singleThreadPool.execute(() -> {
// singleThreadPool.execute(() -> {
if (mavenRepositoryFile.exists()) {
// 说明文件存在
doClean(mavenRepositoryFile);
}
});
// });
// 另一个线程去自动查找环境变量
singleThreadPool.execute(() -> {
checkEnv(mavenRepositoryPath);
});
// singleThreadPool.execute(() ->
checkEnv(mavenRepositoryPath)
// )
;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/yyx/util/string/UtilString.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public static boolean endWidth(String checkStr, String... params) {
* @return true:为空 false:不为空
*/
public static boolean isBlank(String str) {
if (str == null) {
if (str == null || "" .equals(str.trim())) {
return true;
}
return str.length() == 0;
Expand Down
11 changes: 11 additions & 0 deletions src/main/java/org/yyx/view/MainForm.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package org.yyx.view;

/**
* 主窗体
* <p>
*
* @author 叶云轩 at [email protected]
* @date 2019-01-30-17:03
*/
public class MainForm {
}

0 comments on commit 0ebf9f4

Please sign in to comment.