- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for onOperationCompletion (0.48 sec)
-
testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/WaitAtEndOfBuildFixture.groovy
parameters.waitTimeMillis.set(${waitTimeMillis}L) } gradle.services.get(${BuildEventListenerRegistryInternal.name}).onOperationCompletion(endOfBuildWait) """.stripIndent() } /** * Generates build logic to ensure builds last for a given minimum time. *
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 5.7K bytes - Viewed (0) -
subprojects/build-events/src/integTest/groovy/org/gradle/build/event/InternalBuildOperationEventsIntegrationTest.groovy
initScript << """ def listener = gradle.sharedServices.registerIfAbsent("listener", LoggingListener) { } def registry = services.get(BuildEventsListenerRegistry) registry.onOperationCompletion(listener) """ buildFile << """ task a task b """ executer.beforeExecute { usingInitScript(initScript) }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Oct 04 12:17:31 UTC 2023 - 4.5K bytes - Viewed (0) -
subprojects/build-events/src/main/java/org/gradle/internal/build/event/BuildEventListenerRegistryInternal.java
/** * Subscribes the given listener to build operation completion events. Note that no start events are forwarded to the listener. */ void onOperationCompletion(Provider<? extends BuildOperationListener> provider); void subscribe(Provider<?> provider); List<Provider<?>> getSubscriptions();
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Mar 12 02:21:10 UTC 2024 - 1.4K bytes - Viewed (0) -
subprojects/build-events/src/main/java/org/gradle/internal/build/event/DefaultBuildEventsListenerRegistry.java
onTaskCompletion(Cast.uncheckedCast(provider)); } else { onOperationCompletion(Cast.uncheckedCast(provider)); } } @Override public void onOperationCompletion(Provider<? extends BuildOperationListener> listenerProvider) { if (subscriptions.containsKey(listenerProvider)) { return; }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Jun 05 19:34:01 UTC 2024 - 12.5K bytes - Viewed (0) -
testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/BuildCacheKeyFixture.groovy
parameters.buildCacheKeyJson.fileValue(new File("${TextUtil.normaliseFileSeparators(file.absolutePath)}")) } gradle.services.get(${BuildEventListenerRegistryInternal.name}).onOperationCompletion(collector) } """ } @Override void afterBuild() { def rawBuildCacheKeys = (Map<String, List<Integer>>) new JsonSlurper().parse(file) buildCacheKeys.clear()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 4.7K bytes - Viewed (0) -
testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/OriginFixture.groovy
parameters.originJson.fileValue(new File("${TextUtil.normaliseFileSeparators(file.absolutePath)}")) } gradle.services.get(${BuildEventListenerRegistryInternal.name}).onOperationCompletion(collector) } """ } @Override void afterBuild() { def rawOrigins = (Map<String, Map<String, String>>) new JsonSlurper().parse(file) origins.clear()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 5.2K bytes - Viewed (0) -
testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/ProgressLoggingFixture.groovy
} // forces the service to be initialized immediately when configuration cache loads its cache gradle.services.get(BuildEventListenerRegistryInternal).onOperationCompletion(outputProgress) // forces the service to be initialized immediately outputProgress.get() } """ } @Override void afterBuild() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 7.2K bytes - Viewed (0) -
subprojects/build-events/src/test/groovy/org/gradle/internal/build/event/DefaultBuildEventsListenerRegistryTest.groovy
def descriptor = descriptor() def finishEvent = operationFinishEvent() def broadcaster = buildOperationListenerManager.broadcaster when: registry.onOperationCompletion(provider) then: registry.subscriptions.size() == 1 0 * listener._ when: async { broadcaster.started(descriptor, startOperationEvent())
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Mar 12 02:21:10 UTC 2024 - 8K bytes - Viewed (0) -
platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheBuildServiceIntegrationTest.groovy
} def listener = gradle.sharedServices.registerIfAbsent("listener", ListenerService) { } def registry = services.get(BuildEventsListenerRegistry) registry.onOperationCompletion(listener) """ def configurationCache = newConfigurationCacheFixture() when: configurationCacheRun() then: 'finish event is dispatched but start and progress are not'
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Jun 10 11:47:23 UTC 2024 - 29.1K bytes - Viewed (0) -
platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/transform/ArtifactTransformBuildOperationIntegrationTest.groovy
} } } def listener = gradle.sharedServices.registerIfAbsent("listener", LoggingListener) { } services.get(BuildEventsListenerRegistry).onOperationCompletion(listener) """ } def setupExternalDependency(TestFile buildFile = getBuildFile()) { def m1 = mavenRepo.module("test", "test", "4.2").publish()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Apr 12 16:27:38 UTC 2024 - 67.8K bytes - Viewed (0)