On May 28, 2009, at 9:32 AM, Mark Gaylard wrote:
Hi all.
We were testing our product (which has a gradle build) using the IBM
jdk and I thought I'd try building it using this jdk instead of the
sun one. Straight away I got a NullPointerException from gradle
while trying to load the settings.gradle file. After a bit of
digging, I worked out that the problem is to do with the
version.properties file used by the GradleVersion class. This
properties file is located by the path '/version.properties' and is
located in the gradle jar. However, the IBM jdk also has a jar file
with a version.properties in the same location in the
healthcenter.jar located in jre/lib/ext. This jar is on the
classpath before the gradle jar, so this version.properties file is
used.
Removing the healthcenter.jar then running gradle appears to work ok.
To reproduce this, just run gradle -version using the IBM jdk. The
gradle version will show up as 'null'. The NullPointerException will
show up if you run gradle -t.
I've created a jira issue: http://jira.codehaus.org/browse/GRADLE-508
Thanks for reporting this. This should be easy to fix. We plan to make
this fix part of our 0.6.1 bugfix release scheduled for tomorrow.
Lessons Learnt: Use namespaces for property files :)
- Hans
--
Hans Dockter
Gradle Project Manager
http://www.gradle.org
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email