Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for FeatureFlag (0.17 sec)

  1. platforms/core-runtime/build-option/src/main/java/org/gradle/internal/buildoption/FeatureFlag.java

     */
    
    package org.gradle.internal.buildoption;
    
    import javax.annotation.Nullable;
    
    /**
     * A feature flag. Can be enabled via the Settings object or optionally via a system property.
     */
    public interface FeatureFlag extends Option {
        @Nullable
        String getSystemPropertyName();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:02:02 UTC 2023
    - 895 bytes
    - Viewed (0)
  2. platforms/core-runtime/build-option/src/test/groovy/org/gradle/internal/buildoption/DefaultFeatureFlagsTest.groovy

        def "flag is disabled by default"() {
            def flag = Stub(FeatureFlag)
            flag.systemPropertyName >> null
    
            expect:
            !flags.isEnabled(flag)
            !flags.isEnabledWithApi(flag)
        }
    
        def "flag with associated system property is disabled by default"() {
            def flag = Stub(FeatureFlag)
            flag.systemPropertyName >> "prop"
    
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:02:02 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  3. platforms/core-runtime/build-option/src/main/java/org/gradle/internal/buildoption/DefaultFeatureFlags.java

    import java.util.Set;
    import java.util.concurrent.CopyOnWriteArraySet;
    
    public class DefaultFeatureFlags implements FeatureFlags {
        private final Set<FeatureFlag> enabled = new CopyOnWriteArraySet<FeatureFlag>();
        private final InternalOptions options;
        private final FeatureFlagListener broadcaster;
    
        public DefaultFeatureFlags(InternalOptions options, ListenerManager listenerManager) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:02:02 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  4. platforms/core-runtime/build-option/src/main/java/org/gradle/internal/buildoption/FeatureFlags.java

     */
    @ServiceScope(Scope.BuildTree.class)
    public interface FeatureFlags {
        boolean isEnabled(FeatureFlag flag);
    
        /**
         * Explicitly enable the given flag. The resulting flag status may still be overridden.
         */
        void enable(FeatureFlag flag);
    
        /**
         * Checks if the given flag was enabled with {@link #enable(FeatureFlag)}. This method doesn't take overrides into account.
         * @param flag the flag to check
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 02:21:10 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  5. subprojects/core/src/main/java/org/gradle/api/internal/FeaturePreviews.java

    import org.gradle.internal.buildoption.FeatureFlag;
    
    import javax.annotation.Nullable;
    import java.util.EnumSet;
    
    public class FeaturePreviews {
    
        /**
         * Feature previews that can be turned on.
         * A feature that is no longer relevant will have the {@code active} flag set to {@code false}.
         */
        public enum Feature implements FeatureFlag {
            GROOVY_COMPILATION_AVOIDANCE(true, null),
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Sep 14 08:15:13 UTC 2022
    - 2.5K bytes
    - Viewed (0)
  6. platforms/core-runtime/build-option/src/main/java/org/gradle/internal/buildoption/FeatureFlagListener.java

    import org.gradle.internal.service.scopes.EventScope;
    import org.gradle.internal.service.scopes.Scope;
    
    @EventScope(Scope.BuildTree.class)
    public interface FeatureFlagListener {
        void flagRead(FeatureFlag flag);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 02:21:10 UTC 2024
    - 876 bytes
    - Viewed (0)
  7. cmd/kubelet/app/plugins_providers.go

    	// if the plugin unregister feature flag is set
    	if featureGate.Enabled(pluginInfo.pluginUnregisterFeature) {
    		klog.InfoS("Skipped registration of plugin since feature flag is enabled", "pluginName", inTreePluginName, "featureFlag", pluginInfo.pluginUnregisterFeature)
    		return plugins, nil
    	}
    
    	plugins = append(plugins, pluginInfo.pluginProbeFunction()...)
    	return plugins, nil
    }
    
    type pluginInfo struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 09 14:55:34 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  8. platforms/core-configuration/kotlin-dsl/build.gradle.kts

        testImplementation(libs.kotlinCoroutines)
        testImplementation(libs.awaitility)
    
        integTestImplementation(project(":build-option")) {
            because("KotlinSettingsScriptIntegrationTest makes uses of FeatureFlag")
        }
        integTestImplementation(project(":language-groovy")) {
            because("ClassBytesRepositoryTest makes use of Groovydoc task.")
        }
        integTestImplementation(project(":internal-testing"))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat May 25 22:44:42 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  9. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/fingerprint/ConfigurationCacheFingerprintWriter.kt

    import org.gradle.internal.cc.base.services.ConfigurationCacheEnvironmentChangeTracker
    import org.gradle.groovy.scripts.ScriptSource
    import org.gradle.groovy.scripts.internal.ScriptSourceListener
    import org.gradle.internal.buildoption.FeatureFlag
    import org.gradle.internal.buildoption.FeatureFlagListener
    import org.gradle.internal.concurrent.CompositeStoppable
    import org.gradle.internal.execution.UnitOfWork
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:30 UTC 2024
    - 32.8K bytes
    - Viewed (0)
  10. cmd/kubeadm/app/apis/kubeadm/validation/validation_test.go

    				(actual == nil),
    				rt.args,
    			)
    		}
    	}
    }
    
    func TestValidateFeatureGates(t *testing.T) {
    	type featureFlag map[string]bool
    	var tests = []struct {
    		featureGates featureFlag
    		expected     bool
    	}{
    		{featureFlag{"Unknown": true}, false},
    		{featureFlag{"Unknown": false}, false},
    	}
    	for _, rt := range tests {
    		actual := ValidateFeatureGates(rt.featureGates, nil)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 16:01:49 UTC 2024
    - 46.1K bytes
    - Viewed (0)
Back to top