1 11 package org.eclipse.pde.internal.build.jarprocessor; 12 13 import java.io.File ; 14 import java.util.List ; 15 import java.util.Properties ; 16 import org.eclipse.update.internal.jarprocessor.SignCommandStep; 17 18 public class UnsignCommand extends SignCommandStep { 19 20 public UnsignCommand(Properties options, String command, boolean verbose) { 21 super(options, command, verbose); 22 } 23 24 public File postProcess(File input, File workingDirectory, List containers) { 25 if (command != null && input != null && shouldSign(input, containers)) { 26 execute(input); 27 } 28 return null; 29 } 30 31 private void execute(File input) { 32 Unsigner jarUnsigner = new Unsigner(); 33 jarUnsigner.setJar(input); 34 jarUnsigner.setKeepManifestEntries(false); 35 jarUnsigner.execute(); 36 } 37 } 38 | Popular Tags |