Package org.gradle.api.plugins

Examples of org.gradle.api.plugins.WarPluginConvention


    // create directory by hand, as the Java plugin is not actually executing in our test
    defaultResourcesDir.mkdirs();
    log.info("Default resources dir: " + defaultResourcesDir.getAbsolutePath());

    // Default webapp directory
    WarPluginConvention warConvention = project.getConvention().getPlugin(WarPluginConvention.class);
    File defaultWebappDirectory = warConvention.getWebAppDir();
    // create directory by hand, as the War plugin is not actually executing in our test
    defaultWebappDirectory.mkdirs();
    log.info("Default webapp dir: " + defaultWebappDirectory.getAbsolutePath());
   
    // Get and execute the rebel task
View Full Code Here


        // Propagate 'defaultWebappDirectory'
        conventionAwareRebelTask.getConventionMapping().map(RebelGenerateTask.NAME_DEFAULT_WEBAPP_DIRECTORY, new Callable<Object>() {
          public Object call() throws Exception {
            try {
              WarPluginConvention warConvention = project.getConvention().getPlugin(WarPluginConvention.class);
              return warConvention.getWebAppDir();
            }
            catch (Exception e) {
              return null;
            }
          }
View Full Code Here

TOP

Related Classes of org.gradle.api.plugins.WarPluginConvention

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.