Skip to content

Commit cabc11f

Browse files
committed
Change the priority of task property
1 parent e6bd2b0 commit cabc11f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/main/groovy/com/marklogic/gradle/task/MarkLogicTask.groovy

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,14 @@ class MarkLogicTask extends DefaultTask {
5555
* @return
5656
*/
5757
DatabaseClient newClient(String database) {
58-
if (project.hasProperty("database")) {
59-
println "Connecting via the App-Services port to database: " + project.property("database")
60-
return getAppConfig().newAppServicesDatabaseClient(project.property("database"))
61-
}
62-
else if (database != null){
58+
if (database != null){
6359
println "Connecting via the App-Services port to database: " + database
6460
return getAppConfig().newAppServicesDatabaseClient(database)
6561
}
62+
else if (project.hasProperty("database")) {
63+
println "Connecting via the App-Services port to database: " + project.property("database")
64+
return getAppConfig().newAppServicesDatabaseClient(project.property("database"))
65+
}
6666
else {
6767
getAppConfig().newDatabaseClient()
6868
}

0 commit comments

Comments
 (0)