1 11 package org.eclipse.pde.internal.build.jarprocessor; 12 13 import java.util.Properties ; 14 import org.apache.tools.ant.Project; 15 import org.eclipse.update.internal.jarprocessor.JarProcessor; 16 import org.eclipse.update.internal.jarprocessor.JarProcessorExecutor; 17 import org.eclipse.update.internal.jarprocessor.Main.Options; 18 19 public class AntBasedProcessorExecutor extends JarProcessorExecutor { 20 private Project project; 21 private Properties signArguments; 22 private String antTaskName; 23 24 public AntBasedProcessorExecutor(Properties signArguments, Project project, String antTaskName) { 25 this.signArguments = signArguments; 26 this.project = project; 27 this.antTaskName = antTaskName; 28 } 29 30 public void addSignStep(JarProcessor processor, Properties properties, Options options) { 31 if (signArguments.get(JarProcessorTask.UNSIGN) != null) 32 processor.addProcessStep(new UnsignCommand(properties, options.signCommand, options.verbose)); 33 if (signArguments.get(JarProcessorTask.SIGN) != null) 34 processor.addProcessStep(new AntSignCommand(properties, signArguments, project, antTaskName, options.signCommand, options.verbose)); 35 } 36 } 37 | Popular Tags |