1. /*
  2. * Copyright 2001-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. package org.apache.tools.ant.taskdefs;
  18. /**
  19. *
  20. * Adds a data type definition to the current project.
  21. * Two attributes are
  22. * needed, the name that identifies this data type uniquely, and the full
  23. * name of the class (including the packages) that implements this
  24. * type.
  25. * <p>You can also define a group of data types at once using the file or
  26. * resource attributes. These attributes point to files in the format of
  27. * Java property files. Each line defines a single data type in the
  28. * format:</p>
  29. * <pre>
  30. * typename=fully.qualified.java.classname
  31. * </pre>
  32. * <p>Typedef should be used to add your own types to the system. Data
  33. * types are things likepaths or filesets that can be defined at
  34. * the project level and referenced via their ID attribute.</p>
  35. * <p>Custom data types usually need custom tasks to put them to good use.</p>
  36. *
  37. * @since Ant 1.4
  38. * @ant.task category="internal"
  39. */
  40. public class Typedef extends Definer {
  41. }