title: ADT Eclipse + Gradle: incomplete BuildConfig.java
body: <p>I am using the Android Developer Tools 22, Eclipse Indigo and the current Gradle Plugin for Eclipse.</p>
  
  <p>Now I would like to use different Flavors by defining in the build.gradle file:</p>
  
  <pre><code>     productFlavors{
       A {
         packageName "com.test.A"   
         buildConfig "public final static String FLAVOR = \"A\";"
  
      }
      B {
         packageName "com.test.B"
         buildConfig  "public final static String FLAVOR = \"B\";"
      }
  }
  </code></pre>
  
  <p>As far as I know i can access to this variables using <em>BuildConfig.FLAVOR</em>, but the definition of FLAVOR is missing in the generated BuildConfig.java in <em>gen</em> folder.</p>
  
  <p>If I assemble my Project via Gradle the correct and complete BuildConfig.java is generated in the folder <em>build/source/buildConfig/[A|B]/[debug|release]/com/test/</em>.</p>
  
  <p>It works if I build the project over gradle, but I can't work with Eclipse, because it expects that the variables are defined in the BuildConfig.java in <em>gen</em> folder</p>
  
  <p>Can I force gradle or the adt to generate the correct BuildConfig.java in the gen folder?</p>