Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 117 for flavor2 (0.16 sec)

  1. platforms/native/platform-native/src/test/groovy/org/gradle/nativeplatform/plugins/NativeComponentModelPluginTest.groovy

            then:
            single(toolChains).name == 'tc'
            platforms.size() == 1
            single(buildTypes).name == 'bt'
            single(flavors).name == 'flavor1'
        }
    
        def "creates binaries for executable"() {
            when:
            project.pluginManager.apply(NativeComponentModelPlugin)
            registry
                .mutate(NativeToolChainRegistry) { it.add toolChain("tc") }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 08 20:10:55 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  2. platforms/ide/ide-native/src/test/groovy/org/gradle/ide/visualstudio/internal/NativeSpecVisualStudioTargetBinaryTest.groovy

        final flavor = new DefaultFlavor("flavor1")
        def flavors = new DefaultFlavorContainer(TestUtil.instantiatorFactory().decorateLenient(), CollectionCallbackActionDecorator.NOOP)
        def exe = Mock(NativeExecutableSpec) {
            getFlavors() >> flavors
        }
        def lib = Mock(NativeLibrarySpec) {
            getFlavors() >> flavors
        }
        def platform = Mock(NativePlatform)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 13.3K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/attributes/VariantAwareResolutionWithConfigurationAttributesIntegrationTest.groovy

                            def flavor = Attribute.of('flavor', String)
                            p.dependencies.attributesSchema {
                               attribute(buildType)
                               attribute(usage)
                               attribute(flavor)
                            }
                            def buildTypes = ['debug', 'release']
                            def flavors = ['free', 'paid']
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 13.3K bytes
    - Viewed (0)
  4. pkg/test/echo/server/endpoint/http.go

    	}
    
    	// Choose a random "slice" from a pie
    	totalSlices := 0
    	for _, flavor := range codes {
    		totalSlices += flavor.slices
    	}
    	// nolint: gosec
    	// Test only code
    	slice := rand.Intn(totalSlices)
    
    	// What flavor is that slice?
    	responseCode := codes[len(codes)-1].httpResponseCode // Assume the last slice
    	position := 0
    	for n, flavor := range codes {
    		if position > slice {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 16:20:31 UTC 2023
    - 12.8K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/attributes/StronglyTypedConfigurationAttributesResolveIntegrationTest.groovy

                        c1 { attributes { attribute(flavor, objects.named(Flavor, 'preview')); $debug } }
                        c2 { attributes { attribute(flavor, objects.named(Flavor, 'preview')); $release } }
                        c3 { attributes { attribute(flavor, objects.named(Flavor, 'full')); $debug } }
                        c4 { attributes { attribute(flavor, objects.named(Flavor, 'full')); $release } }
                    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 02 20:50:18 UTC 2024
    - 48.1K bytes
    - Viewed (0)
  6. platforms/native/platform-native/src/integTest/groovy/org/gradle/nativeplatform/PrebuiltLibrariesIntegrationTest.groovy

            app.library.writeSources(file("libs/src/hello"))
    
            file("libs/build.gradle") << """
    apply plugin: 'cpp'
    model {
        flavors {
            english
            french
        }
        components {
            hello(NativeLibrarySpec) {
                binaries.all {
                    if (flavor == flavors.french) {
                        cppCompiler.define "FRENCH"
                    }
                }
            }
        }
    }
    """
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 10.8K bytes
    - Viewed (0)
  7. subprojects/composite-builds/src/integTest/groovy/org/gradle/integtests/composite/CompositeBuildConfigurationAttributesResolveIntegrationTest.groovy

                version = '2.0-SNAPSHOT'
    
                def flavor = Attribute.of('flavor', $type)
                dependencies {
                    attributesSchema {
                        attribute(flavor)
                    }
                }
    
                configurations {
                    foo.attributes { attribute(flavor, $freeValue) }
                    bar.attributes { attribute(flavor, $paidValue) }
                }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 08 14:30:36 UTC 2024
    - 33.6K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/attributes/DefaultAttributesSchemaTest.groovy

            def attr = Attribute.of(Flavor)
    
            given:
            schema.attribute(attr).disambiguationRules.add(CustomSelectionRule)
    
            def value1 = flavor('value1')
            def value2 = flavor('value2')
    
            def candidates = [value1, value2] as Set
    
            when:
            def best = schema.matcher().selectionSchema.disambiguate(attr, flavor('requested'), candidates)
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 16.9K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/test/groovy/org/gradle/internal/component/model/LocalComponentDependencyMetadataTest.groovy

                    def distinguishingValues = distinguisher == 'flavor' ? "\n  - Value: 'paid' selects variant: 'bar'\n  - Value: 'free' selects variant: 'foo'" : "\n  - Value: 'bar' selects variant: 'bar'\n  - Value: 'foo' selects variant: 'foo'"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 15:10:53 UTC 2024
    - 25.3K bytes
    - Viewed (0)
  10. subprojects/diagnostics/src/integTest/groovy/org/gradle/api/tasks/diagnostics/ResolvableConfigurationsReportTaskIntegrationTest.groovy

                }
    
                def flavor = Attribute.of('flavor', String)
    
                configurations {
                    custom {
                        description = "My custom configuration"
                        assert canBeResolved
                        canBeConsumed = false
    
                        attributes {
                            attribute(flavor, 'vanilla')
                        }
                    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 13 19:52:38 UTC 2024
    - 27.7K bytes
    - Viewed (0)
Back to top