File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
build-logic/src/main/kotlin/org/sdkotlin/buildlogic/globalexec Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import javax.inject.Inject
13
13
14
14
abstract class BuildScopedGreetingService :
15
15
BuildService <BuildScopedGreetingService .Params > {
16
+
16
17
interface Params : BuildServiceParameters {
17
18
val greeting: Property <String >
18
19
}
@@ -32,6 +33,7 @@ abstract class BuildScopedGreetingService :
32
33
)
33
34
)
34
35
standardOutput = System .out
36
+ errorOutput = System .err
35
37
}.exitValue
36
38
}
37
39
}
@@ -71,11 +73,12 @@ abstract class ProjectScopedGreetingTask : DefaultTask() {
71
73
buildCurrentOsCommand(" echo" , greeting)
72
74
)
73
75
standardOutput = System .out
76
+ errorOutput = System .err
74
77
}
75
78
}
76
79
}
77
80
78
- fun buildCurrentOsCommand (vararg arguments : String ): List <String > =
81
+ private fun buildCurrentOsCommand (vararg arguments : String ): List <String > =
79
82
buildList {
80
83
val isWindows = System .getProperty(" os.name" )
81
84
.contains(" windows" , ignoreCase = true )
You can’t perform that action at this time.
0 commit comments