Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 65 for withRole (0.16 sec)

  1. platforms/core-configuration/kotlin-dsl-integ-tests/src/integTest/kotlin/org/gradle/kotlin/dsl/integration/GradleApiExtensionsIntegrationTest.kt

                )
            )
        }
    
        @Test
        @ToBeFixedForConfigurationCache(because = "source dependency VCS mappings are defined")
        fun `can use Gradle API generated extensions in scripts`() {
    
            withFile(
                "init.gradle.kts",
                """
                allprojects {
                    container(String::class)
                }
                """
            )
    
            withDefaultSettings().appendText(
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 03 15:53:16 UTC 2023
    - 9K bytes
    - Viewed (0)
  2. platforms/core-configuration/kotlin-dsl-integ-tests/src/integTest/kotlin/org/gradle/kotlin/dsl/integration/K2IntegrationTest.kt

        private
        fun withK2BuildLogic() {
            withFile("build-logic/src/main/kotlin/MyTask.kt", """
                import org.gradle.api.DefaultTask
                import org.gradle.api.tasks.TaskAction
    
                abstract class MyTask : DefaultTask() {
                    @TaskAction fun action() { println("Doing something") }
                }
            """)
            withFile("build-logic/src/main/kotlin/MyPlugin.kt", """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 10 06:52:58 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  3. platforms/core-configuration/kotlin-dsl/src/integTest/kotlin/org/gradle/kotlin/dsl/compile/AbstractCompileAvoidanceIntegrationTest.kt

                """
            )
        }
    
        protected
        fun javaSourceFile(baseDir: String, classBody: String, classAnnotations: String = ""): String {
            val className = "Foo"
            withFile(
                "$baseDir/src/main/java/com/example/$className.java",
                """
                package com.example;
                $classAnnotations
                public class $className {
                    $classBody
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun Sep 24 17:45:43 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  4. manifests/addons/dashboards/lib/panels.libsonnet

          heatmap.new(title)
          + heatmap.queryOptions.withTargets(targets)
          + heatmap.queryOptions.withInterval('1m')
          + options.calculation.xBuckets.withMode('size')
          + options.calculation.xBuckets.withValue('1min')
          + options.withCellGap(0)
          + options.color.withMode('scheme')
          + options.color.withScheme('Spectral')
          + options.color.withSteps(128)
          + options.yAxis.withDecimals(0)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 20:46:28 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  5. staging/src/k8s.io/client-go/applyconfigurations/core/v1/keytopath.go

    	b.Path = &value
    	return b
    }
    
    // WithMode sets the Mode field in the declarative configuration to the given value
    // and returns the receiver, so that objects can be built by chaining "With" function invocations.
    // If called multiple times, the Mode field is set to the value of the last call.
    func (b *KeyToPathApplyConfiguration) WithMode(value int32) *KeyToPathApplyConfiguration {
    	b.Mode = &value
    	return b
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 04 18:31:34 UTC 2021
    - 2.2K bytes
    - Viewed (0)
  6. platforms/core-execution/snapshots/src/main/java/org/gradle/internal/snapshot/SnapshotUtil.java

            return children.withNode(targetPath, caseSensitivity, new ChildMap.NodeHandler<T, Optional<MetadataSnapshot>>() {
                @Override
                public Optional<MetadataSnapshot> handleAsDescendantOfChild(VfsRelativePath pathInChild, T child) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 16:02:34 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  7. platforms/core-configuration/kotlin-dsl-tooling-builders/src/crossVersionTest/groovy/org/gradle/kotlin/dsl/tooling/builders/r54/KotlinSettingsScriptModelCrossVersionSpec.groovy

            def settings = withFile("my.settings.gradle.kts", """
                buildscript {
                    dependencies {
                        classpath(files("${normalizedPathOf(settingsDependency)}"))
                    }
                }
            """)
    
            and:
            def projectDependency = withEmptyJar("project-dependency.jar")
            withFile("build.gradle", """
                buildscript {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  8. staging/src/k8s.io/client-go/applyconfigurations/core/v1/downwardapivolumefile.go

    	b.ResourceFieldRef = value
    	return b
    }
    
    // WithMode sets the Mode field in the declarative configuration to the given value
    // and returns the receiver, so that objects can be built by chaining "With" function invocations.
    // If called multiple times, the Mode field is set to the value of the last call.
    func (b *DownwardAPIVolumeFileApplyConfiguration) WithMode(value int32) *DownwardAPIVolumeFileApplyConfiguration {
    	b.Mode = &value
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 04 18:31:34 UTC 2021
    - 3.2K bytes
    - Viewed (0)
  9. platforms/core-execution/snapshots/src/main/java/org/gradle/internal/snapshot/ChildMap.java

    import java.util.Optional;
    import java.util.stream.Stream;
    
    public interface ChildMap<T> {
    
        boolean isEmpty();
    
        int size();
    
        Stream<Entry<T>> stream();
    
        <RESULT> RESULT withNode(VfsRelativePath targetPath, CaseSensitivity caseSensitivity, NodeHandler<T, RESULT> handler);
    
        interface NodeHandler<T, RESULT> {
            RESULT handleAsDescendantOfChild(VfsRelativePath pathInChild, T child);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 23 13:19:32 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiextensions-apiserver/pkg/client/applyconfiguration/apiextensions/v1/validationrule.go

    	return &ValidationRuleApplyConfiguration{}
    }
    
    // WithRule sets the Rule field in the declarative configuration to the given value
    // and returns the receiver, so that objects can be built by chaining "With" function invocations.
    // If called multiple times, the Rule field is set to the value of the last call.
    func (b *ValidationRuleApplyConfiguration) WithRule(value string) *ValidationRuleApplyConfiguration {
    	b.Rule = &value
    	return b
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 03 22:34:13 UTC 2023
    - 4K bytes
    - Viewed (0)
Back to top