Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 39 for CLOSURE (0.2 sec)

  1. testing/architecture-test/src/changes/archunit-store/public-api-methods-return-allowed-types.txt

    Method <org.gradle.api.Project.allprojects(groovy.lang.Closure)> has arguments/return type groovy.lang.Closure that is not Gradle public API or primitive or built-in JDK classes or Kotlin classes in (Project.java:0)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 12:21:31 UTC 2024
    - 91.3K bytes
    - Viewed (0)
  2. subprojects/core/src/main/java/org/gradle/api/internal/project/DefaultProject.java

        public void beforeEvaluate(Closure closure) {
            assertMutatingMethodAllowed("beforeEvaluate(Closure)");
            evaluationListener.add(new ClosureBackedMethodInvocationDispatch("beforeEvaluate", getListenerBuildOperationDecorator().decorate("Project.beforeEvaluate", Cast.<Closure<?>>uncheckedNonnullCast(closure))));
        }
    
        @Override
        public void afterEvaluate(Closure closure) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 12:34:44 UTC 2024
    - 50.2K bytes
    - Viewed (0)
  3. subprojects/core-api/src/main/java/org/gradle/api/Project.java

        /**
         * <p>Adds a closure to call immediately before this project is evaluated.</p>
         *
         * @see Project#beforeEvaluate(Action)
         *
         * @param closure The closure to call.
         */
        void beforeEvaluate(Closure closure);
    
        /**
         * <p>Adds a closure to call immediately after this project is evaluated.</p>
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 30 04:56:22 UTC 2024
    - 74.3K bytes
    - Viewed (0)
  4. platforms/core-configuration/file-collections/src/test/groovy/org/gradle/api/internal/file/collections/DefaultConfigurableFileCollectionSpec.groovy

        }
    
        def "resolves closure to files when finalized"() {
            given:
            def file1 = new File('one')
            def file2 = new File('two')
            def closure = Mock(Closure)
            collection.from(closure)
    
            when:
            collection.finalizeValue()
    
            then:
            1 * closure.call() >> ['a', 'b']
            0 * closure._
            1 * fileResolver.resolve('a') >> file1
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 18 17:09:50 UTC 2024
    - 53K bytes
    - Viewed (0)
  5. subprojects/core/src/test/groovy/org/gradle/api/internal/AbstractDomainObjectCollectionSpec.groovy

            1 * action.execute(a)
            0 * action._
        }
    
        def "can execute closure for all elements in a type filtered collection"() {
            def seen = []
            def closure = { seen << it }
    
            addToContainer(c)
            addToContainer(d)
    
            when:
            container.withType(type, closure)
    
            then:
            seen == [c]
    
            when:
            addToContainer(a)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 13:46:07 UTC 2024
    - 52.4K bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/configurations/DefaultConfiguration.java

        @Override
        public DomainObjectContext getDomainObjectContext() {
            return domainObjectContext;
        }
    
        @Override
        public Configuration resolutionStrategy(Closure closure) {
            configure(closure, getResolutionStrategy());
            return this;
        }
    
        @Override
        public Configuration resolutionStrategy(Action<? super ResolutionStrategy> action) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 17:36:01 UTC 2024
    - 85.4K bytes
    - Viewed (0)
  7. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/manage/schema/extract/ManagedProxyClassGenerator.java

                if (!structSchema.isAnnotated()) {
                    return;
                }
    
                // Adds a void $propName(Closure<?> cl) method that executes the closure
                MethodVisitor methodVisitor = declareMethod(visitor, property.getName(), Type.getMethodDescriptor(Type.VOID_TYPE, CLOSURE_TYPE), null);
                putThisOnStack(methodVisitor);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 55.3K bytes
    - Viewed (0)
  8. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CopyTaskIntegrationSpec.groovy

            "outputs.cacheIf { false }" | "outputs.cacheIf { false }"
            "eachFile(Closure)"         | "eachFile {}"
            "eachFile(Action)"          | "eachFile(org.gradle.internal.Actions.doNothing())"
            "expand(Map)"               | "expand([:])"
            "filter(Closure)"           | "filter {}"
            "filter(Class)"             | "filter(PushbackReader)"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 67.9K bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/docs/userguide/authoring-builds/gradle-properties/working_with_files.adoc

    include::sample[dir="snippets/files/fileCollections/groovy",files="build.gradle[tags=closure]"]
    ====
    
    ----
    $ gradle -q list
    include::{snippetsPath}/files/fileCollections/tests/fileCollectionsWithClosure.out[]
    ----
    
    The key to lazy creation is passing a closure (in Groovy) or a `Provider` (in Kotlin) to the `files()` method.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 24 04:19:09 UTC 2024
    - 70.5K bytes
    - Viewed (0)
  10. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/configurations/DefaultConfigurationSpec.groovy

        }
    
        def fileCollectionWithClosureSpec() {
            def closure = { dep -> dep.group == 'group1' }
            def configuration = conf()
            def fileSet = [new File("somePath")] as Set
            resolver.resolveGraph(configuration) >> graphResolved(fileSet)
    
            when:
            def fileCollection = configuration.fileCollection(closure)
    
            then:
            fileCollection.files == fileSet
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 17:30:13 UTC 2024
    - 64.8K bytes
    - Viewed (0)
Back to top