title: how to set webAppDirName in gradle
body: <p><a href="http://forums.gradle.org/gradle/topics/how_to_change_webappdir_to_point_to_web_instead_of_src_main_webapp" rel="nofollow">How to change webAppDir to point to /web instead of src/main/webapp</a></p>
  
  <p>I am trying to change the webAppDir to WebContent (Dynamic Web Application Structure in eclipse). </p>
  
  <p>I am using gradle 1.7.
  When i am trying to do the same thing as mention in Forum, it gives me error :</p>
  
  <pre><code>Creating properties on demand (a.k.a. dynamic properties) has been deprecated
  and is scheduled to be removed in Gradle 2.0. 
  Please read http://gradle.org/docs/current/dsl/org.gradle.api.plugins.ExtraPropertiesExtension.html
  for information on the replacement for dynamic properties.
  
  Deprecated dynamic property: "webAppDirName" on "root project 'xxxxxxxxxx", value: "WebContent".
  </code></pre>
  
  <p>The output WAR contains two folder "WEB-INF" and "META-INF"</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p><code>build.gradle</code></p>
  
  <pre><code>    webAppDirName='WebContent' 
  apply plugin: 'war'
  apply plugin: 'jetty'
  apply plugin: 'eclipse-wtp'
  
  sourceSets {
      main {
          java {
              srcDir 'src'
          }
          resources {
              srcDir 'src'
          }
  
      }
  }
  configurations { moreLibs }
  
  repositories {
      flatDir { dirs "WebContent/WEB-INF/lib" }
      mavenCentral()
  }
  
  dependencies {
      compile fileTree(dir: "WebContent/WEB-INF/lib", include: '*.jar')
      providedCompile 'javax.servlet:javax.servlet-api:3.0.1'
      runtime 'javax.servlet:jstl:1.2'
  }
  
  
  /* Change context path (base url). otherwise defaults to name of project */
  jettyRunWar.contextPath = ''
  </code></pre>
  
  <p>Please help.</p>
  
  <p>Another question:</p>
  
  <p>WEB-INF folder is also under WebContent. Whether the Copy of WebContent replace the classes folder.</p>