отображение задач из json
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Constants;
|
||||
import Common.Current;
|
||||
import Common.Global;
|
||||
import Common.Utils.Utils;
|
||||
import Repository.Server.ServerCode;
|
||||
import Repository.Server.ServerExchangeUnit_2021;
|
||||
@@ -16,7 +17,7 @@ import java.util.Date;
|
||||
public class DownloadDVMPackage extends TestingSystemPass<DVMPackage> {
|
||||
@Override
|
||||
public String getIconPath() {
|
||||
return "/icons/Apply.png";
|
||||
return "/icons/ComponentsActual.png";
|
||||
}
|
||||
@Override
|
||||
public String getButtonText() {
|
||||
@@ -37,11 +38,12 @@ public class DownloadDVMPackage extends TestingSystemPass<DVMPackage> {
|
||||
loaded = new File(workspace, Constants.LOADED);
|
||||
//--
|
||||
if (!target.state.equals(TasksPackageState.Done)){
|
||||
Log.Writeln_("Возможно скачать только завершённый пакет!");
|
||||
Log.Writeln_("Возможно скачать и отобразить задачи только завершённого пакета!");
|
||||
return false;
|
||||
}
|
||||
if (loaded.exists()){
|
||||
Log.Writeln_("Пакет уже загружен");
|
||||
/// Log.Writeln_("Пакет уже загружен");
|
||||
Global.testingServer.db.dvmRunTasks.ShowDVMPackage(target);
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
@@ -65,4 +67,8 @@ public class DownloadDVMPackage extends TestingSystemPass<DVMPackage> {
|
||||
passes.get(PassCode_2021.UnzipFolderPass).Do(results_zip.getAbsolutePath(), workspace.getAbsolutePath());
|
||||
FileUtils.writeStringToFile(loaded, new Date().toString());
|
||||
}
|
||||
@Override
|
||||
protected void showDone() throws Exception {
|
||||
Global.testingServer.db.dvmRunTasks.ShowDVMPackage(target);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user