Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 2,648 for action1 (0.13 sec)

  1. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/concurrent/IO.kt

    import java.io.File
    
    
    /**
     * A scheduler of IO actions.
     */
    interface IO {
    
        /**
         * Schedules the given [io action][action] for execution.
         *
         * The effect of an IO [action] is only guaranteed to be observable
         * by a subsequent [io] action or after the [closing][IOScope.close] of
         * the current [IOScope].
         */
        fun io(action: () -> Unit)
    }
    
    
    /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 01 13:09:45 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  2. subprojects/core/src/integTest/groovy/org/gradle/process/internal/LoggingProcess.java

    import org.gradle.api.Action;
    import org.gradle.process.internal.worker.WorkerProcessContext;
    
    import java.io.Serializable;
    import java.util.Arrays;
    import java.util.List;
    
    public class LoggingProcess implements Action<WorkerProcessContext>, Serializable {
    
        private final List<SerializableLogAction> actions;
    
        public LoggingProcess(SerializableLogAction... actions){
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 06 17:14:50 UTC 2016
    - 1.3K bytes
    - Viewed (0)
  3. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/ExecutionTimeTaskConfigurationIntegrationTest.groovy

            "actions.set(0, anAction)"                                  | "Task.getActions().set(int, Object)"
            "actions.removeAll(actions)"                                | "Task.getActions().removeAll()"
            "actions.remove(actions[0])"                                | "Task.getActions().remove()"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  4. platforms/ide/ide/src/test/groovy/org/gradle/plugins/ide/eclipse/model/EclipseModelTest.groovy

        def "can configure classpath with Actions"() {
            given:
            def xmlTransformer = Mock(XmlTransformer)
            def xmlMerger = Spy(XmlFileContentMerger, constructorArgs: [xmlTransformer])
            def xmlAction = {} as Action<XmlProvider>
            model.classpath.file = xmlMerger
    
            when: "configure classpath"
            model.classpath({ cp -> cp.downloadJavadoc = true } as Action<EclipseClasspath>)
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/main/java/org/gradle/model/ModelMap.java

        /**
         * Applies the given action to each item of the given type in this collection, as each item is required.
         *
         * <p>The given action is invoked to configure the item when the item is required. It is called before any actions provided to {@link #create(String, org.gradle.api.Action)}.
         *
         * @param type The type of elements to apply the action to.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 9.2K bytes
    - Viewed (0)
  6. platforms/core-execution/workers/src/test/groovy/org/gradle/process/internal/worker/child/SerializableMockHelper.groovy

         */
        def <T> Action<T> serializable(Action<T> action, ClassLoader target) {
            String src = """
    class TestAction implements ${Action.class.name}, ${Serializable.class.name}
    {
        Object key
    
        void execute(Object target) {
            def action = ${SerializableMockHelper.class.name}.ACTIONS.remove(key)
            action.execute(target)
        }
    }
    """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:36:27 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  7. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/server/api/DaemonCommandExecution.java

     * <p>
     * The given actions will be executed in the order given to the constructor, and should use the {@link #proceed()} method to allow
     * the next action to run. If an action does not call {@code proceed()}, it will be the last action that executes.
     */
    public class DaemonCommandExecution {
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 4K bytes
    - Viewed (0)
  8. mockwebserver/src/main/kotlin/mockwebserver3/internal/duplex/MockStreamHandler.kt

          stream.requestBody.use {
            stream.responseBody.use {
              while (true) {
                val action = actions.poll() ?: break
                action(stream)
              }
            }
          }
          return@FutureTask null
        }
      }
    
      /** Returns once all stream actions complete successfully. */
      fun awaitSuccess() {
        val futureTask =
          results.poll(5, TimeUnit.SECONDS)
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/dependencies/DefaultMinimalDependencyVariant.java

            attributesMutator = GUtil.elvis(attributesMutator, Actions.doNothing());
            capabilitiesMutator = GUtil.elvis(capabilitiesMutator, Actions.doNothing());
    
            if (delegate instanceof DefaultMinimalDependencyVariant) {
                this.attributesMutator = Actions.composite(((DefaultMinimalDependencyVariant) delegate).attributesMutator, attributesMutator);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 15 16:36:23 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  10. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/repositories/DefaultMavenRepositoryContentDescriptor.java

                            details.notFound();
                        }
                    }
                };
                if (filter == Actions.doNothing()) {
                    return action;
                }
                return Actions.composite(filter, action);
            }
            return filter;
        }
    
        @Override
        public RepositoryContentDescriptorInternal asMutableCopy() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 3.4K bytes
    - Viewed (0)
Back to top