1 11 package org.eclipse.pde.internal.build.tasks; 12 13 import org.apache.tools.ant.BuildException; 14 import org.apache.tools.ant.Task; 15 import org.eclipse.pde.internal.build.BrandingIron; 16 17 20 public class BrandTask extends Task { 21 22 BrandingIron iron; 23 24 public BrandTask() { 25 iron = new BrandingIron(); 26 } 27 28 public void setName(String value) { 29 iron.setName(value); 30 } 31 32 public void setIcons(String value) { 33 iron.setIcons(value); 34 } 35 36 public void setRoot(String value) { 37 iron.setRoot(value); 38 } 39 40 public void setOS(String value) { 41 iron.setOS(value); 42 } 43 44 public void execute() throws BuildException { 45 try { 46 iron.brand(); 47 } catch (Exception e) { 48 throw new BuildException(e); 49 } 50 } 51 } 52 | Popular Tags |