Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for systemPropertyName (0.28 sec)

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

    public class InternalFlag implements InternalOption<Boolean> {
        private final String systemPropertyName;
        private final boolean defaultValue;
    
        public InternalFlag(String systemPropertyName) {
            this(systemPropertyName, false);
        }
    
        public InternalFlag(String systemPropertyName, boolean defaultValue) {
            this.systemPropertyName = systemPropertyName;
            this.defaultValue = defaultValue;
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:02:02 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  2. platforms/core-runtime/build-option/src/main/java/org/gradle/internal/buildoption/StringInternalOption.java

        private final String systemPropertyName;
        private final String defaultValue;
    
        public StringInternalOption(String systemPropertyName, String defaultValue) {
            this.systemPropertyName = systemPropertyName;
            this.defaultValue = defaultValue;
        }
    
        @Nullable
        @Override
        public String getSystemPropertyName() {
            return systemPropertyName;
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:02:02 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  3. subprojects/core/src/main/java/org/gradle/api/internal/FeaturePreviews.java

                }
                return activeFeatures;
            }
    
            private final boolean active;
            private final String systemPropertyName;
    
            Feature(boolean active, @Nullable String systemPropertyName) {
                this.active = active;
                this.systemPropertyName = systemPropertyName;
            }
    
            /**
             * Returns whether the feature is still relevant.
             */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Sep 14 08:15:13 UTC 2022
    - 2.5K bytes
    - Viewed (0)
  4. 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:
            !flags.isEnabled(flag)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:02:02 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  5. platforms/core-runtime/build-option/src/main/java/org/gradle/internal/buildoption/IntegerInternalOption.java

        private final String systemPropertyName;
        private final int defaultValue;
    
        public IntegerInternalOption(String systemPropertyName, int defaultValue) {
            this.systemPropertyName = systemPropertyName;
            this.defaultValue = defaultValue;
        }
    
        @Nullable
        @Override
        public String getSystemPropertyName() {
            return systemPropertyName;
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:02:02 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  6. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/initialization/ConfigurationCacheStartParameter.kt

    }
    
    
    private
    fun InternalOptions.getInternalFlag(systemPropertyName: String, defaultValue: Boolean = false): Boolean =
        getOption(InternalFlag(systemPropertyName, defaultValue)).get()
    
    
    private
    fun InternalOptions.getInternalString(systemPropertyName: String, defaultValue: String?) =
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  7. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheFeatureFlagsIntegrationTest.groovy

            configurationCacheRunLenient "check"
    
            then:
            configurationCache.assertStateStored()
    
            when:
            configurationCacheRunLenient "-D${FeaturePreviews.Feature.STABLE_CONFIGURATION_CACHE.systemPropertyName}=true", "check"
    
            then:
            configurationCache.assertStateStored()
        }
    
        def "feature flag state is restored when running from cache"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 2.5K bytes
    - Viewed (0)
Back to top