Баг. в нескольких местах неправильно определялось рабочее пространство визуализатора по умолчанию.
This commit is contained in:
@@ -673,8 +673,8 @@ public class Utils {
|
||||
for (String ext : extensions) {
|
||||
if (file_extension.equalsIgnoreCase(ext)) {
|
||||
res.add(file);
|
||||
// System.out.println(file.getAbsolutePath() + ":" + Utils.Brackets(file_extension));
|
||||
// System.out.println("MATCH");
|
||||
// System.out.println(file.getAbsolutePath() + ":" + Utils.Brackets(file_extension));
|
||||
// System.out.println("MATCH");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1038,9 +1038,15 @@ public class Utils {
|
||||
}
|
||||
public static void copyDirectory(File src, File dst) throws Exception {
|
||||
int code = Constants.Nan;
|
||||
String command = "xcopy " +
|
||||
Utils.DQuotes(src.getAbsolutePath()) + " " +
|
||||
Utils.DQuotes(dst.getAbsolutePath()) + " /e";
|
||||
String command =
|
||||
Global.isWindows ?
|
||||
("xcopy " +
|
||||
Utils.DQuotes(src.getAbsolutePath()) + " " +
|
||||
Utils.DQuotes(dst.getAbsolutePath()) + " /e")
|
||||
:
|
||||
("cp -r " + Utils.DQuotes(src.getAbsolutePath()) + " " +
|
||||
Utils.DQuotes(dst.getAbsolutePath())
|
||||
);
|
||||
try {
|
||||
code = Runtime.getRuntime().exec(command).waitFor();
|
||||
} catch (Exception ex) {
|
||||
|
||||
Reference in New Issue
Block a user