Re: Plugin descriptor extractor for JDK1.5 sources/annotations?

2006-05-19 Thread Yoav Landman

Sorry, link missing -
http://sourceforge.net/projects/mvn-anno-mojo

--
View this message in context: 
http://www.nabble.com/Plugin+descriptor+extractor+for+JDK1.5+sources-annotations--t1420471.html#a4475521
Sent from the Maven - Dev forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Plugin descriptor extractor for JDK1.5 sources/annotations?

2006-05-19 Thread Yoav Landman

I have already implemented the above, with APT and QDox-1.6-SNAPSHOT (which
lives peacefully with 1.5 syntax).
It is currently avalibale through SVN only.


I'll be glad to contribute this to Maven.

Yoav
--
View this message in context: 
http://www.nabble.com/Plugin+descriptor+extractor+for+JDK1.5+sources-annotations--t1420471.html#a4475456
Sent from the Maven - Dev forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Plugin descriptor extractor for JDK1.5 sources/annotations?

2006-04-10 Thread Johann Reyes
Hello Jochen

I had that same problem when I tried to write an annotation finder tool for
hibernate. Tried using qdox, but really doesn't like jdk1.5 annotations, so
what I did is write a specific tool in jdk1.5 and then include it in the
plugin using profiles and activation depending in the jdk. So you might be
able to write something like that use qdox for 1.4 and something annotation
specific for 1.5

Regards

Johann Reyes

-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Jochen Kuhnle
Sent: Sunday, April 09, 2006 11:25 AM
To: dev@maven.apache.org
Subject: Plugin descriptor extractor for JDK1.5 sources/annotations?

Hi,

since qdox has some problems with JDK 1.5 sources, is there a plugin 
descriptor extractor for JDK1.5 sources with annotations?

If not, I'd go ahead and write one. Looks fairly straightforward to me, 
except for the choice which extractor to use in a project, or in other 
words, how to prevent the qdox extractor from running.  Ideally, this 
would be configured in the plugin plugin section of the POM, but I do 
not know how to get this information down to the extractor. It is called 
through AbstractGeneratorMojo.execute() --> 
DefaultMojoScanner.populatePluginDescriptor(MavenProject, 
PluginDescriptor) --> JavaMojoDescriptorExtractor.execute(MavenProject, 
DescriptorExtractor). How do I get the plugin configuration here?

Regards,
Jochen


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Plugin descriptor extractor for JDK1.5 sources/annotations?

2006-04-10 Thread Jochen Kuhnle


Brett Porter wrote:

I'm not sure this is plugin configuration - it should determine it from
the format of the source file?

Should it just do two passes and merge them?


The problem is that QDOX cannot parse JDK 1.5 sources, e.g. it chokes on 
Map. IMO, the POM should specify that your sources are 1.5, just 
as you have to do with the compiler plugin.




Are you planning to manually parse the annotations from the source files?


Not sure yet on how to implement it. I would first investigate using Sun's
annotation processing tool (apt).

Regards,
Jochen


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Plugin descriptor extractor for JDK1.5 sources/annotations?

2006-04-09 Thread Brett Porter
I'm not sure this is plugin configuration - it should determine it from
the format of the source file?

Should it just do two passes and merge them?

Are you planning to manually parse the annotations from the source files?

- Brett

Jochen Kuhnle wrote:
> Hi,
> 
> since qdox has some problems with JDK 1.5 sources, is there a plugin
> descriptor extractor for JDK1.5 sources with annotations?
> 
> If not, I'd go ahead and write one. Looks fairly straightforward to me,
> except for the choice which extractor to use in a project, or in other
> words, how to prevent the qdox extractor from running.  Ideally, this
> would be configured in the plugin plugin section of the POM, but I do
> not know how to get this information down to the extractor. It is called
> through AbstractGeneratorMojo.execute() -->
> DefaultMojoScanner.populatePluginDescriptor(MavenProject,
> PluginDescriptor) --> JavaMojoDescriptorExtractor.execute(MavenProject,
> DescriptorExtractor). How do I get the plugin configuration here?
> 
> Regards,
> Jochen
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Plugin descriptor extractor for JDK1.5 sources/annotations?

2006-04-09 Thread Jochen Kuhnle

Hi,

since qdox has some problems with JDK 1.5 sources, is there a plugin 
descriptor extractor for JDK1.5 sources with annotations?


If not, I'd go ahead and write one. Looks fairly straightforward to me, 
except for the choice which extractor to use in a project, or in other 
words, how to prevent the qdox extractor from running.  Ideally, this 
would be configured in the plugin plugin section of the POM, but I do 
not know how to get this information down to the extractor. It is called 
through AbstractGeneratorMojo.execute() --> 
DefaultMojoScanner.populatePluginDescriptor(MavenProject, 
PluginDescriptor) --> JavaMojoDescriptorExtractor.execute(MavenProject, 
DescriptorExtractor). How do I get the plugin configuration here?


Regards,
Jochen


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]