Carrot2

Plug bindable metadata processor as an annotation preprocessor.

Details

  • Type: Improvement Improvement
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 3.4.0
  • Component/s: Build infrastructure
  • Labels:
    None

Description

1. Reuse existing qdox for generating XML metadata.
Write an annotation processor that parses JavaDoc comments and
emits the same metadata.
2. Remove any leftover in-source XMLs.
3. Modify build.xml to make use of the apt generator.
4. Modify Eclipse to make use of the apt generator.

Issue Links

Activity

Hide
Dawid Weiss added a comment -

I just checked and have a working example code – annotation processors (in javac) are a sweet way of generating XML files from sources annotated with @Bindable. There is even a (standard) API to get hold of the JavaDoc from the parse tree, so we wouldn't have to use qdox for this.

Annotation processor support requires Java 1.6 support, so this is postponed until we move to 1.6.

Show
Dawid Weiss added a comment - I just checked and have a working example code – annotation processors (in javac) are a sweet way of generating XML files from sources annotated with @Bindable. There is even a (standard) API to get hold of the JavaDoc from the parse tree, so we wouldn't have to use qdox for this. Annotation processor support requires Java 1.6 support, so this is postponed until we move to 1.6.
Hide
Stanisław Osiński added a comment -

The 3.4.0 release will concentrate on a native C# API.

Show
Stanisław Osiński added a comment - The 3.4.0 release will concentrate on a native C# API.
Hide
Dawid Weiss added a comment -

Ready to be committed.

Show
Dawid Weiss added a comment - Ready to be committed.
Hide
Dawid Weiss added a comment -

git patch against trunk, for reference.

Show
Dawid Weiss added a comment - git patch against trunk, for reference.
Hide
Dawid Weiss added a comment -

In trunk.

Show
Dawid Weiss added a comment - In trunk.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: