Introduction

The ant task is used to generate the MetaClass descriptors from annotated Java source files. The following table lists the attributes for ant task

Name Description Optional? Default Value
destDir The destination directory where descriptors are generated. Required n/a
namespaceTagsOnly A flag indicating whether attributes without any namespace (ie are not of form X.Y) should be added to descriptors. Valid values include true and false. Optional true
keepEmptyMethods A flag indicating whether method descriptors for methods with no attributes are kept. Optional false

The task also accepts child elements;

  • FileSet : Defines the files processed by task.
  • Interceptor : Defines interceptors applied to generation.
  • Filter : Defines filter applied to generation.

The Interceptor and Filter elements both accept a name parameter that defines the name of the class. The also contain a "classpath" element which is a path-like structure that defines the classpath used to load either the filter or interceptor.