Дополнил выходные файлы. Различил текст о задачах на компиляцию и о задачах на запуск. Убрал печать состояний задач, и времени.
This commit is contained in:
@@ -11,9 +11,8 @@
|
||||
enum SupervisorState {
|
||||
WorkspacesCreation, //0
|
||||
Preparation, //1
|
||||
Execution, //2
|
||||
Archivation, //3
|
||||
End //4
|
||||
Execution, //2
|
||||
End //3
|
||||
};
|
||||
|
||||
template <class T>
|
||||
@@ -32,8 +31,6 @@ public:
|
||||
return String("Preparation");
|
||||
case Execution:
|
||||
return String("Execution");
|
||||
case Archivation:
|
||||
return String("Archivation");
|
||||
case End:
|
||||
return String("End");
|
||||
default:
|
||||
@@ -71,7 +68,6 @@ public:
|
||||
saveState();
|
||||
break;
|
||||
case Execution:
|
||||
Finalize();
|
||||
this->state = End;
|
||||
saveState();
|
||||
break;
|
||||
@@ -187,18 +183,12 @@ public:
|
||||
|
||||
changeState();
|
||||
|
||||
String outFile(pathRes + "/info.txt");
|
||||
String outFile(pathRes + "/"+getStatePrefix()+"Info.txt");
|
||||
File tmp(outFile, String(buf.c_str()));
|
||||
|
||||
//Utils::ZipFolder(pathRes, pathRes + ".zip");
|
||||
}
|
||||
|
||||
virtual void Finalize() { }
|
||||
|
||||
void saveState() {
|
||||
Utils::Sleep(1); //чтобы не было одинаковых по дате файлов.
|
||||
String stateFile = packageWorkspace + "/state/" + getStatePrefix() + printState();
|
||||
//printf("stateFile=<%s>\n", stateFile.getCharArray());
|
||||
File tmp(stateFile, Utils::getDate());
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user