title: How to get the currently chose build variant in gradle?
body: <p>I'm using Android Studio RC with gradle 2.2. I have in my build variants section a few variants and I can choose which one I want to build. For example one build for Hungary or for Germany.</p>
  
  <p>I have a few tasks that I launch in my gradle script like changing the name based on the flavor/variant. But at the moment the script iterates over all the build variants like so:
  <code>android.applicationVariants.each { variant -&gt;</code>.</p>
  
  <p>So my question is: how can I get only the chosen variant from the android studio <code>Build Variants</code> section and use it in gradle script, so to remove the loop?</p>