2023-11-19 02:12:44 +03:00
|
|
|
package Visual_DVM_2021.Passes.All;
|
|
|
|
|
import Visual_DVM_2021.Passes.CurrentComponentPass;
|
2023-09-17 22:13:42 +03:00
|
|
|
|
|
|
|
|
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);
|
|
|
|
|
}
|
|
|
|
|
}
|