Package org.gradle.api.internal

Examples of org.gradle.api.internal.IConventionAware


        this.convention = convention;
    }

    public RepositoryHandler create() {
        RepositoryHandler repositoryHandler = factory.create();
        IConventionAware conventionAwareHandler = (IConventionAware) repositoryHandler;
        if (conventionMapping == null) {
            conventionMapping = conventionAwareHandler.getConventionMapping();
            conventionMapping.setConvention(convention);
        } else {
            conventionAwareHandler.setConventionMapping(conventionMapping);
        }
        return repositoryHandler;
    }
View Full Code Here


    log.info("Configuring Rebel plugin...");

    project.getExtensions().create(REBEL_EXTENSION_NAME, RebelDslMain.class);
   
    final RebelGenerateTask generateRebelTask = (RebelGenerateTask) project.getTasks().getByName(GENERATE_REBEL_TASK_NAME);
    final IConventionAware conventionAwareRebelTask = (IConventionAware) generateRebelTask;
   
    // let everything be compiled and processed so that classes / resources directories are there
    generateRebelTask.dependsOn(project.getTasks().getByName(JavaPlugin.CLASSES_TASK_NAME));

    final RebelDslMain rebelExtension = (RebelDslMain) project.getExtensions().getByName(REBEL_EXTENSION_NAME);
View Full Code Here

TOP

Related Classes of org.gradle.api.internal.IConventionAware

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.