Skip to content

Commit

Permalink
Code cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
ianbrandt committed Nov 12, 2024
1 parent dde175e commit c3ecef1
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import javax.inject.Inject

abstract class BuildScopedGreetingService :
BuildService<BuildScopedGreetingService.Params> {

interface Params : BuildServiceParameters {
val greeting: Property<String>
}
Expand All @@ -32,6 +33,7 @@ abstract class BuildScopedGreetingService :
)
)
standardOutput = System.out
errorOutput = System.err
}.exitValue
}
}
Expand Down Expand Up @@ -71,11 +73,12 @@ abstract class ProjectScopedGreetingTask : DefaultTask() {
buildCurrentOsCommand("echo", greeting)
)
standardOutput = System.out
errorOutput = System.err
}
}
}

fun buildCurrentOsCommand(vararg arguments: String): List<String> =
private fun buildCurrentOsCommand(vararg arguments: String): List<String> =
buildList {
val isWindows = System.getProperty("os.name")
.contains("windows", ignoreCase = true)
Expand Down

0 comments on commit c3ecef1

Please sign in to comment.