Skip to content

Commit c3ecef1

Browse files
committed
Code cleanup.
1 parent dde175e commit c3ecef1

File tree

1 file changed

+4
-1
lines changed
  • build-logic/src/main/kotlin/org/sdkotlin/buildlogic/globalexec

1 file changed

+4
-1
lines changed

build-logic/src/main/kotlin/org/sdkotlin/buildlogic/globalexec/GlobalExec.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import javax.inject.Inject
1313

1414
abstract class BuildScopedGreetingService :
1515
BuildService<BuildScopedGreetingService.Params> {
16+
1617
interface Params : BuildServiceParameters {
1718
val greeting: Property<String>
1819
}
@@ -32,6 +33,7 @@ abstract class BuildScopedGreetingService :
3233
)
3334
)
3435
standardOutput = System.out
36+
errorOutput = System.err
3537
}.exitValue
3638
}
3739
}
@@ -71,11 +73,12 @@ abstract class ProjectScopedGreetingTask : DefaultTask() {
7173
buildCurrentOsCommand("echo", greeting)
7274
)
7375
standardOutput = System.out
76+
errorOutput = System.err
7477
}
7578
}
7679
}
7780

78-
fun buildCurrentOsCommand(vararg arguments: String): List<String> =
81+
private fun buildCurrentOsCommand(vararg arguments: String): List<String> =
7982
buildList {
8083
val isWindows = System.getProperty("os.name")
8184
.contains("windows", ignoreCase = true)

0 commit comments

Comments
 (0)