Package org.gradle.model.internal.core.rule.describe

Examples of org.gradle.model.internal.core.rule.describe.SimpleModelRuleDescriptor


        });
    }

    public ModelRuleDescriptor getDescriptor() {
        String descriptor = String.format("model.%s @ %s", modelPath, sourceLocation);
        return new SimpleModelRuleDescriptor(descriptor);
    }
View Full Code Here


            for (T binary : binaries.withType(binaryType)) {
                NamedEntityInstantiator<Task> instantiator = new Instantiator<Task>(binary, container);
                DefaultCollectionBuilder<Task> collectionBuilder = new DefaultCollectionBuilder<Task>(
                        getSubject().getPath(),
                        instantiator,
                        new SimpleModelRuleDescriptor("Project.<init>.tasks()"),
                        inputs,
                        modelRegistry);

                invoke(inputs, collectionBuilder, binary, binaries);
            }
View Full Code Here

            public void mutate(Object object, Inputs inputs) {
                new ClosureBackedAction<Object>(action).execute(object);
            }

            public ModelRuleDescriptor getDescriptor() {
                return new SimpleModelRuleDescriptor("model." + modelPath);
            }

            public List<ModelReference<?>> getInputs() {
                return Collections.emptyList();
            }
View Full Code Here

            for (final ComponentSpec componentSpec : componentSpecs.withType(componentType)) {
                NamedEntityInstantiator<S> namedEntityInstantiator = new Instantiator<S>(binaryType, componentSpec, binaries);
                CollectionBuilder<S> collectionBuilder = new DefaultCollectionBuilder<S>(
                        getSubject().getPath(),
                        namedEntityInstantiator,
                        new SimpleModelRuleDescriptor("Project.<init>.binaries()"),
                        inputs,
                        modelRegistry);
                invoke(inputs, collectionBuilder, componentSpec, componentSpecs);
            }
        }
View Full Code Here

            public List<ModelReference<?>> getInputs() {
                return Collections.emptyList();
            }

            public ModelRuleDescriptor getDescriptor() {
                return new SimpleModelRuleDescriptor("ModelRegistryHelper.configure - " + modelPathString);
            }
        });

        return this;
    }
View Full Code Here

            this.modelReference = modelReference;
            this.transformer = transformer;
        }

        public Builder<T> simpleDescriptor(String descriptor) {
            this.modelRuleDescriptor = new SimpleModelRuleDescriptor(descriptor);
            return this;
        }
View Full Code Here

TOP

Related Classes of org.gradle.model.internal.core.rule.describe.SimpleModelRuleDescriptor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.