Hi AdRiAN,

On Tue, Aug 3, 2010 at 6:53 AM, Adrian Shum <[email protected]> wrote:
>
> I am trying to develop a plugin which will generate certain resources
> base on compiled classes and dependencies.

Cool.

> Is there any suggestion for me?

You could quite easily solve this if you just create another module
which depends on your domain object module. Then run your classpath
scanning for @Entity / @Embedded, etc, and output a persistence.xml.
Trying to do this process in the same module without using APT *and*
using the compiled classes will be difficult if not impossible. If you
wanted to simply examine the source code and the dependency classpath,
maybe it would work. But since you're oddly requiring compiled code,
I'm fairly sure it will not.

Just break it into separate modules and all will be fine. Or use APT.

-Jesse

-- 
There are 10 types of people in this world, those
that can read binary and those that can not.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to