Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for withSystemProperty (0.33 sec)

  1. platforms/core-runtime/base-services/src/integTest/groovy/org/gradle/internal/SystemPropertiesIntegrationTest.groovy

                                return presetFactoryCreationResult
                            }
                        }
                        assert SystemProperties.instance.withSystemProperty(presetPropertyName, nextValue, factory) == presetFactoryCreationResult
    
                        factory = new Factory<String>() {
                            @Override
                            String create() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  2. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/SystemProperties.java

         * @param value The value to temporarily set the property to
         * @param factory Instance created by the Factory implementation
         */
        public synchronized <T> T withSystemProperty(String propertyName, String value, Factory<T> factory) {
            String originalValue = overrideProperty(propertyName, value);
    
            try {
                return factory.create();
            } finally {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 06:47:40 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  3. platforms/jvm/jvm-services/src/test/groovy/org/gradle/jvm/toolchain/internal/MavenToolchainsInstallationSupplierTest.groovy

            expectedPaths
        }
    
        InstallationSupplier createSupplier(String propertyValue, String userhome) {
            SystemProperties.instance.withSystemProperty("user.home", userhome) {
                new MavenToolchainsInstallationSupplier(createProviderFactory(propertyValue), createFileResolver())
            }
        }
    
        private FileResolver createFileResolver() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 15:09:49 UTC 2023
    - 16.3K bytes
    - Viewed (0)
  4. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/support/KotlinCompiler.kt

    private
    fun Disposable.kotlinCoreEnvironmentFor(configuration: CompilerConfiguration): KotlinCoreEnvironment {
        org.jetbrains.kotlin.cli.common.environment.setIdeaIoUseFallback()
        return SystemProperties.getInstance().withSystemProperty(
            KOTLIN_COMPILER_ENVIRONMENT_KEEPALIVE_PROPERTY.property,
            "true"
        ) {
            KotlinCoreEnvironment.createForProduction(
                this,
                configuration,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 31 08:46:17 UTC 2023
    - 20.1K bytes
    - Viewed (0)
Back to top