Package org.gradle.model.internal.registry

Examples of org.gradle.model.internal.registry.ModelRegistry.state()


        taskContainer.all(new Action<Task>() {
            public void execute(final Task task) {
                final String name = task.getName();
                final ModelPath modelPath = TaskContainerInternal.MODEL_PATH.child(name);

                ModelState state = modelRegistry.state(modelPath);
                if (state == null || state.getStatus() != ModelState.Status.IN_CREATION) {
                    modelRegistry.create(
                            ModelCreators.of(ModelReference.of(modelPath, ModelType.typeOf(task)), task)
                                    .simpleDescriptor("Project.<init>.tasks." + name + "()")
                                    .build()
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.