Exemple #1
0
 private Set<String> getExcludes() {
   Set<String> result = new HashSet<String>();
   for (String exclude : kp.getExcludes()) {
     String name = exclude + ".class";
     String renamed = renames.get(name);
     result.add((renamed != null) ? renamed : name);
   }
   return result;
 }
Exemple #2
0
 public void strip(File file) throws IOException {
   if (kp == null) return;
   Set<String> excludes = getExcludes();
   if (!excludes.isEmpty())
     StandaloneJarProcessor.run(file, file, new ExcludeProcessor(excludes, verbose));
 }