no message
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
package GlobalData.Tasks.Supervisor.Local.Linux;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common_old.Utils.Utils;
|
||||
import GlobalData.Makefile.Makefile;
|
||||
import GlobalData.Tasks.CompilationTask.CompilationTask;
|
||||
@@ -32,7 +33,7 @@ public class LinuxLocalCompilationSupervisor extends LinuxLocalTaskSupervisor<Co
|
||||
protected void ValidateTaskResults() throws Exception {
|
||||
if (getBinary().exists()) {
|
||||
File renamed_binary = Paths.get(getProjectCopy().getAbsolutePath(),
|
||||
Utils.getDateName("spf")).toFile();
|
||||
CommonUtils.getDateName("spf")).toFile();
|
||||
task.binary_name = renamed_binary.getName();
|
||||
Files.move(getBinary().toPath(), renamed_binary.toPath(), StandardCopyOption.REPLACE_EXISTING);
|
||||
task.state = TaskState.Done;
|
||||
|
||||
@@ -45,7 +45,7 @@ public class WindowsLocalCompilationSupervisor extends WindowsLocalTaskSuperviso
|
||||
protected void ValidateTaskResults() throws Exception {
|
||||
if (getBinary().exists()) {
|
||||
File renamed_binary = Paths.get(getProjectCopy().getAbsolutePath(),
|
||||
Utils.getDateName("spf") + ".exe").toFile();
|
||||
CommonUtils.getDateName("spf") + ".exe").toFile();
|
||||
task.binary_name = renamed_binary.getName();
|
||||
Files.move(getBinary().toPath(), renamed_binary.toPath(), StandardCopyOption.REPLACE_EXISTING);
|
||||
task.state = TaskState.Done;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
package GlobalData.Tasks.Supervisor.Remote;
|
||||
import Common_old.UI.UI;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common_old.Utils.Utils;
|
||||
import GlobalData.Makefile.Makefile;
|
||||
import GlobalData.RemoteFile.RemoteFile;
|
||||
@@ -36,7 +36,7 @@ public class RemoteCompilationSupervisor extends RemoteTaskSupervisor<Compilatio
|
||||
@Override
|
||||
protected void ValidateTaskResults() throws Exception {
|
||||
if (pass.user.connection.Exists(getBinary())) {
|
||||
RemoteFile renamed_binary = new RemoteFile(getRemoteProject().full_name, Utils.getDateName("spf_" + getBinary().name));
|
||||
RemoteFile renamed_binary = new RemoteFile(getRemoteProject().full_name, CommonUtils.getDateName("spf_" + getBinary().name));
|
||||
pass.user.connection.sftpChannel.rename(getBinary().full_name, renamed_binary.full_name);
|
||||
task.binary_name = renamed_binary.name;
|
||||
task.state = TaskState.Done;
|
||||
|
||||
Reference in New Issue
Block a user