On Tue, 2010-08-31 at 23:15 +0200, Potje rode kool wrote:
> Does anyone got Hibernate metamodel generation (for JPA 2) working
> with gradle?

Yep, I have[1].  That's not overly difficult, but imo its more correct
for the compile task to allow setting certain processor specific
settings directly; see http://jira.codehaus.org/browse/GRADLE-1006

> Currently it only generates the source files, they don't get compiled.

You asked it to do this; by default javac will "recursively" run
annotations processor(s) and compile its output.  Most likey you used
'-proc:only' which says to not compile at all, just run the processor.

Personally I just used '-s' to specify an output dir for the
processor[2].

[1]
http://fisheye.jboss.org/browse/Hibernate/core/branches/gradle2/hibernate-entitymanager/hibernate-entitymanager.gradle?r=19824#l43

[2]
http://download-llnw.oracle.com/javase/6/docs/technotes/tools/solaris/javac.html#options
 

-- 
Steve Ebersole <[email protected]>
http://hibernate.org


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to