Skip to content

Commit edd1e83

Browse files
committed
#448 Tweaked logging for mlPrepareBundles
1 parent b9af432 commit edd1e83

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/main/groovy/com/marklogic/gradle/task/client/PrepareBundlesTask.groovy

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ class PrepareBundlesTask extends MarkLogicTask {
2222
if (getProject().configurations.find { it.name == configurationName }) {
2323
Configuration config = getProject().getConfigurations().getAt(configurationName)
2424
if (config.files) {
25-
println "Found " + configurationName + " configuration, will extract all of its dependencies to build/" + configurationName
25+
26+
getLogger().info("Found " + configurationName + " configuration, will extract all of its dependencies to build/" + configurationName)
2627

2728
if ("mlRestApi".equals(configurationName)) {
2829
println "\nWARNING: mlRestApi is deprecated as of release 3.13.0, please use mlBundle instead, which is a drop-in replacement.\n"
@@ -82,30 +83,30 @@ class PrepareBundlesTask extends MarkLogicTask {
8283
}
8384

8485
// The config paths of the dependencies should be before the original config paths
85-
println "Finished extracting " + configurationName + " dependencies"
86+
getLogger().info("Finished extracting " + configurationName + " dependencies")
8687

8788
if (!newModulePaths.isEmpty()) {
8889
newModulePaths.addAll(modulePaths)
8990
getAppConfig().setModulePaths(newModulePaths)
90-
println "Module paths including mlBundle paths: " + getAppConfig().getModulePaths()
91+
getLogger().info("Module paths including mlBundle paths: " + getAppConfig().getModulePaths())
9192
}
9293

9394
if (!newDataPaths.isEmpty()) {
9495
newDataPaths.addAll(dataPaths)
9596
getAppConfig().getDataConfig().setDataPaths(newDataPaths)
96-
println "Data paths including mlBundle paths: " + getAppConfig().getDataConfig().getDataPaths()
97+
getLogger().info("Data paths including mlBundle paths: " + getAppConfig().getDataConfig().getDataPaths())
9798
}
9899

99100
if (!newPluginPaths.isEmpty()) {
100101
newPluginPaths.addAll(pluginPaths)
101102
getAppConfig().getPluginConfig().setPluginPaths(newPluginPaths)
102-
println "Plugin paths including mlBundle paths: " + getAppConfig().getPluginConfig().getPluginPaths()
103+
getLogger().info("Plugin paths including mlBundle paths: " + getAppConfig().getPluginConfig().getPluginPaths())
103104
}
104105

105106
if (!newSchemaPaths.isEmpty()) {
106107
newSchemaPaths.addAll(schemaPaths)
107108
getAppConfig().setSchemaPaths(newSchemaPaths)
108-
println "Schema paths including mlBundle paths: " + getAppConfig().getSchemaPaths()
109+
getLogger().info("Schema paths including mlBundle paths: " + getAppConfig().getSchemaPaths())
109110
}
110111
}
111112
}

0 commit comments

Comments
 (0)