Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for gradleRuntime (0.25 sec)

  1. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/code/UserCodeApplicationContext.java

         */
        void apply(UserCodeSource source, Action<? super UserCodeApplicationId> action);
    
        /**
         * Runs some Gradle runtime code.
         */
        void gradleRuntime(Runnable runnable);
    
        /**
         * Returns an action that represents some deferred execution of the current user code. While the returned action is running, the details of the current application are restored.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 06:02:18 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  2. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/code/DefaultUserCodeApplicationContext.java

            try {
                action.execute(id);
            } finally {
                currentApplication.set(current);
            }
        }
    
        @Override
        public void gradleRuntime(Runnable runnable) {
            CurrentApplication current = currentApplication.get();
            //noinspection ThreadLocalSetWithNull
            currentApplication.set(null);
            try {
                runnable.run();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 06:47:40 UTC 2024
    - 4K bytes
    - Viewed (0)
  3. platforms/ide/problems-api/src/test/groovy/org/gradle/internal/code/DefaultUserCodeApplicationContextTest.groovy

            def id1
    
            when:
            context.apply(source, action)
    
            then:
            1 * action.execute(_) >> { UserCodeApplicationId id ->
                id1 = id
                context.gradleRuntime(action2)
                assert context.current().id == id
                assert context.current().source == source
            }
            1 * action2.run() >> {
                assert context.current() == null
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Sep 27 13:19:04 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  4. subprojects/core/src/integTest/groovy/org/gradle/api/invocation/GradleLifecycleIsolationIntegrationTest.groovy

        }
    
        def 'lifecycle actions can be registered in the context of the Gradle runtime'() {
            given:
            settingsFile """
                ${userCodeApplicationContext}.gradleRuntime {
                    gradle.lifecycle.beforeProject {
                        println("before:" + $currentApplication)
                    }
    
                    gradle.lifecycle.afterProject {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 22 05:18:22 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  5. subprojects/core/src/main/java/org/gradle/internal/service/scopes/BuildScopeServices.java

            // Services are created on demand, and this may happen while applying a plugin
            userCodeApplicationContext.gradleRuntime(() -> {
                for (BuildScopeToolingModelBuilderRegistryAction registryAction : registryActions) {
                    registryAction.execute(registry);
                }
            });
            return registry;
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 09:21:42 UTC 2024
    - 35.8K bytes
    - Viewed (0)
  6. platforms/core-runtime/build-process-services/src/main/java/org/gradle/launcher/bootstrap/ProcessBootstrap.java

            ClassLoaderFactory classLoaderFactory = new DefaultClassLoaderFactory();
            ClassPath antClasspath = classPathRegistry.getClassPath("ANT");
            ClassPath runtimeClasspath = classPathRegistry.getClassPath("GRADLE_RUNTIME");
            ClassLoader antClassLoader = classLoaderFactory.createIsolatedClassLoader("ant-loader", antClasspath);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 06:16:07 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  7. platforms/core-runtime/build-process-services/src/main/java/org/gradle/api/internal/DefaultClassPathProvider.java

        public DefaultClassPathProvider(ModuleRegistry moduleRegistry) {
            this.moduleRegistry = moduleRegistry;
        }
    
        @Override
        public ClassPath findClassPath(String name) {
            if (name.equals("GRADLE_RUNTIME")) {
                // Use everything reachable from the daemon implementation
                return moduleRegistry.getModule("gradle-daemon-server").getAllRequiredModulesClasspath();
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jun 10 14:28:48 UTC 2024
    - 4.6K bytes
    - Viewed (0)
Back to top