File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -61,14 +61,14 @@ tasks {
6161 outputs.file(versionFile)
6262 outputs.cacheIf { true }
6363
64- doLast {
65- // run the shell script genVersionFileScript with versionPropertiesFile as argument
66- val scriptProcess =
67- providers.exec {
68- workingDir = rootProject.rootDir
69- commandLine = listOf (genVersionFileScript.toString(), versionPropertiesFile.toString())
70- }
64+ // provider to run the shell script genVersionFileScript with versionPropertiesFile as argument
65+ val scriptProcess =
66+ providers.exec {
67+ workingDir = rootProject.rootDir
68+ commandLine = listOf (genVersionFileScript.toString(), versionPropertiesFile.toString())
69+ }
7170
71+ doLast {
7272 val scriptOutput = scriptProcess.standardOutput.asText.get()
7373 if (scriptProcess.result.get().exitValue != 0 ) {
7474 val scriptError = scriptProcess.standardError.asText.get()
You can’t perform that action at this time.
0 commit comments