Don't clean/delete deploy dir if not there
This commit is contained in:
parent
83b4b18be7
commit
64bd5c92af
1 changed files with 4 additions and 1 deletions
|
@ -141,7 +141,10 @@ public class MobibotBuild extends Project {
|
|||
|
||||
@Override
|
||||
public void clean() throws Exception {
|
||||
FileUtils.deleteDirectory(new File("deploy"));
|
||||
var deploy = new File("deploy");
|
||||
if (deploy.exists()) {
|
||||
FileUtils.deleteDirectory(deploy);
|
||||
}
|
||||
super.clean();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue