Skip to content

Commit

Permalink
Testing: make 'zipTree' service method access config cache friendly
Browse files Browse the repository at this point in the history
  • Loading branch information
jjohannes committed Aug 19, 2024
1 parent d5678b7 commit c0eaebe
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -613,9 +613,10 @@ abstract class AbstractFunctionalTest extends Specification {
}
tasks.named("run") {
val archives = objects.newInstance(ServiceInjection::class.java).archiveOperations
inputs.files(configurations.runtimeClasspath.get().filter {
it.name == "qpid-broker-core-8.0.6-module.jar"
}.elements.map { zipTree(it.single()) })
}.elements.map { archives.zipTree(it.single()) })
doLast {
println(
inputs.files.find {
Expand All @@ -624,6 +625,10 @@ abstract class AbstractFunctionalTest extends Specification {
)
}
}
interface ServiceInjection {
@get:Inject
val archiveOperations: ArchiveOperations
}
"""

when:
Expand Down

0 comments on commit c0eaebe

Please sign in to comment.