Name

typedef

Synopsis

Adds one or more custom DataType definitions to the current project.

Attributes

name (1.4, String, *)

The name of the DataType to add.

classname (1.4, String, *)

The Java class implementing the DataType.

file (1.4, File, N)

A properties file containing DataType definitions. Each line is of the form:

name=classname
resource (1.4, String, N)

The Java resource name of a properties file. Uses a ClassLoader to load the properties file.

classpath (1.4, Path, N)

The classpath to use.

The name and classname attributes are required unless the file or resource attribute is specified.

Content

0,1 nested <classpath> elements (1.4)

May be used in place of the classpath attribute.

Example Usage

The following example creates the custom DataType customer, which is implemented by the class com.oreilly.domain.Customer.

<typedef name="customer" classname="com.oreilly.domain.Customer"/>

Get Ant: The Definitive Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.