01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: *
17: */
18:
19: package org.apache.tools.ant.taskdefs;
20:
21: /**
22: *
23: * Adds a data type definition to the current project.
24: * Two attributes are
25: * needed, the name that identifies this data type uniquely, and the full
26: * name of the class (including the packages) that implements this
27: * type.
28: * <p>You can also define a group of data types 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 data type in the
31: * format:</p>
32: * <pre>
33: * typename=fully.qualified.java.classname
34: * </pre>
35: * <p>Typedef should be used to add your own types to the system. Data
36: * types are things likepaths or filesets that can be defined at
37: * the project level and referenced via their ID attribute.</p>
38: * <p>Custom data types usually need custom tasks to put them to good use.</p>
39: *
40: * @since Ant 1.4
41: * @ant.task category="internal"
42: */
43: public class Typedef extends Definer {
44: }
|