Package org.gradle.api.internal.initialization

Examples of org.gradle.api.internal.initialization.ClassLoaderScope.lock()


    public ClassLoaderScope buildAndCreateClassLoader(StartParameter startParameter) {
        ClassPath classpath = createBuildSourceClasspath(startParameter);
        ClassLoaderScope childScope = classLoaderScope.createChild();
        childScope.export(classpath);
        childScope.lock();
        return childScope;
    }

    ClassPath createBuildSourceClasspath(StartParameter startParameter) {
        assert startParameter.getCurrentDir() != null && startParameter.getBuildFile() == null;
View Full Code Here


    public Class<?> resolve() {
        ClassPath classPath = classPathFactory.create();
        ClassLoaderScope loaderScope = parent.createChild();
        loaderScope.local(classPath);
        loaderScope.lock();
        PluginRegistry pluginRegistry = new DefaultPluginRegistry(pluginInspector, loaderScope.getLocalClassLoader());
        PotentialPluginWithId lookup = pluginRegistry.lookup(pluginId.toString());
        if (lookup == null) {
            throw new UnknownPluginException("Plugin with id '" + pluginId + "' not found.");
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.