Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for withSystemProperty (0.3 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/code-quality/src/main/groovy/org/gradle/api/plugins/quality/internal/PmdInvoker.groovy

            if (parameters.incrementalAnalysis.get()) {
                // TODO: Can we get rid of this now that we're running in a worker?
                SystemProperties.instance.withSystemProperty("java.class.path", pmdClasspath.files.join(File.pathSeparator), new Factory<Void>() {
                    @Override
                    Void create() {
                        runPmd(ant, parameters)
                        return null
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jun 21 12:23:38 UTC 2023
    - 7.7K bytes
    - Viewed (0)
Back to top