Package org.gradle.model.dsl.internal.transform

Examples of org.gradle.model.dsl.internal.transform.RuleMetadata


        Closure<?> reownered = configuration.rehydrate(null, owner, thisObject);
        modelRegistry.mutate(new ClosureBackedModelMutator(reownered, references, modelPath, sourceLocation));
    }

    private static RuleMetadata getRuleMetadata(Closure<?> closure) {
        RuleMetadata ruleMetadata = closure.getClass().getAnnotation(RuleMetadata.class);
        if (ruleMetadata == null) {
            throw new IllegalStateException(String.format("Expected %s annotation to be used on the argument closure.", RuleMetadata.class.getName()));
        }
        return ruleMetadata;
    }
View Full Code Here

TOP

Related Classes of org.gradle.model.dsl.internal.transform.RuleMetadata

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.