title: Specifiy JRE Container with gradle eclipse plugin
body: <p>Even when the properties for <code>sourceCompatibility</code> and <code>targetCompatibility</code> are set to a specific JRE Version, will the classpathentry for the <code>JRE_CONTAINER</code> only be genarated as <code>&lt;classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER" exported="true"/&gt;</code>, and the default JRE-Version under "Installed JREs" in the eclipse settings doesn't always match the JRE-Version I want to use within my project.</p>
  
  <p>How can I ask gradle, to set the JRE_CONTAINER to a specific version when gradle is run with <code>gradle eclipse</code>?</p>
  
  <hr>
  
  <pre><code>apply plugin: 'java'
  apply plugin: 'eclipse'
  
  ext {
      target = "1.5"
  }
  
  def jreContainer = 'org.eclipse.jdt.launching.JRE_CONTAINER'
  
  if (target == '1.4' || target == '1.5') {
      jreContainer += '/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-' + target
  } else if (target == '1.6' || target == '1.7') {
      jreContainer += '/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-' + target
  }
  
  eclipse {
      classpath {
          containers.clear()
          containers.add(jreContainer)
      }
  }
  </code></pre>