https://github.com/hibernate/hibernate-core/blob/master/hibernate- entitymanager/hibernate-entitymanager.gradle
Specifically note the -s option given to javac; that defines the override of the directory into which annotation processor output gets written. If done in this manner (-s) then javac itself already knows to do the right thing. Consider voting for http://jira.codehaus.org/browse/GRADLE-1006 too :) On Tuesday, February 15, 2011, at 05:54 am, Micha Glave wrote: > I am using the "Hibernate JPA 2 Metamodel Generator", it's a > Annotation (Pre)Processor (JSR 269) for Java Persistence. > > After adding it to compile-dependecies it generates the java files in > the classes dir while task compileJava executes. > > How can I change the target-dir just for the Generator in a temp-dir > e.g. build/metamodel and add it to the sourcepath of the > real-compiler? > > Do I have to compile 2 times (once with compiler arg '-proc:only' and > second with '-proc:none' switching from only processing to not > processing? How can I do this? > > > Is there ready to use function in gradle for this task? > > Thanks > > Micha > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email --- Steve Ebersole <[email protected]> http://hibernate.org --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
