|
|
@@ -98,8 +98,10 @@ public class BuildDirServiceImpl implements BuildDirService {
|
|
|
String localRepo = LocalBuildDir.localRepo + File.separator + appId;
|
|
|
File dir = new File(localRepo);
|
|
|
try {
|
|
|
- FileUtils.cleanDirectory(dir);
|
|
|
- } catch (IOException e) {
|
|
|
+ if (dir.exists()) {
|
|
|
+ FileUtils.cleanDirectory(dir);
|
|
|
+ }
|
|
|
+ } catch (Exception e) {
|
|
|
log.error("{}", e.getMessage());
|
|
|
}
|
|
|
}
|