File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
src/main/groovy/com/marklogic/gradle/task Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments