title: Shorten command line in IntelliJ is not working
body: <p>I have a gradle project which I want to build on Windows.</p>
  
  <p>I got an error</p>
  
  <pre><code>FAILURE: Build failed with an exception.
  
  * What went wrong:
  Execution failed for task 'xxx'.
  A problem occurred starting process 'command 'C:\Program 
  Files\Java\jdk1.8.0_172\bin\java.exe''
  
  BUILD FAILED in 23s
  25 actionable tasks: 1 executed, 24 up-to-date
  CreateProcess error=206, The filename or extension is too long.
  </code></pre>
  
  <p>So, as serveral people wrote here, I was looking for <em>shorten command line</em> option. I found this option in <em>Run/Debug Configuration</em> but not available for Gradle settings, I found it in, for example, JUnit options.</p>
  
  <p>I also tried to add </p>
  
  <pre><code>&lt;component name="PropertiesComponent"&gt;
      &lt;property name="dynamic.classpath" value="true" /&gt;
  &lt;/component&gt;
  </code></pre>
  
  <p>in .idea/workspace.xml,unfortunately, it didn't help either.</p>
  
  <p>Has anyone already solved this problem?</p>