我试图修补由于HHH-6960而导致的休眠。但是,执行gradle clean build
时会出现以下问题。通过gradle构建Hibernate 4.1.2.final的问题
FAILURE: Build failed with an exception.
* Where:
Build file 'C:\Work\Samples\hibernate-release-4.1.2.Final\project\documentation\documentation.gradle' line: 13
* What went wrong:
A problem occurred evaluating project ':documentation'.
> Could not find property 'buildDirName' on project ':documentation'.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 11.502 secs
PS C:\Work\Samples\hibernate-release-4.1.2.Final\project\hibernate-envers>
这没有任何修改就开箱即用......我只是下载了hibernate和gradle并运行它。我对gradle很陌生,所以我做错了什么?
在此先感谢。
请查看我对ctapobep的回复的评论。 – mosgjig 2012-04-24 15:29:49
只是一个猜测:你的JAVA_HOME是指向一个jre而不是一个jdk?为了得到进一步的帮助,请提供gradlew clean test的输出-i – 2012-04-24 15:51:18
只好安装groovy,它也添加到groovy_home中以env变量。我还将Java_home添加到env变量中。 – mosgjig 2012-04-24 18:11:33