You could also use Eclipse's ASTParser to scan sources for annotations.
Rahul
Jason van Zyl wrote:
On 25-Feb-08, at 2:21 AM, Bengali Bengali wrote:
I need to find annotated classes and generate an XML file.
Since i haven't found any good library to scan source files for
annotations.
QDox is awesome. It's what we use actually.
I decided to compile classes -> then run my maven plugin to find
annotations.
I have been able to do it instantiating my own classloader (adding it
target/classes directory)
and running my class scanner to detect annotations. It works now but i
have
to perform some reflection to instantiate my scanner in its own
classloader.
I thought of using my class scanner directly in my maven plugin and
run the
plugin in a URLClassLoader that has already the classes/target url in it.
Hope i have been clear enough.
Thanks
Luc
On Sat, Feb 23, 2008 at 1:59 AM, Jason van Zyl <[EMAIL PROTECTED]> wrote:
It has the code for populating a classloader, and anything in Maven
uses plexus. If you're writing a Maven plugin it uses plexus.
What exactly are you trying to do aside from populating a classloader
with the classes and dependencies of the current project?
On 22-Feb-08, at 1:55 PM, Bengali Bengali wrote:
Thanks,
Jason
----------------------------------------------------------
Jason van Zyl
Founder, Apache Maven
jason at sonatype dot com
----------------------------------------------------------
the course of true love never did run smooth ...
-- Shakespeare
---------------------------------------------------------------------
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]