Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 84 for clear (0.58 sec)

  1. platforms/core-configuration/input-tracking/src/test/groovy/org/gradle/internal/configuration/inputs/AccessTrackingPropertiesTest.groovy

            then:
            0 * onAccess._
    
            where:
            methodName          | operation
            "toString()"        | call(p -> p.toString())
            "clear()"           | call(p -> p.clear())
            "load(Reader)"      | call(p -> p.load(new StringReader("")))
            "load(InputStream)" | call(p -> p.load(new ByteArrayInputStream(new byte[0])))
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Nov 11 00:37:04 UTC 2023
    - 23.1K bytes
    - Viewed (0)
  2. platforms/core-configuration/file-collections/src/main/java/org/gradle/api/internal/file/collections/DefaultConfigurableFileCollection.java

                ImmutableList<Object> oldItems = ImmutableList.copyOf(items);
                items.clear();
                addItem(owner, resolver, patternSetFactory, taskDependencyFactory, propertyHost, path, oldItems);
                return this;
            }
    
            @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 16:06:55 UTC 2024
    - 30.2K bytes
    - Viewed (0)
  3. platforms/core-configuration/file-collections/src/test/groovy/org/gradle/api/internal/file/collections/DefaultConfigurableFileCollectionSpec.groovy

            collection.from as List == [["a", "b"]]
        }
    
        def "can mutate the from collection"() {
            collection.from("src1", "src2")
            def from = collection.from
    
            when:
            from.clear()
    
            then:
            from.empty
            collection.from.empty
    
            when:
            def add1 = from.add('a')
            def add2 = from.add('b')
            def add3 = from.add('a')
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 18 17:09:50 UTC 2024
    - 53K bytes
    - Viewed (0)
  4. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/support/KotlinCompiler.kt

        private val pathTranslation: (String) -> String,
    ) : MessageCollector {
    
        val errors = arrayListOf<ScriptCompilationError>()
    
        override fun hasErrors() = errors.isNotEmpty()
    
        override fun clear() = errors.clear()
    
        override fun report(severity: CompilerMessageSeverity, message: String, location: CompilerMessageSourceLocation?) {
    
            fun msg() =
                location?.run {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 31 08:46:17 UTC 2023
    - 20.1K bytes
    - Viewed (0)
  5. platforms/core-configuration/graph-serialization/src/main/kotlin/org/gradle/internal/serialize/graph/Contexts.kt

        override fun onFinish(action: () -> Unit) {
            pendingOperations.add(action)
        }
    
        fun finish() {
            for (op in pendingOperations) {
                op()
            }
            pendingOperations.clear()
        }
    
        private
        var pendingOperations = ReferenceArrayList<() -> Unit>()
    
        fun initClassLoader(classLoader: ClassLoader) {
            this.classLoader = classLoader
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 23:09:56 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  6. build-logic/binary-compatibility/src/test/groovy/gradlebuild/binarycompatibility/PublicAPIRulesTest.groovy

            def rule = withContext(new IncubatingMissingRule([:]))
            def annotations = []
            jApiType.annotations >> annotations
    
            when:
            annotations.clear()
    
            then:
            rule.maybeViolation(jApiType).humanExplanation =~ 'Is not annotated with @Incubating'
    
            when:
            annotations.add(incubatingAnnotation)
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Dec 01 20:12:19 UTC 2023
    - 16K bytes
    - Viewed (0)
  7. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/ConfigurationCacheClassLoaderScopeRegistryListener.kt

                //  configuration cache strategy (none, store or load) can be taken early on.
                //  The listener only needs to be attached in the `store` state.
                scopeSpecs.clear()
                loaders.clear()
                listenerManager.remove(this)
            }
        }
    
        override fun close() {
            dispose()
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:30 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  8. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/tasks/CachingTaskDependencyResolveContext.java

                } else {
                    throw UncheckedException.throwAsUncheckedException(e);
                }
            } finally {
                queue.clear();
                this.task = null;
            }
        }
    
        @Override
        @Nullable
        public Task getTask() {
            return task;
        }
    
        @Override
        public void add(Object dependency) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 02 20:48:26 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  9. build-logic/documentation/src/main/groovy/gradlebuild/docs/ReleaseNotesTransformer.java

                    inSectionElements.remove();
    
                    if (next == null) {
                        break;
                    } else {
                        inSection.clear();
                        inSection.add(next);
                        heading = next;
                    }
                } else {
                    inSection.add(next);
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat May 25 05:15:02 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  10. platforms/core-configuration/flow-services/src/integTest/groovy/org/gradle/internal/flow/services/FlowScopeIntegrationTest.groovy

            // TODO(mlopatkin) The error message can be improved.
            failureHasCause(~/Could not isolate value ResultSource(.*) of type ResultSource.Params/)
        }
    
        def "task cannot depend on buildWorkResult, fails with clear message and problem is reported"() {
            given:
            buildFile '''
                abstract class Fails extends DefaultTask {
    
                    @Input abstract Property<String> getColor()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 15:01:34 UTC 2024
    - 9.2K bytes
    - Viewed (0)
Back to top