Update Tools.java

This commit is contained in:
Duy Tran Khanh 2021-10-18 19:58:02 +07:00 committed by GitHub
parent f619804941
commit 8e4d655bbb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -561,12 +561,14 @@ public final class Tools {
System.out.println("LIBRARY rule action " +rule.action); System.out.println("LIBRARY rule action " +rule.action);
if(rule.os!=null) System.out.println("LIBRARY OS name " +rule.os.name); if(rule.os!=null) System.out.println("LIBRARY OS name " +rule.os.name);
if (rule.action.equals("allow") && rule.os != null && rule.os.name.equals("osx")) { if (rule.action.equals("allow") && rule.os != null && rule.os.name.equals("osx")) {
System.out.println("LIBRARY SKIPPED " + libItem.name);
continue; continue;
} }
} }
} }
String[] libInfos = libItem.name.split(":"); String[] libInfos = libItem.name.split(":");
libDir.add(Tools.DIR_HOME_LIBRARY + "/" + Tools.artifactToPath(libInfos[0], libInfos[1], libInfos[2])); libDir.add(Tools.DIR_HOME_LIBRARY + "/" + Tools.artifactToPath(libInfos[0], libInfos[1], libInfos[2]));
System.out.println("LIBRARY ADDED " + libItem.name);
} }
return libDir.toArray(new String[0]); return libDir.toArray(new String[0]);
} }