Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,133 for actioned (0.26 sec)

  1. platforms/ide/tooling-api-builders/src/test/groovy/org/gradle/tooling/internal/provider/runner/IntermediateBuildActionRunnerTest.groovy

            then:
            result == ["one", "two", "three"]
    
            1 * buildModelParameters.isParallelToolingApiActions() >> false
            1 * action1.get() >> "one"
            1 * action2.get() >> "two"
            1 * action3.get() >> "three"
            0 * _
        }
    
        def "queues supplied actions to run in parallel"() {
            given:
            def action1 = Mock(Supplier)
            def action2 = Mock(Supplier)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 20 17:58:18 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  2. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/Actions.java

         *
         * @param actions The actions to make a composite of.
         * @param <T> The type of the object that action is for
         * @return The composite action.
         */
        public static <T> Action<T> composite(Iterable<? extends Action<? super T>> actions) {
            ImmutableList.Builder<Action<? super T>> builder = ImmutableList.builder();
            for (Action<? super T> action : actions) {
                if (doesSomething(action)) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 7K bytes
    - Viewed (0)
  3. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r32/Action2.java

     */
    
    package org.gradle.integtests.tooling.r32;
    
    import org.gradle.tooling.BuildAction;
    import org.gradle.tooling.BuildController;
    
    import java.util.Collections;
    import java.util.List;
    
    public class Action2 implements BuildAction<List<String>> {
        @Override
        public List<String> execute(BuildController controller) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  4. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r22/BuildActionCrossVersionSpec.groovy

            def cl1 = new URLClassLoader([implJar.toURI().toURL()] as URL[], getClass().classLoader)
            def action1 = cl1.loadClass("ActionImpl").getConstructor().newInstance()
    
            when:
            File actualJar1 = withConnection { ProjectConnection connection ->
                connection.action(action1).run()
            }
            cl1.close()
            Files.delete(implJar.toPath())
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  5. platforms/core-runtime/base-services/src/main/java/org/gradle/api/Action.java

     */
    package org.gradle.api;
    
    /**
     * Performs some action against objects of type T.
     *
     * @param <T> The type of object which this action accepts.
     */
    @HasImplicitReceiver
    public interface Action<T> {
        /**
         * Performs this action against the given object.
         *
         * @param t The object to perform the action on.
         */
        void execute(T t);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 968 bytes
    - Viewed (0)
  6. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r32/BuildActionCrossVersionSpec.groovy

            copyClassTo(Action2, classesDir2)
            copyClassTo(SharedActionStaticState, classesDir2)
            def cl1 = actionClassLoader(classesDir1)
            def action1 = cl1.loadClass(Action1.name)
            assert action1 != Action1
            def cl2 = actionClassLoader(classesDir2)
            def action2 = cl2.loadClass(Action2.name)
            assert action2 != Action2
    
            expect:
            def l1 = withConnection { c ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  7. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/MutableActionSetTest.groovy

            0 * action._
        }
    
        def broadcastsEventsToMultipleActions() {
            def action1 = Mock(Action)
            def action2 = Mock(Action)
            broadcast.add(action1)
            broadcast.add(action2)
    
            when:
            broadcast.execute('value')
    
            then:
            1 * action1.execute('value')
            1 * action2.execute('value')
            0 * _._
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  8. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r32/Action1.java

     */
    
    package org.gradle.integtests.tooling.r32;
    
    import org.gradle.tooling.BuildAction;
    import org.gradle.tooling.BuildController;
    
    import java.util.Collections;
    import java.util.List;
    
    public class Action1 implements BuildAction<List<String>> {
        @Override
        public List<String> execute(BuildController controller) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  9. pkg/kubelet/kuberuntime/labels_test.go

    	deletionGracePeriod := int64(10)
    	terminationGracePeriod := int64(10)
    	lifecycle := &v1.Lifecycle{
    		// Left PostStart as nil
    		PreStop: &v1.LifecycleHandler{
    			Exec: &v1.ExecAction{
    				Command: []string{"action1", "action2"},
    			},
    			HTTPGet: &v1.HTTPGetAction{
    				Path:   "path",
    				Host:   "host",
    				Port:   intstr.FromInt32(8080),
    				Scheme: "scheme",
    			},
    			TCPSocket: &v1.TCPSocketAction{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 22:43:36 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  10. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/DefaultIvyContextManagerTest.groovy

            then:
            1 * action.execute({it != null})
            0 * action._
        }
    
        def "executes action against an Ivy instance and returns the result"() {
            def action = Mock(Transformer)
    
            when:
            def result = manager.withIvy(action)
    
            then:
            result == "result"
    
            and:
            1 * action.transform({it != null}) >> "result"
            0 * action._
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 5.6K bytes
    - Viewed (0)
Back to top