Skip to content

Commit

Permalink
#428 Ensuring the property exists before checking it
Browse files Browse the repository at this point in the history
  • Loading branch information
rjrudin committed Feb 8, 2019
1 parent fb1a852 commit 2fc7f5f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ class MarkLogicPlugin implements Plugin<Project> {
DefaultAppConfigFactory appConfigFactory = new DefaultAppConfigFactory(propertySource)
// The ConfigDir objects constructed by AppConfig must all be relative to the project directory
// when using Java 11. In case this causes problems, a user can disable this via the below property
if ("true".equals(project.property("mlIgnoreProjectDir"))) {
if (project.hasProperty("mlIgnoreProjectDir") && "true".equals(project.property("mlIgnoreProjectDir"))) {
println "The Gradle projectDir will not be used to resolve file paths"
} else {
appConfigFactory.setProjectDir(project.getProjectDir())
Expand Down

0 comments on commit 2fc7f5f

Please sign in to comment.