title: Gradle ignores daemon ignore flag
body: <p>I'm running Gradle <code>3.2.1</code> on MacOS X 10.12.1 installed with <code>brew install gradle</code>, did not set any env variables etc. myself, trying to use the Java 9 EA:</p>
  
  <pre><code>gradle build -Dorg.gradle.java.home=~/jdk-9.jdk/Contents/Home
  </code></pre>
  
  <p>But the build is failing with </p>
  
  <blockquote>
    <p>FAILURE: Build failed with an exception.</p>
    
    <ul>
    <li>What went wrong: Unable to start the daemon process. This problem might be caused by incorrect configuration of the daemon. For example,
    an unrecognized jvm option is used.</li>
    </ul>
  </blockquote>
  
  <p>From what I know it fails because the daemon is trying to use the maxpermsize JVM option (which is not supported in Java 8+ but in Java 8 it's only a warning).</p>
  
  <p>So I tried to disable the daemon:</p>
  
  <pre><code>mkdir -p ~/.gradle &amp;&amp; echo "org.gradle.daemon=false" &gt;&gt; ~/.gradle/gradle.properties
  </code></pre>
  
  <p>But <code>gradle build</code> is still trying to start a daemon... I removed <code>~/.gradle</code> and <code>.gradle</code> in the project directory. Any other ideas?</p>
  
  <pre><code>$ gradle build -Dorg.gradle.daemon=false -Dorg.gradle.java.home=/Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home
  To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/3.2.1/userguide/gradle_daemon.html.
  
  FAILURE: Build failed with an exception.
  
  * What went wrong:
  Unable to start the daemon process.
  This problem might be caused by incorrect configuration of the daemon.
  For example, an unrecognized jvm option is used.
  Please refer to the user guide chapter on the daemon at https://docs.gradle.org/3.2.1/userguide/gradle_daemon.html
  Please read the following process output to find out more:
  -----------------------
  
  FAILURE: Build failed with an exception.
  
  * What went wrong:
  java.lang.ExceptionInInitializerError (no error message)
  
  * Try:
  Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
  
  
  * Try:
  Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
  &gt; Starting Daemon%
  </code></pre>