source: other-projects/trunk/gs3-release-maker/apache-ant-1.6.5/src/main/org/apache/tools/ant/taskdefs/Taskdef.java@ 14627

Last change on this file since 14627 was 14627, checked in by oranfry, 17 years ago

initial import of the gs3-release-maker

File size: 1.7 KB
Line 
1/*
2 * Copyright 2000-2004 The Apache Software Foundation
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 *
16 */
17
18package org.apache.tools.ant.taskdefs;
19
20import org.apache.tools.ant.Task;
21import org.apache.tools.ant.TaskAdapter;
22
23/**
24 * Adds a task definition to the current project, such that this new task can be
25 * used in the current project. Two attributes are needed, the name that identifies
26 * this task uniquely, and the full name of the class (including the packages) that
27 * implements this task.</p>
28 * <p>You can also define a group of tasks at once using the file or
29 * resource attributes. These attributes point to files in the format of
30 * Java property files. Each line defines a single task in the
31 * format:</p>
32 * <pre>
33 * taskname=fully.qualified.java.classname
34 * </pre>
35 * @since Ant 1.1
36 * @ant.task category="internal"
37 */
38public class Taskdef extends Typedef {
39
40 /**
41 * Default constructor.
42 * Creates a new Taskdef instance.
43 * This sets the adapter and the adaptto classes to
44 * TaskAdapter and Task.
45 */
46
47 public Taskdef() {
48 setAdapterClass(TaskAdapter.class);
49 setAdaptToClass(Task.class);
50 }
51}
Note: See TracBrowser for help on using the repository browser.