отображение файлов вывода (парса и преобразования)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
package SapforTestingSystem.Json;
|
||||
import Common.Constants;
|
||||
import Common.Global;
|
||||
import Common.Utils.Utils;
|
||||
import ProjectData.Files.FileType;
|
||||
@@ -37,7 +38,7 @@ public class SapforVersion_json implements Serializable {
|
||||
//--
|
||||
File[] files_ = Home.listFiles();
|
||||
if (files_ != null) {
|
||||
for (File file: files_){
|
||||
for (File file : files_) {
|
||||
if (file.isFile()) {
|
||||
ProjectFile projectFile = new ProjectFile(file);
|
||||
if (!projectFile.fileType.equals(FileType.forbidden)) {
|
||||
@@ -46,5 +47,19 @@ public class SapforVersion_json implements Serializable {
|
||||
}
|
||||
}
|
||||
}
|
||||
//теперь файлы вывода.
|
||||
Vector<File> out_files = new Vector<>();
|
||||
out_files.add(Paths.get(Home.getAbsolutePath(), Constants.data, Constants.parse_out_file).toFile());
|
||||
out_files.add(Paths.get(Home.getAbsolutePath(), Constants.data, Constants.parse_err_file).toFile());
|
||||
out_files.add(Paths.get(Home.getAbsolutePath(), Constants.data, Constants.out_file).toFile());
|
||||
out_files.add(Paths.get(Home.getAbsolutePath(), Constants.data, Constants.err_file).toFile());
|
||||
//--
|
||||
for (File file : out_files) {
|
||||
if (file.exists()) {
|
||||
// System.out.println(file.getAbsolutePath());
|
||||
ProjectFile projectFile = new ProjectFile(file);
|
||||
files.add(projectFile);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user