Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for disallowUnsafeRead (0.37 sec)

  1. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/ValueState.java

                }
                return finalizeOnNextGet || consumer == ValueSupplier.ValueConsumer.DisallowUnsafeRead;
            }
    
            @Override
            public ValueSupplier.ValueConsumer forUpstream(ValueSupplier.ValueConsumer consumer) {
                if (disallowUnsafeRead) {
                    return ValueSupplier.ValueConsumer.DisallowUnsafeRead;
                } else {
                    return consumer;
                }
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 11:41:55 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  2. platforms/core-configuration/file-collections/src/integTest/groovy/org/gradle/api/file/FileCollectionLifecycleIntegrationTest.groovy

                interface ProjectModel {
                    ConfigurableFileCollection getProp()
                }
    
                project.extensions.create('thing', ProjectModel.class)
                thing.prop.disallowUnsafeRead()
                thing.prop.from(layout.buildDirectory)
    
                try {
                    thing.prop.files
                } catch(IllegalStateException e) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 10:55:07 UTC 2023
    - 11.4K bytes
    - Viewed (0)
  3. platforms/core-configuration/file-collections/src/integTest/groovy/org/gradle/api/file/FilePropertyLifecycleIntegrationTest.groovy

            taskTypeWithOutputFileProperty()
            settingsFile << "rootProject.name = 'broken'"
            buildFile """
                task producer(type: FileProducer) {
                    output.disallowUnsafeRead()
                    output = layout.buildDir.file("text.out")
                    def other = file('ignore')
                    doFirst {
                        try {
                            output = other
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 22.6K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/api/provider/PropertyLifecycleIntegrationTest.groovy

            buildFile """
                interface ProjectModel {
                    Property<String> getProp()
                }
    
                project.extensions.create('thing', ProjectModel.class)
                thing.prop.disallowUnsafeRead()
                thing.prop.set("value one")
    
                try {
                    thing.prop.get()
                } catch(IllegalStateException e) {
                    println("get failed with: " + e.message)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 04 14:00:52 UTC 2024
    - 15K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/AbstractProperty.java

        }
    
        @Override
        public void implicitFinalizeValue() {
            state.disallowChangesAndFinalizeOnNextGet();
        }
    
        @Override
        public void disallowUnsafeRead() {
            state.disallowUnsafeRead();
        }
    
        protected abstract S finalValue(EvaluationContext.ScopeContext context, S value, ValueConsumer consumer);
    
        protected void setSupplier(S supplier) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 11:41:54 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  6. platforms/core-configuration/file-collections/src/main/java/org/gradle/api/internal/file/collections/DefaultConfigurableFileCollection.java

            // so we do not #disallowChanges().
            valueState.finalizeOnNextGet();
        }
    
        @Override
        public void disallowUnsafeRead() {
            valueState.disallowUnsafeRead();
        }
    
        @Override
        public int getFactoryId() {
            return ManagedFactories.ConfigurableFileCollectionManagedFactory.FACTORY_ID;
        }
    
        @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)
  7. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/ValueSupplier.java

         */
        ValueProducer getProducer();
    
        boolean calculatePresence(ValueConsumer consumer);
    
        enum ValueConsumer {
            DisallowUnsafeRead, IgnoreUnsafeRead
        }
    
        /**
         * Carries information about the producer of a value.
         */
        interface ValueProducer {
            NoProducer NO_PRODUCER = new NoProducer();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 09 20:31:29 UTC 2024
    - 27.2K bytes
    - Viewed (0)
Back to top