01: /*******************************************************************************
02: * Copyright (c) 2000, 2005 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.pde.internal.build.tasks;
11:
12: import org.apache.tools.ant.BuildException;
13: import org.apache.tools.ant.Task;
14: import org.eclipse.pde.internal.build.BrandingIron;
15:
16: /**
17: *
18: */
19: public class BrandTask extends Task {
20:
21: BrandingIron iron;
22:
23: public BrandTask() {
24: iron = new BrandingIron();
25: }
26:
27: public void setName(String value) {
28: iron.setName(value);
29: }
30:
31: public void setIcons(String value) {
32: iron.setIcons(value);
33: }
34:
35: public void setRoot(String value) {
36: iron.setRoot(value);
37: }
38:
39: public void setOS(String value) {
40: iron.setOS(value);
41: }
42:
43: public void execute() throws BuildException {
44: try {
45: iron.brand();
46: } catch (Exception e) {
47: throw new BuildException(e);
48: }
49: }
50: }
|