1 /* 2 * Licensed to the Apache Software Foundation (ASF) under one or more 3 * contributor license agreements. See the NOTICE file distributed with 4 * this work for additional information regarding copyright ownership. 5 * The ASF licenses this file to You under the Apache License, Version 2.0 6 * (the "License"); you may not use this file except in compliance with 7 * the License. You may obtain a copy of the License at 8 * 9 * 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 /** 24 * 25 * Adds a data type definition to the current project. 26 * Two attributes are 27 * needed, the name that identifies this data type uniquely, and the full 28 * name of the class (including the packages) that implements this 29 * type. 30 * <p>You can also define a group of data types at once using the file or 31 * resource attributes. These attributes point to files in the format of 32 * Java property files. Each line defines a single data type in the 33 * format:</p> 34 * <pre> 35 * typename=fully.qualified.java.classname 36 * </pre> 37 * <p>Typedef should be used to add your own types to the system. Data 38 * types are things likepaths or filesets that can be defined at 39 * the project level and referenced via their ID attribute.</p> 40 * <p>Custom data types usually need custom tasks to put them to good use.</p> 41 * 42 * @since Ant 1.4 43 * @ant.task category="internal" 44 */ 45 public class Typedef extends Definer { 46 } 47