KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ant > core > Task


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.ant.core;
12
13
14 import org.eclipse.ant.internal.core.AntObject;
15
16 /**
17  * Represents an Ant task.
18  * Clients may instantiate this class; it is not intended to be subclassed.
19  * @since 2.1
20  */

21 public class Task extends AntObject {
22
23     /**
24      * Returns the name of the task
25      * @return the name of the task
26      */

27     public String JavaDoc getTaskName() {
28         return fName;
29     }
30
31     /**
32      * Sets the name of the task
33      * @param taskName The taskName to set
34      */

35     public void setTaskName(String JavaDoc taskName) {
36         fName= taskName;
37     }
38 }
39
Popular Tags