I also dumped the compile task's source attribute and verified that it does 
only contain java files from the hibernate-entitymanager module.

On Wednesday, March 02, 2011, at 09:39 pm, Steve Ebersole wrote:
> Here is the output...
> 
> CLASSPATH : /home/steve/projects/hibernate/github/hibernate-core/hibernate-
> entitymanager/target/classes/main:/home/steve/projects/hibernate/github/hib
> ernate- core/hibernate-
> core/target/classes/test:/home/steve/.gradle/cache/dom4j/dom4j/jars/dom4j-1
> .6.1.jar:/home/steve/.gradle/cache/junit/junit/jars/junit-3.8.2.jar:/home/s
> teve/.gradle/cache/com.atomikos/transactions- jdbc/jars/transactions-
> jdbc-3.6.4.jar:/home/steve/.gradle/cache/com.atomikos/atomikos-
> util/jars/atomikos-
> util-3.6.4.jar:/home/steve/.gradle/cache/com.atomikos/transactions-
> api/jars/transactions-
> api-3.6.4.jar:/home/steve/.gradle/cache/com.atomikos/transactions/jars/tran
> sactions-3.6.4.jar:/home/steve/.gradle/cache/com.atomikos/transactions-
> jta/jars/transactions-
> jta-3.6.4.jar:/home/steve/.gradle/cache/com.atomikos/transactions-jdbc-
> deprecated/jars/transactions-jdbc-
> deprecated-3.6.4.jar:/home/steve/.gradle/cache/com.atomikos/transactions-jm
> s- deprecated/jars/transactions-jms-
> deprecated-3.6.4.jar:/home/steve/.gradle/cache/com.atomikos/transactions-
> jms/jars/transactions-
> jms-3.6.4.jar:/home/steve/.gradle/cache/com.atomikos/transactions-
> hibernate3/jars/transactions-
> hibernate3-3.6.4.jar:/home/steve/.gradle/cache/org.apache.geronimo.specs/ge
> ronimo- jta_1.0.1B_spec/jars/geronimo-
> jta_1.0.1B_spec-1.0.1.jar:/home/steve/.gradle/cache/javax.jms/jms/jars/jms-
> 1.1.jar:/home/steve/.gradle/cache/org.hibernate/hibernate/jars/hibernate-3.
> 2.5.ga.jar:/home/steve/.gradle/cache/xml- apis/xml-apis/jars/xml-
> apis-1.0.b2.jar:/home/steve/.gradle/cache/javax.transaction/jta/jars/jta-1.
> 1.jar:/home/steve/.gradle/cache/antlr/antlr/jars/antlr-2.7.7.jar:/home/stev
> e/.gradle/cache/commons- collections/commons-collections/jars/commons-
> collections-3.1.jar:/home/steve/.gradle/cache/net.sf.ehcache/ehcache/jars/e
> hcache-1.2.3.jar:/home/steve/.gradle/cache/commons-
> logging/commons-logging/jars/commons-
> logging-1.0.4.jar:/home/steve/.gradle/cache/asm/asm-attrs/jars/asm-
> attrs-1.5.3.jar:/home/steve/.gradle/cache/cglib/cglib/jars/cglib-2.1_3.jar:
> /home/steve/.gradle/cache/asm/asm/jars/asm-1.5.3.jar:/home/steve/.gradle/ca
> che/org.hibernate/hibernate- jpamodelgen/jars/hibernate-
> jpamodelgen-1.1.0.Final.jar:/home/steve/.gradle/cache/org.hibernate.javax.p
> ersistence/hibernate- jpa-2.0-api/jars/hibernate-jpa-2.0-
> api-1.0.0.Final.jar:/home/steve/.gradle/cache/org.jboss.shrinkwrap/shrinkwr
> ap- api/jars/shrinkwrap-api-1.0.0-
> alpha-6.jar:/home/steve/.gradle/cache/org.jboss.shrinkwrap/shrinkwrap-impl-
> base/jars/shrinkwrap-impl-base-1.0.0-
> alpha-6.jar:/home/steve/.gradle/cache/org.jboss.shrinkwrap/shrinkwrap-
> spi/jars/shrinkwrap-spi-1.0.0-
> alpha-6.jar:/home/steve/.gradle/cache/javax.validation/validation-
> api/jars/validation-
> api-1.0.0.GA.jar:/home/steve/.gradle/cache/org.slf4j/slf4j-api/jars/slf4j-
> api-1.5.8.jar:/home/steve/projects/hibernate/github/hibernate-core/hibernat
> e- core/target/libs/hibernate-core-4.0.0-
> SNAPSHOT.jar:/home/steve/projects/hibernate/github/hibernate-core/hibernate
> - core/target/libs/hibernate-core-4.0.0-SNAPSHOT-
> sources.jar:/home/steve/.gradle/cache/org.hibernate/hibernate-commons-
> annotations/jars/hibernate-commons-
> annotations-3.2.0.Final.jar:/home/steve/.gradle/cache/javassist/javassist/j
> ars/javassist-3.12.0.GA.jar
> 
> ARGS : [-s, /home/steve/projects/hibernate/github/hibernate-core/hibernate-
> entitymanager/target/generated-src/jpamodelgen]
> 
> OPTIONS : [failonerror:true, verbose:false, listfiles:false,
> deprecation:false, nowarn:false, optimize:false, debug:true, fork:false,
> includeJavaRuntime:false]
> 
> 
> One thing I found interesting is that the sources jar from hibernate-core
> is part of the classpath.  Maybe that is the source of the problem?  Other
> then that everything else looks reasonable to me.
> 
> On Wednesday, March 02, 2011, at 07:42 pm, Steve Ebersole wrote:
> > Oh missed the part about dumping the options.  Will do that when I get
> > back to computer
> > 
> > On Mar 2, 2011 6:40 PM, "Adam Murdoch" <[email protected]> 
wrote:
> > > On 03/03/2011, at 10:50 AM, Steve Ebersole wrote:
> > >> I am having an issue with compilation that I am not able to explain
> > >> and I
> > 
> > have
> > 
> > >> found no reason for it. Below is the copied build script.
> > >> 
> > >> This is in a project named 'hibernate-entitymanager'. Compiling the
> > >> tests
> > 
> > of
> > 
> > >> this project causes gralde to try and compile the main sources from
> > >> the dependent 'hibernate-core' module (even though they are already
> > 
> > compiled), but
> > 
> > >> it tries to do so as part of 'hibernate-entitymanager' (using its
> > 
> > configs)
> > 
> > >> which does not have all the needed deps to compile those classes.
> > > 
> > > So hibernate-entititymanager:compileTestJava is the task that is
> > > failing?
> > > 
> > > Do you configure any other compiler options for this task (in a parent
> > 
> > project, for example)?
> > 
> > > Perhaps you could print out the compiler options and classpath of the
> > 
> > task, something like:
> > > compileTestJava.doFirst {
> > > println classpath.asPath
> > > println options.compilerArgs
> > > println options.optionMap()
> > > }
> > > 
> > >> Any ideas?
> > >> 
> > >> 
> > >> build script ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > >> apply plugin: 'java'
> > >> 
> > >> dependencies {
> > >> shrinkwrapVersion = '1.0.0-alpha-6'
> > >> 
> > >> compile( project(':hibernate-core') )
> > >> compile( libraries.dom4j )
> > >> compile( libraries.commons_annotations )
> > >> compile( libraries.jpa )
> > >> compile( libraries.jta )
> > >> compile( libraries.javassist )
> > >> testCompile( project(':hibernate-core').sourceSets.test.classes )
> > >> testCompile( libraries.junit )
> > >> testCompile( libraries.jpa_modelgen )
> > >> testCompile( libraries.shrinkwrap_api )
> > >> testCompile( libraries.shrinkwrap )
> > >> testCompile( libraries.validation )
> > >> testCompile( libraries.slf4j_api )
> > >> testRuntime( libraries.validator )
> > >> }
> > >> 
> > >> procTargetDirName = buildDirName + "/generated-src/jpamodelgen"
> > >> procTargetDir = dir( procTargetDirName )
> > >> compileTestJava {
> > >> configure( options ) {
> > >> compilerArgs = [ "-s", "$procTargetDir.dir.absolutePath" ]
> > >> }
> > >> }
> > >> compileTestJava.dependsOn procTargetDir
> > >> 
> > >> bundlesTargetDirName = "$buildDirName/bundles"
> > >> bundlesTargetDir = dir( bundlesTargetDirName )
> > >> task copyBundleResources (type: Copy) {
> > >> from file('src/test/bundles')
> > >> into bundlesTargetDir.dir
> > >> filter(org.apache.tools.ant.filters.ReplaceTokens, tokens: [
> > >> buildDirName: buildDir.absolutePath,
> > >> 'db.dialect': 'org.hibernate.dialect.H2Dialect',
> > >> 'jdbc.driver': 'org.h2.Driver',
> > >> 'jdbc.user': 'sa',
> > >> 'jdbc.pass': '',
> > >> 'jdbc.url': 'jdbc:h2:mem:db1;DB_CLOSE_DELAY=-1;MVCC=TRUE',
> > >> ])
> > >> }
> > >> copyBundleResources.dependsOn bundlesTargetDir
> > >> 
> > >> // make sure that the bundles for the packaged test
> > >> (PackagingTestCase)
> > 
> > are
> > 
> > >> copied as well
> > >> processTestResources.dependsOn copyBundleResources
> > >> 
> > >> 
> > >> ---
> > >> Steve Ebersole <[email protected]>
> > >> http://hibernate.org
> > >> 
> > >> ---------------------------------------------------------------------
> > >> To unsubscribe from this list, please visit:
> > >> 
> > >> http://xircles.codehaus.org/manage_email
> > > 
> > > --
> > > Adam Murdoch
> > > Gradle Developer
> > > http://www.gradle.org
> > > Co-Founder and VP of Engineering, Gradleware Inc. - Gradle Training,
> > 
> > Support, Consulting
> > 
> > > http://www.gradleware.com
> 
> ---
> Steve Ebersole <[email protected]>
> http://hibernate.org

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

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

    http://xircles.codehaus.org/manage_email


Reply via email to