Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,953 for Require (0.71 sec)

  1. platforms/core-configuration/kotlin-dsl/src/integTest/kotlin/org/gradle/kotlin/dsl/resolver/SourceDistributionResolverIntegrationTest.kt

                        sourceDirs()
                    }
    
                require(sourceDirs.isNotEmpty()) {
                    "Expected source directories but got none"
                }
    
                val subprojectSourcePath = "org/gradle/StartParameter.java"
                val subprojectFound = sourceDirs.find { it.resolve(subprojectSourcePath).isFile }
                require(subprojectFound != null) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 19 13:27:15 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  2. 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)
  3. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/problems/HtmlReportTemplate.kt

         * Returns the header and footer of the html template as a pair.
         */
        fun load(): Pair<String, String> {
            val template = readHtmlTemplate()
            val headerEnd = template.indexOf(modelLine)
            require(headerEnd > 0) {
                "Invalid configuration cache report template!"
            }
            val header = template.substring(0, headerEnd)
            val footer = template.substring(headerEnd + modelLine.length + 1)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  4. platforms/core-configuration/kotlin-dsl/src/integTest/kotlin/org/gradle/kotlin/dsl/resolver/KotlinScriptDependenciesResolverTest.kt

            val $type.implicitReceiver get() = this
            require(implicitReceiver is $type)
        """
    
        @Test
        @Requires(IntegTestPreconditions.NotEmbeddedExecutor::class)
        fun `pass environment`() {
    
            assertSucceeds(
                withBuildScript(
                    """
                    require(System.getProperty("myJvmSysProp") == "systemValue") { "gradleJvmOptions" }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 05:12:50 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  5. platforms/core-configuration/kotlin-dsl-integ-tests/src/integTest/kotlin/org/gradle/kotlin/dsl/integration/GradleKotlinDslIntegrationTest.kt

                require(files("settings.gradle.kts").files.isNotEmpty(), { "files(paths)" })
                require(fileTree(".").contains(file("settings.gradle.kts")), { "fileTree(path)" })
                require(copySpec {} != null, { "copySpec {}" })
                require(mkdir("some").isDirectory, { "mkdir(path)" })
                require(delete("some"), { "delete(path)" })
                require(delete {} != null, { "delete {}" })
    
            """
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 02 18:26:28 UTC 2024
    - 37.5K bytes
    - Viewed (0)
  6. platforms/core-configuration/kotlin-dsl/src/integTest/kotlin/org/gradle/kotlin/dsl/integration/DelegatedGradlePropertiesIntegrationTest.kt

                require(setExtraProperty == "extra value")
    
                val emptyExtraProperty: String by project
                require(emptyExtraProperty == "")
    
                val unsetExtraProperty: String? by project
                require(unsetExtraProperty == null)
    
                setProperty("setExtraProperty", "mutated")
                require(setExtraProperty == "mutated")
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  7. build-logic-commons/code-quality-rules/src/main/resources/checkstyle/suppressions.xml

        <!-- These packages are duplicated in ide-native from ide, don't require a package-info.java in each place -->
        <suppress checks="JavadocPackage"
                  files=".*[/\\]ide-native[/\\]src[/\\]main[/\\]java[/\\]org[/\\]gradle[/\\]plugins[/\\]ide[/\\]api[/\\][^/\\]+"/>
    
        <!-- These packages are duplicated in platform-native from language-native, don't require a package-info.java in each place -->
        <suppress checks="JavadocPackage"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jun 10 14:28:48 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  8. platforms/core-configuration/flow-services/src/main/kotlin/org/gradle/internal/flow/services/DefaultFlowProviders.kt

        fun set(result: BuildWorkResult) {
            require(this.result == null)
            this.result = result
        }
    
        override fun getType(): Class<BuildWorkResult> =
            BuildWorkResult::class.java
    
        override fun calculateOwnValue(consumer: ValueSupplier.ValueConsumer): ValueSupplier.Value<out BuildWorkResult> {
            require(result != null) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 15:01:34 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  9. platforms/core-configuration/graph-serialization/src/main/kotlin/org/gradle/internal/serialize/graph/Contexts.kt

            this.singletonProperty = singletonProperty
        }
    
        override fun <T : Any> getSingletonProperty(propertyType: Class<T>): T {
            val propertyValue = singletonProperty
            require(propertyValue != null && propertyType.isInstance(propertyValue)) {
                "A singleton property of type $propertyType has not been registered!"
            }
            return propertyValue.uncheckedCast()
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 23:09:56 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  10. platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/WorkNodeCodec.kt

            for (i in 0 until nodeCount) {
                val node = readNode()
                nodesById[nodesById.size] = node
                if (node is LocalTaskNode) {
                    node.prepareNode.require()
                    nodesById[nodesById.size] = node.prepareNode
                }
                nodes.add(node)
            }
            // Note that using the ImmutableSet retains the original ordering of entry nodes.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:30 UTC 2024
    - 10.4K bytes
    - Viewed (0)
Back to top