title: Gradle Distribution create File
body: <p>I'm using gradle to build a desktop app and I'm trying to create a distribution for my app. I've used the application plugin (which inherit the distribution plugin) and when I call the <code>distZip</code> task, I would like to create a file into that zip with a configuration file with values passed as arguments from  the gradle command. For ex: when I call </p>
  
  <pre><code>gradle build distZip --project-prop myproperty=myvalue
  </code></pre>
  
  <p>I want to generate a properties file inside the zip distribution with that content.
  I've tried the following approach with no success:</p>
  
  <pre><code>applicationDistribution.into(".") {
      new File("server.properties").write("myproperty=$myproperty")
  }
  </code></pre>
  
  <p>When I do this, it creates a file in the root of the project instead of the root of the distribution zip. Does anyone know how to create this file inside the distribution zip?</p>