Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 55 for doStuff2 (1.1 sec)

  1. subprojects/core/src/test/groovy/org/gradle/api/internal/project/taskfactory/AnnotationProcessingTasks.java

            @Override
            @TaskAction
            public void doStuff(InputChanges changes) {
                action.execute(changes);
            }
        }
    
        public static class TaskWithMultipleInputChangesActions extends DefaultTask {
    
            @TaskAction
            public void doStuff(InputChanges changes) {
            }
    
            @TaskAction
            public void doStuff2(InputChanges changes) {
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 12 11:41:48 UTC 2022
    - 15.8K bytes
    - Viewed (0)
  2. platforms/core-runtime/messaging/src/integTest/groovy/org/gradle/internal/remote/UnicastMessagingIntegrationTest.groovy

    
            when:
            server.outgoingService1.doStuff("1")
            server.outgoingService1.doStuff("2")
            server.outgoingService1.doStuff("3")
            server.outgoingService1.doStuff("4")
            thread.blockUntil.received
            server.stop()
            client.stop()
    
            then:
            1 * service.doStuff("1")
            1 * service.doStuff("2")
            1 * service.doStuff("3")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 09:21:43 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  3. platforms/core-runtime/messaging/src/test/groovy/org/gradle/internal/actor/internal/DefaultActorFactorySpec.groovy

            given:
            target.doStuff('param') >> {
                thread.block()
                instant.param1
            }
            target.doStuff('param2') >> {
                instant.param2
            }
    
            when:
            operation.dispatchAndStop {
                proxy.doStuff('param')
                proxy.doStuff('param2')
                actor.stop()
            }
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:59:22 UTC 2023
    - 8.1K bytes
    - Viewed (0)
  4. subprojects/core/src/integTest/groovy/org/gradle/api/ExternalScriptExecutionIntegrationTest.groovy

    println 'error message'
    new BuildSrcClass()
    assert 'doStuff' == name
    assert buildscript.classLoader == getClass().classLoader.parent
    assert buildscript.classLoader == Thread.currentThread().contextClassLoader
    ext.someProp = 'value'
    '''
            testFile('build.gradle') << '''
    task doStuff
    apply {
        to doStuff
        from 'external.gradle'
    }
    assert 'value' == doStuff.someProp
    '''
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 11:16:24 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  5. subprojects/core/src/integTest/groovy/org/gradle/api/ExternalScriptErrorIntegrationTest.groovy

        def "produces reasonable error message when task execution fails"() {
            externalScript << '''
    task doStuff {
        doLast {
            throw new RuntimeException('fail')
        }
    }
    '''
            when:
            fails 'doStuff'
    
            then:
            failure.assertHasDescription('Execution failed for task \':doStuff\'.')
                    .assertHasCause('fail')
                    .assertHasFileName("Script '${externalScript}'")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  6. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/concurrent/Operations.groovy

     *
     * <pre>
     *  when:
     *  // runs the given closure and defines operation 'doStuff'
     *  operation.doStuff {
     *      // do some test action
     *  }
     *
     *  then:
     *  // query
     *  operation.doStuff.end > operation.doStuff.start
     *  instant.doStuff == operation.doStuff.end
     * </pre>
     */
    class Operations {
        private final InstantFactory instantFactory
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  7. subprojects/core/src/integTest/groovy/org/gradle/api/HttpScriptPluginIntegrationSpec.groovy

            server.expectGet('/external.gradle', script)
    
            script << """
                task doStuff
                assert buildscript.sourceFile == null
                assert "${server.uri}/external.gradle" == buildscript.sourceURI as String
    """
    
            buildFile << """
                apply from: '$server.uri/external.gradle'
                defaultTasks 'doStuff'
    """
    
            then:
            succeeds()
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 30 08:26:30 UTC 2023
    - 11.7K bytes
    - Viewed (0)
  8. platforms/core-execution/file-watching/src/integTest/groovy/org/gradle/internal/watch/LoggingFileSystemWatchingIntegrationTest.groovy

            daemon.becomesIdle()
    
            when:
            sourceFile.text = "public class MyClass { private void doStuff() {} }"
            waitForChangesToBePickedUp()
            sourceFile.text = "public class MyClass { private void doStuff1() {} }"
            waitForChangesToBePickedUp()
            then:
            // On Windows, it may take some extra time until the event occurs
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 13:50:33 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  9. test/fixedbugs/issue51401.go

    package main
    
    import "runtime"
    
    type Outer interface{ Inner }
    
    type impl struct{}
    
    func New() Outer { return &impl{} }
    
    type Inner interface {
    	DoStuff() error
    }
    
    func (a *impl) DoStuff() error {
    	return newError()
    }
    
    func newError() error {
    	stack := make([]uintptr, 50)
    	runtime.Callers(2, stack[:])
    
    	return nil
    }
    
    func main() {
    	funcs := listFuncs(New())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 21:27:42 UTC 2022
    - 766 bytes
    - Viewed (0)
  10. platforms/core-runtime/messaging/src/test/groovy/org/gradle/internal/remote/internal/hub/MessageHubBackedObjectConnectionTest.groovy

            when:
            connectionBuilder.addIncoming(Worker, worker)
            connectionBuilder.connect()
            connection.stop()
            connectionBuilder.stop()
    
            then:
            1 * worker.doStuff("param 1")
            0 * worker._
    
            cleanup:
            connection?.stop()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:59:22 UTC 2023
    - 4K bytes
    - Viewed (0)
Back to top