Russel Winder wrote:
. . . without setting the pluginPropertiesFile property.

I am getting the NPE:

        java.lang.NullPointerException
                at 
org.gradle.api.internal.plugins.DefaultPluginRegistry.<init>(DefaultPluginRegistry.java:53)
                at 
org.gradle.invocation.DefaultGradle.<init>(DefaultGradle.java:67)
                at 
org.gradle.DefaultGradleFactory.newInstance(DefaultGradleFactory.java:102)
                at 
org.gradle.GradleLauncher.newInstance(GradleLauncher.java:185)
                at org.gradle.ant.Gradle.execute(Gradle.java:133)

which is happening because the StartParameter instance I am using has
the default values except for the Gradle file entry.  This means that
the default values are not acceptable to the code, i.e. there is
inconsistency.

So what value is acceptable given that I am forced to set something?


You're seeing a symptom here, rather than the cause. You don't have to set the plugin properties file. You do, however, have to set the StartParameters.gradleHomeDir property. When you don't, you get the above misleading error message. Of course, it would be much better if you got an error message telling you to set the Gradle home dir. Or if you didn't have to set it at all and Gradle just figured it out.


Adam


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

   http://xircles.codehaus.org/manage_email


Reply via email to