Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 215 for Contains (0.15 sec)

  1. platforms/core-configuration/graph-serialization/src/main/kotlin/org/gradle/internal/serialize/graph/Identities.kt

    
    class CircularReferences {
    
        private
        val refs = ReferenceOpenHashSet<Any>()
    
        fun enter(reference: Any) {
            require(refs.add(reference))
        }
    
        operator fun contains(reference: Any) =
            refs.contains(reference)
    
        fun leave(reference: Any) {
            require(refs.remove(reference))
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 22 20:48:51 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-groovy/src/integTest/groovy/org/gradle/model/dsl/ManagedTypeDslIntegrationTest.groovy

        }
        thing(Thing)
        thing {
            number "12"
            file "build.gradle"
        }
    }
    '''
    
            when:
            run "show"
    
            then:
            output.contains("t.number: 12")
            output.contains("t.file: ${buildFile}")
        }
    
        def "cannot configure a reference property using nested closure"() {
            buildFile << '''
    @Managed interface Person extends Named {
        Address getAddress()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  3. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/Workarounds.kt

            KotlinDslModelsParameters.CORRELATION_ID_GRADLE_PROPERTY_NAME // Changing by IDE
        )
    
        fun isIgnoredStartParameterProperty(key: String): Boolean =
            ignoredStartParameterProperties.contains(key)
    
    
        fun canReadSystemProperty(from: String): Boolean =
            withWorkaroundsFor("systemProps") {
                isBuildScanPlugin(from)
            }
    
        fun canReadEnvironmentVariable(from: String): Boolean =
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/managed/CyclicalManagedTypeIntegrationTest.groovy

                            }
                        }
                    }
                }
    
                apply type: RulePlugin
            '''
    
            then:
            succeeds "echo"
    
            and:
            output.contains("name: parent")
        }
    
        def "managed types can have cyclical managed type references where more than two types constitute the cycle"() {
            when:
            buildScript '''
                @Managed
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  5. platforms/core-configuration/file-collections/src/main/java/org/gradle/api/internal/file/CompositeFileCollection.java

            super(taskDependencyFactory);
        }
    
        public CompositeFileCollection() {
        }
    
        @Override
        public boolean contains(File file) {
            for (FileCollection collection : getSourceCollections()) {
                if (collection.contains(file)) {
                    return true;
                }
            }
            return false;
        }
    
        @Override
        public boolean isEmpty() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 4K bytes
    - Viewed (0)
  6. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/MutationRuleApplicationOrderIntegrationTest.groovy

                    void apply(Project project) {}
                }
                apply type: MultipleRuleSources
            '''
    
            then:
            succeeds "echo"
    
            and:
            output.contains "mutations: a, b"
        }
    
        def "mutation rules are executed in a fixed and arbitrary order"() {
            when:
            buildFile << '''
                class FirstSource extends RuleSource {
                    @Mutate
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  7. platforms/core-configuration/file-collections/src/main/java/org/gradle/api/internal/file/FilteredFileCollection.java

        }
    
        @Override
        public Set<File> getFiles() {
            return CollectionUtils.filter(collection, new LinkedHashSet<>(), filterSpec);
        }
    
        @Override
        public boolean contains(File file) {
            return collection.contains(file) && filterSpec.isSatisfiedBy(file);
        }
    
        @Override
        public Iterator<File> iterator() {
            return Iterators.filter(collection.iterator(), filterSpec::isSatisfiedBy);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat May 25 08:16:53 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  8. platforms/core-execution/file-watching/src/integTest/groovy/org/gradle/internal/watch/LoggingFileSystemWatchingIntegrationTest.groovy

            def sourceFile = file("src/main/java/MyClass.java")
            sourceFile.text = "public class MyClass { }"
    
            when:
            // We do a warmup run so even on Windows, the VFS really contains all the files we expect it to contain.
            withWatchFs().run("assemble")
            waitForChangesToBePickedUp()
            def vfsLogs = enableVerboseVfsLogs()
            withWatchFs().run("assemble")
            then:
    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. platforms/core-execution/file-watching/src/integTest/groovy/org/gradle/internal/watch/ChangesByGradleFileWatchingIntegrationTest.groovy

            withWatchFs().run "jar", "-Dcreator=first"
            then:
            file("build/tmp/jar/MANIFEST.MF").text.contains("first")
            executedAndNotSkipped(":jar")
    
            when:
            withWatchFs().run "jar", "-Dcreator=second"
            then:
            file("build/tmp/jar/MANIFEST.MF").text.contains("second")
            executedAndNotSkipped(":jar")
        }
    
        def "detects when local state is removed"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 13:50:33 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  10. build-logic/performance-testing/src/main/kotlin/gradlebuild/performance/tasks/DetermineBaselines.kt

            return commitBaseline(forkPointCommit)
        }
    
        private
        fun tryGetUpstream(): String? = project.execAndGetStdout("git", "remote", "-v")
            .lines()
            .find { it.contains("******@****.***:gradle/gradle.git") || it.contains("https://github.com/gradle/gradle.git") }
            .let {
                // origin	https://github.com/gradle/gradle.git (fetch)
                val str = it?.replace(Regex("\\s+"), " ")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jun 21 09:29:24 UTC 2023
    - 4.5K bytes
    - Viewed (0)
Back to top