Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [jdt-apt-dev] Re: APT as api and tools.jar

1. Is APT going to make it into Eclipse 3.2?

Yep - it is "in" 3.2 in the sense that it's in the code base, but
currently resides on a branch. The branch will be integrated with the
head by the February platform milestone date. (I believe that's around
2/19.)

2. tools.jar - how can APT make it into 3.2 if you have to copy
tools.jar?

First, Sun is BSD licensing the mirror APIs, so it will be possible to
include a stripped down version of "tools.jar" as part of the Eclipse
3.2 image. However, since it is dependent on a 1.5 VM, the APT
functionality will not be enabled for use unless the VM Eclipse is
running on is 1.5 or greater. That's also what would happen if we were
unable to include the jar for any reason - the functionality would be
gracefully disabled unless the VM was correct and "tools.jar" was
available. In that (hopefully unlikely) scenario, users would have to
obtain their own, properly licensed, version of tools.jar in order for
the functionality to appear.

Finally, your use case sounds like a description of a classic annotation
processor; what's the problem with approaching it that way?

-----Original Message-----
From: jdt-apt-dev-bounces@xxxxxxxxxxx
[mailto:jdt-apt-dev-bounces@xxxxxxxxxxx] On Behalf Of Geoff Longman
Sent: Monday, January 02, 2006 8:12 AM
To: jdt-apt-dev@xxxxxxxxxxx
Subject: [jdt-apt-dev] Re: APT as api and tools.jar

Oops sent before I was done my use case:

 1. Load xml spec
 2. Locate class (usually a java file but not always)
 3. Find all tapestry annotations on the class (incl inherited)
 for each annotation:
   do something
 4. get all methods (not just locally declared methods)
    for each method:
       get method annotations
          for each annotation:
             do something.

Geoff


On 1/2/06, Geoff Longman <glongman@xxxxxxxxx> wrote:
> Hey,
>
> Just stumbled over APT and I must say it is very cool. Have some
questions...
>
> 1. Is APT going to make it into Eclipse 3.2?
> 2. tools.jar - how can APT make it into 3.2 if you have to copy
tools.jar?
>
> Lastly, any thoughts yet on the API story for APT? I'm building a
> project that has a builder, and that builder needs to access stuff
> like annotations at the source level. My story does not fit into that
> of an annotation processor but having access to the mirror api
> implementation provided by APT would really help me out.
>
> A bit of a use case - the tooling is for the Tapestry
> (http://jakarta.apache.org/tapestry)
>

>
>
>
>
> --
> The Spindle guy.           http://spindle.sf.net
> Get help with Spindle:
> http://lists.sourceforge.net/mailman/listinfo/spindle-user
> Announcement Feed:
> http://www.jroller.com/rss/glongman?catname=/Announcements
> Feature Updates:            http://spindle.sf.net/updates
>


--
The Spindle guy.           http://spindle.sf.net
Get help with Spindle:   
http://lists.sourceforge.net/mailman/listinfo/spindle-user
Announcement Feed:    
http://www.jroller.com/rss/glongman?catname=/Announcements
Feature Updates:            http://spindle.sf.net/updates
_______________________________________________
jdt-apt-dev mailing list
jdt-apt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jdt-apt-dev


Back to the top