1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-23 08:18:52 -05:00

Fix -DuseExtendedFileAttributes=false NOT WORKING issues

This commit is contained in:
Reinhard Pointner 2016-05-07 17:01:39 +08:00
parent 68faa9b53d
commit 5974367fd1

View File

@ -363,10 +363,16 @@ public class Main {
System.setProperty("grape.root", ApplicationFolder.AppData.resolve("grape").getAbsolutePath());
System.setProperty("org.apache.commons.logging.Log", "org.apache.commons.logging.impl.NoOpLog");
System.setProperty("unixfs", Boolean.toString(args.unixfs));
System.setProperty("useExtendedFileAttributes", Boolean.toString(!args.disableExtendedAttributes));
System.setProperty("useCreationDate", Boolean.toString(!args.disableExtendedAttributes));
System.setProperty("application.rename.history", Boolean.toString(!args.action.equalsIgnoreCase("test"))); // do not keep history of --action test rename operations
if (args.unixfs) {
System.setProperty("unixfs", "true");
}
if (args.disableExtendedAttributes) {
System.setProperty("useExtendedFileAttributes", "false");
System.setProperty("useCreationDate", "false");
}
if (args.action.equalsIgnoreCase("test")) {
System.setProperty("application.rename.history", "false"); // do not keep history of --action test rename operations
}
}
public static void initializeLogging(ArgumentBean args) throws IOException {