title: Gradle Sync task, sync into folder but ignore specified directories in destination
body: <p>I want to synchronize a folder on my drive with another folder that contains a folder named 'logs' that i want to keep. confused? here's a diagram:</p>
  
  <pre><code>C:\
  |-- mydir/ # sync this folder
  |   `-- someotherfiles.txt
  `-- anotherDir/ # into this folder
      |-- logs/ # but if this exists, leave it there
      `-- someotherfiles.txt
  </code></pre>
  
  <p>Is this possible using the sync task? I can't seem to configure it properly, my latest attempt might allude you to my scenario so here it is (not working):</p>
  
  <pre><code>task syncDevDeployFolder(type: Sync, group: 'dev') {
      from currentDeliverablesDir
      destinationDir = file(project.properties['dev.deployment.dir'])
      into (project.properties['dev.deployment.dir']) {
          exclude "logs"
      }
  }
  </code></pre>