We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac835e6 commit 32bb36fCopy full SHA for 32bb36f
src/main/groovy/com/marklogic/gradle/task/MlcpTask.groovy
@@ -208,7 +208,11 @@ class MlcpTask extends JavaExec {
208
File logOutputFile = null
209
if (logOutputUri) {
210
println "Will write mlcp log output to URI: " + logOutputUri
211
- logOutputFile = new File(getProject().getBuildDir(), "mlcp-log-output-" + System.currentTimeMillis() + ".txt")
+ def buildDir = getProject().layout.buildDirectory.asFile.get()
212
+ if (!buildDir.exists()) {
213
+ buildDir.mkdir()
214
+ }
215
+ logOutputFile = new File(buildDir, "mlcp-log-output-" + System.currentTimeMillis() + ".txt")
216
setStandardOutput(logOutputFile.newOutputStream())
217
}
218
0 commit comments