|
|
@@ -29,9 +29,7 @@ public class LocalDirCrudService implements CrudOps<LocalDir> {
|
|
|
@Override
|
|
|
public void addOrModify(LocalDir localDir) throws Exception {
|
|
|
// 检查并创建目录
|
|
|
- checkOrMkdir(localDir.getLocalRepo());
|
|
|
- checkOrMkdir(localDir.getCompileDir());
|
|
|
- checkOrMkdir(localDir.getPackDir());
|
|
|
+ checkOrMkdir(localDir.getLocalDir());
|
|
|
|
|
|
// 只做修改,不新增
|
|
|
String hostId = localDir.getHostId();
|
|
|
@@ -57,6 +55,21 @@ public class LocalDirCrudService implements CrudOps<LocalDir> {
|
|
|
if (!dir.exists() && !dir.mkdirs()) {
|
|
|
throw new Exception(dirPath + " 不存在且创建失败...");
|
|
|
}
|
|
|
+
|
|
|
+ dir = new File(dirPath + "/" + "localRepo");
|
|
|
+ if (!dir.mkdirs()) {
|
|
|
+ throw new Exception(dirPath + " 创建失败...");
|
|
|
+ }
|
|
|
+
|
|
|
+ dir = new File(dirPath + "/" + "compileDir");
|
|
|
+ if (!dir.mkdirs()) {
|
|
|
+ throw new Exception(dirPath + " 创建失败...");
|
|
|
+ }
|
|
|
+
|
|
|
+ dir = new File(dirPath + "/" + "packDir");
|
|
|
+ if (!dir.mkdirs()) {
|
|
|
+ throw new Exception(dirPath + " 创建失败...");
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
@Override
|