KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > pde > internal > build > tasks > BrandTask


1 /*******************************************************************************
2  * Copyright (c) 2000, 2005 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

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 /**
18  *
19  */

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 JavaDoc value) {
29         iron.setName(value);
30     }
31
32     public void setIcons(String JavaDoc value) {
33         iron.setIcons(value);
34     }
35
36     public void setRoot(String JavaDoc value) {
37         iron.setRoot(value);
38     }
39
40     public void setOS(String JavaDoc value) {
41         iron.setOS(value);
42     }
43
44     public void execute() throws BuildException {
45         try {
46             iron.brand();
47         } catch (Exception JavaDoc e) {
48             throw new BuildException(e);
49         }
50     }
51 }
52
Popular Tags