no message
This commit is contained in:
13
src/_VisualDVM/Passes/All/CreateComponentBackUp.java
Normal file
13
src/_VisualDVM/Passes/All/CreateComponentBackUp.java
Normal file
@@ -0,0 +1,13 @@
|
||||
package _VisualDVM.Passes.All;
|
||||
import _VisualDVM.Passes.CurrentComponentPass;
|
||||
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.StandardCopyOption;
|
||||
public class CreateComponentBackUp extends CurrentComponentPass {
|
||||
@Override
|
||||
protected void body() throws Exception {
|
||||
//form.ShowMessage2("копирование предыдущей версии...");
|
||||
if (target.getFile().exists())
|
||||
Files.copy(target.getFile().toPath(), target.getBackUpFile().toPath(), StandardCopyOption.REPLACE_EXISTING);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user