title: SonarQube Local Analysis - specify properties file
body: <p>I'm trying to run the analysis locally using Sonar-Scanner 2.6 pointing to SonarQube 5.4. The local solution folder contains the <em>sonar-project.properties</em> file used in the cloud analysis.</p>
  
  <p>I am trying to create the properties file to be used locally, that is separate from the global <em>sonar-project.properties</em> file. This is the command that I ran:</p>
  
  <pre><code>sonar-scanner -D project.settings=sonar-project-local.properties
  </code></pre>
  
  <p>Expected behavior: Of the two files (<em>sonar-project.properties</em> and <em>sonar-project-local.properties</em>), sonar-scanner would choose the local one.</p>
  
  <p>Observed behavior: If the file <em>sonar-project.properties</em> exists, sonar-scanner uses the global one and ignores the local one.</p>
  
  <p>If I remove (rename) the global file from the directory, then the local file is recognized, and behavior is as expected.</p>
  
  <p>Is this a bug? What is the way to solve this issue without messing with the global properties file?</p>