Skip to content

Commit

Permalink
Set executable during task configuration
Browse files Browse the repository at this point in the history
This task's `executable` is an input to the task.  We should set it
during task configuration time for more precise caching.
  • Loading branch information
liblit committed Sep 10, 2023
1 parent a4d743a commit 0f12a04
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cast/smoke_main/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,12 @@ application {

// main executable to run for test
inputs.file(linkedFile)
doFirst { executable(linkedFile.get().asFile) }
executable(
object {
val toString by lazy { linkedFile.get().asFile.toString() }

override fun toString() = toString
})

// xlator Java bytecode + implementation of native methods
val pathElements = project.objects.listProperty<File>()
Expand Down

0 comments on commit 0f12a04

Please sign in to comment.