кнопки для отображения служебных файлов.

This commit is contained in:
2023-11-10 02:22:44 +03:00
parent 93278dc925
commit 2b119cc7eb
4 changed files with 139 additions and 71 deletions

View File

@@ -22,10 +22,10 @@ public class SapforVersion_json implements Serializable {
public File Home = null;
public LinkedHashMap<String, ProjectFile> files = new LinkedHashMap<>();
//--
public String parse_out = "";
public String parse_err = "";
public String out = "";
public String err = "";
public ProjectFile parse_out = null;
public ProjectFile parse_err = null;
public ProjectFile out = null;
public ProjectFile err = null;
//--
public SapforVersion_json(String version_in, String description_in) {
version = version_in;
@@ -56,35 +56,10 @@ public class SapforVersion_json implements Serializable {
}
}
}
File parse_out_file = Paths.get(Home.getAbsolutePath(), Constants.data, Constants.parse_out_file).toFile();
File parse_err_file = Paths.get(Home.getAbsolutePath(), Constants.data, Constants.parse_err_file).toFile();
File out_file = Paths.get(Home.getAbsolutePath(), Constants.data, Constants.out_file).toFile();
File err_file = Paths.get(Home.getAbsolutePath(), Constants.data, Constants.err_file).toFile();
//--
try {
if (parse_out_file.exists())
parse_out = FileUtils.readFileToString(parse_out_file);
} catch (Exception ex) {
ex.printStackTrace();
}
try {
if (parse_err_file.exists())
parse_err = FileUtils.readFileToString(parse_err_file);
} catch (Exception ex) {
ex.printStackTrace();
}
try {
if (out_file.exists())
out = FileUtils.readFileToString(out_file);
} catch (Exception ex) {
ex.printStackTrace();
}
try {
if (err_file.exists())
err = FileUtils.readFileToString(err_file);
} catch (Exception ex) {
ex.printStackTrace();
}
parse_out = new ProjectFile(Paths.get(Home.getAbsolutePath(), Constants.data, Constants.parse_out_file).toFile());
parse_err = new ProjectFile(Paths.get(Home.getAbsolutePath(), Constants.data, Constants.parse_err_file).toFile());
out = new ProjectFile(Paths.get(Home.getAbsolutePath(), Constants.data, Constants.out_file).toFile());
err = new ProjectFile(Paths.get(Home.getAbsolutePath(), Constants.data, Constants.err_file).toFile());
}
public boolean isMatch(SapforVersion_json version_json) {
if (!description.equals(version_json.description)) {