Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for SpecConfigurableRule (0.38 sec)

  1. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/dsl/SpecConfigurableRule.java

    import org.gradle.api.specs.Spec;
    import org.gradle.internal.action.ConfigurableRule;
    
    class SpecConfigurableRule {
    
        private final ConfigurableRule<ComponentMetadataContext> configurableRule;
        private final Spec<ModuleVersionIdentifier> spec;
    
        SpecConfigurableRule(ConfigurableRule<ComponentMetadataContext> configurableRule, Spec<ModuleVersionIdentifier> spec) {
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/dsl/ClassBasedMetadataRuleWrapper.java

        private final List<SpecConfigurableRule> classRules = Lists.newArrayListWithExpectedSize(5);
    
        ClassBasedMetadataRuleWrapper(SpecConfigurableRule classRule) {
            this.classRules.add(classRule);
        }
    
        @Override
        public boolean isClassBased() {
            return true;
        }
    
        @Override
        public Collection<SpecConfigurableRule> getClassRules() {
            return classRules;
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/dsl/ComponentMetadataRuleContainerTest.groovy

            def ruleWrapper = iterator.next()
            ruleWrapper.isClassBased()
            ruleWrapper.classRules.containsAll([rule1, rule2])
        }
    
        private SpecConfigurableRule configurableRule() {
            Mock(SpecConfigurableRule) {
                getConfigurableRule() >> Stub(ConfigurableRule)
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/dsl/MetadataRuleWrapper.java

    import java.util.Collection;
    
    interface MetadataRuleWrapper {
        DisplayName getDisplayName();
    
        boolean isClassBased();
    
        Collection<SpecConfigurableRule> getClassRules();
    
        SpecRuleAction<? super ComponentMetadataDetails> getRule();
    
        void addClassRule(SpecConfigurableRule ruleAction);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/dsl/ActionBasedMetadataRuleWrapper.java

        public boolean isClassBased() {
            return false;
        }
    
        @Override
        public Collection<SpecConfigurableRule> getClassRules() {
            throw new UnsupportedOperationException("This operation is not supported by this implementation");
        }
    
        @Override
        public void addClassRule(SpecConfigurableRule ruleAction) {
            throw new UnsupportedOperationException("This operation is not supported by this implementation");
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/dsl/DefaultComponentMetadataProcessorTest.groovy

        }
    
        private SpecConfigurableRule addRuleForModule(String notation) {
            metadataRuleContainer.addClassRule(new SpecConfigurableRule(DefaultConfigurableRule.of(TestComponentMetadataRule), new DefaultComponentMetadataHandler.ModuleVersionIdentifierSpec(moduleIdentifierNotationParser.parseNotation(notation))))
        }
    
        private SpecConfigurableRule addRuleForModuleWithParams(String notation, Object... params) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/dsl/DefaultComponentMetadataHandler.java

            Spec<ModuleVersionIdentifier> spec = new ModuleVersionIdentifierSpec(moduleIdentifier);
            return new SpecConfigurableRule(instantiatingAction, spec);
        }
    
        private SpecConfigurableRule createAllSpecConfigurableRule(ConfigurableRule<ComponentMetadataContext> instantiatingAction) {
            return new SpecConfigurableRule(instantiatingAction, Specs.satisfyAll());
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 16.2K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/dsl/ComponentMetadataRuleContainer.java

        }
    
        private void addRule() {
            if (onAdd != null) {
                onAdd.accept(lastAdded.getDisplayName());
            }
            rules.add(lastAdded);
        }
    
        void addClassRule(SpecConfigurableRule ruleAction) {
            if (lastAdded != null && lastAdded.isClassBased()) {
                lastAdded.addClassRule(ruleAction);
            } else {
                lastAdded = new ClassBasedMetadataRuleWrapper(ruleAction);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/dsl/DefaultComponentMetadataProcessor.java

        private Action<ComponentMetadataContext> collectRulesAndCreateAction(Collection<SpecConfigurableRule> rules, ModuleVersionIdentifier id, Instantiator instantiator) {
            if (rules.isEmpty()) {
                return Actions.doNothing();
            }
            ArrayList<ConfigurableRule<ComponentMetadataContext>> collectedRules = new ArrayList<>();
            for (SpecConfigurableRule classBasedRule : rules) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 20.2K bytes
    - Viewed (0)
  10. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/dsl/CachedCodePathComponentMetadataProcessorTest.groovy

                metadata.addVariant("variant$it", ImmutableAttributes.EMPTY)
            }
    
            and: "a rule that adds a variant to all components"
            metadataRuleContainer.addClassRule(
                new SpecConfigurableRule(
                    DefaultConfigurableRule.of(TestAddVariantComponentMetadataRule),
                    Specs.satisfyAll()
                )
            )
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 09 11:21:11 UTC 2024
    - 8K bytes
    - Viewed (0)
Back to top