Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for WithProperties (0.38 sec)

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

                            }
                        }
                    }
                }
            }
    
            then:
            noExceptionThrown()
        }
    
        def "withProperties(Map) and withProperties are never run concurrently"() {
            final int threadCount = 100
            def id = UUID.randomUUID().toString()
    
            when:
            async {
                threadCount.times { i ->
    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/ide/ide/src/main/java/org/gradle/plugins/ide/eclipse/model/EclipseJdt.java

     *       //and after gradle build information is merged
     *       whenMerged { jdt
     *         //you can tinker with the {@link Jdt} here
     *       }
     *
     *       //withProperties allows addition of properties not currently
     *       //modeled by Gradle
     *       withProperties { properties ->
     *           //you can tinker with the {@link java.util.Properties} here
     *       }
     *     }
     *   }
     * }
     * </pre>
     */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  3. platforms/ide/ide/src/main/java/org/gradle/plugins/ide/api/PropertiesFileContentMerger.java

         *
         * @param closure The closure to execute when the Properties have been created.
         */
        public void withProperties(Closure closure) {
            withProperties(new ClosureBackedAction<Properties>(closure, Closure.OWNER_FIRST));
        }
    
        /**
         * Adds an action to be called when the file has been created.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/docs/dsl/org.gradle.plugins.ide.api.PropertiesFileContentMerger.xml

            <title>Methods</title>
            <table>
                <thead>
                    <tr>
                        <td>Name</td>
                    </tr>
                </thead>
                <tr>
                    <td>withProperties</td>
                </tr>
            </table>
        </section>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  5. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/DefaultCacheBuilder.java

        private String displayName;
    
        public DefaultCacheBuilder(CacheFactory factory, File baseDir) {
            this.factory = factory;
            this.baseDir = baseDir;
        }
    
        @Override
        public CacheBuilder withProperties(Map<String, ?> properties) {
            this.properties = properties;
            return this;
        }
    
        @Override
        public CacheBuilder withDisplayName(String displayName) {
            this.displayName = displayName;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 09 19:10:33 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  6. platforms/ide/ide-plugins/src/integTest/groovy/org/gradle/plugins/ide/eclipse/EclipseProjectIntegrationTest.groovy

            it.targetCompatibility = JavaVersion.toVersion('1.1')
          }
          withProperties {
            hooks << 'withProperties'
            it.dummy = 'testValue'
          }
        }
      }
    }
    
    eclipseJdt.doLast() {
      assert hooks == ['beforeMerged', 'whenMerged', 'withProperties']
    }
            """
            when:
            run "eclipse"
            def jdt = parseJdtFile()
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Aug 01 11:07:39 UTC 2023
    - 18K bytes
    - Viewed (0)
  7. platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/DefaultCacheBuilderTest.groovy

            1 * cacheFactory.open(sharedCacheDir, null, [:], mode(Shared), _, NO_CLEANUP) >> cache
            0 * cacheFactory._
        }
    
        void createsGlobalCacheWithProperties() {
            when:
            builder.withProperties(properties).open()
    
            then:
            1 * cacheFactory.open(sharedCacheDir, null, properties, mode(Shared), _, NO_CLEANUP) >> cache
        }
    
        void canSpecifyInitializerActionForDirectoryCache() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 16:40:49 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  8. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/reflect/JavaPropertyReflectionUtilTest.groovy

            and:
            propertyNames(new WithProperties()) == ['class', 'metaClass', 'prop1', 'prop2', 'something', 'somethingElse', 'writeOnly'] as Set
        }
    
        def "read property"() {
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  9. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/CacheBuilder.java

         * empty map.
         *
         * @param properties additional properties for the cache.
         * @return this
         */
        CacheBuilder withProperties(Map<String, ?> properties);
    
        /**
         * Specifies the display name for this cache. This display name is used in logging and error messages.
         */
        CacheBuilder withDisplayName(String displayName);
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:51 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  10. platforms/ide/ide/src/test/groovy/org/gradle/plugins/ide/eclipse/model/EclipseModelTest.groovy

            then:
            1 * propertiesMerger.getTransformer()
    
            when: "configure jdt properties"
            model.jdt.file.withProperties(propertiesAction)
    
            then:
            1 * propertiesTransformer.addAction(propertiesAction)
        }
    
        def "can configure wtp with Actions"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 6.8K bytes
    - Viewed (0)
Back to top