title: Caused by: java.lang.IllegalStateException: The folder 'test' does not exist for
body: <p>I will need your help please.
  This is the context, I'm trying to set up a Continous Integration plateform, for specifc needs, and this is my Configuration, all in the same machine(Windows 7 ):</p>
  
  <ul>
  <li>SonarQube 5.1 (I tried both internal and external databases)</li>
  <li>SonarQube runner 2.4</li>
  <li>PHP plugin for Sonar</li>
  <li>Jenkins 1.6</li>
  <li>SonarQube plugin for Jenkins (I'have already done all of the Sonarqube config in Jenkins)</li>
  <li><p>I created a specific Job for PHP (Which is a local folder in my file system)(I configured the build section of Jenkins bu adding Standalone SonarQube Analysis, with the specific Path to projeetc proporties which point to my sonar-project.properties behind )</p>
  
  <pre><code>sonar.projectKey=my:project
  sonar.projectName=PHP project analyzed with the SonarQube Runner reusing       PHPUnit reports
  sonar.projectVersion=1.0
  
   sonar.sources=userthing,test  sonar.tests=test   sonar.language=php  sonar.sourceEncoding=UTF-8    # Reusing PHPUnit reports #sonar.php.coverage.reportPath=reports/phpunit.coverage.xml  #sonar.php.tests.reportPath=reports/phpunit.xml
  </code></pre></li>
  </ul>
  
  <p>When I launch a build  from Jenkins I have this error :</p>
  
  <pre><code>NFO: Work directory: C:\Users\user\.jenkins\jobs\test projet\workspace\.sonar
  INFO: SonarQube Server 5.1.2
  14:13:10.295 INFO  - Load global repositories
  14:13:10.372 INFO  - Load global repositories (done) | time=78ms
  14:13:10.374 INFO  - Server id: 20151028133512
  14:13:10.374 INFO  - User cache: C:\Users\user\.sonar\cache
  14:13:10.379 INFO  - Install plugins
  14:13:10.706 INFO  - Install JDBC driver
  14:13:10.710 INFO  - Create JDBC datasource for jdbc:h2:tcp://localhost/sonar
  14:13:11.247 INFO  - Initializing Hibernate
  14:13:12.106 ERROR - Invalid value of sonar.tests for my:project
  INFO: ------------------------------------------------------------------------
  INFO: EXECUTION FAILURE
  INFO: ------------------------------------------------------------------------
  Total time: 2.131s
  Final Memory: 6M/20M
  INFO: ------------------------------------------------------------------------
  ERROR: Error during Sonar runner execution
  org.sonar.runner.impl.RunnerException: Unable to execute Sonar
      at org.sonar.runner.impl.BatchLauncher$1.delegateExecution(BatchLauncher.java:91)
      at org.sonar.runner.impl.BatchLauncher$1.run(BatchLauncher.java:75)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.sonar.runner.impl.BatchLauncher.doExecute(BatchLauncher.java:69)
      at org.sonar.runner.impl.BatchLauncher.execute(BatchLauncher.java:50)
      at org.sonar.runner.api.EmbeddedRunner.doExecute(EmbeddedRunner.java:102)
      at org.sonar.runner.api.Runner.execute(Runner.java:100)
      at org.sonar.runner.Main.executeTask(Main.java:70)
      at org.sonar.runner.Main.execute(Main.java:59)
      at org.sonar.runner.Main.main(Main.java:53)
  Caused by: java.lang.IllegalStateException: The folder 'test' does not exist for 'my:project' (base directory = C:\Users\user\.jenkins\jobs\test projet\workspace)
      at org.sonar.batch.scan.ProjectReactorBuilder.checkExistenceOfPaths(ProjectReactorBuilder.java:427)
      at org.sonar.batch.scan.ProjectReactorBuilder.validateDirectories(ProjectReactorBuilder.java:334)
      at org.sonar.batch.scan.ProjectReactorBuilder.defineRootProject(ProjectReactorBuilder.java:163)
      at org.sonar.batch.scan.ProjectReactorBuilder.execute(ProjectReactorBuilder.java:116)
      at org.sonar.batch.scan.ProjectScanContainer.projectBootstrap(ProjectScanContainer.java:110)
      at org.sonar.batch.scan.ProjectScanContainer.doBeforeStart(ProjectScanContainer.java:86)
      at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:90)
      at org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:77)
      at org.sonar.batch.scan.ScanTask.scan(ScanTask.java:57)
      at org.sonar.batch.scan.ScanTask.execute(ScanTask.java:45)
      at org.sonar.batch.bootstrap.TaskContainer.doAfterStart(TaskContainer.java:135)
      at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:92)
      at org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:77)
      at org.sonar.batch.bootstrap.GlobalContainer.executeTask(GlobalContainer.java:158)
      at org.sonar.batch.bootstrapper.Batch.executeTask(Batch.java:95)
      at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:67)
      at org.sonar.runner.batch.IsolatedLauncher.execute(IsolatedLauncher.java:48)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:601)
      at org.sonar.runner.impl.BatchLauncher$1.delegateExecution(BatchLauncher.java:87)
      ... 9 more
  ERROR: 
  ERROR: Re-run SonarQube Runner using the -X switch to enable full debug logging.
  Build step 'Lancer une analyse SonarQube autonome' marked build as failure
  Finished: FAILURE
  </code></pre>
  
  <p>I follow those steps to identify the root concern:</p>
  
  <ol>
  <li>I created manually sonar-project.properties.</li>
  <li>Lunch sonar-runner.bat directly from my php folder, => then it works perfectly I have all the metric.</li>
  <li>I'm sure that the root cause is Jenkins, but I don't know exactly what I'm missing.</li>
  </ol>
  
  <p>Even if some times everything seems to work fine, I got this message from stacktrace </p>
  
  <blockquote>
    <p>0 file indexed</p>
  </blockquote>
  
  <p>:
  <a href="https://i.stack.imgur.com/55gzf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/55gzf.png" alt="enter image description here"></a></p>
  
  <pre><code>     INFO: Error stacktraces are turned on.
  INFO: Runner configuration file: C:\DevTools\sonar-runner-2.4\conf\sonar-runner.properties
  INFO: Project configuration file: C:\Users\user\Desktop\Exemple de projet PHPUNIT\sonar-project.properties
  INFO: Default locale: "fr_FR", source code encoding: "UTF-8"
  INFO: Work directory: C:\Users\user\.jenkins\jobs\projet\workspace\.sonar
  INFO: SonarQube Server 5.1.2
  14:55:20.977 INFO  - Load global repositories
  14:55:21.040 INFO  - Load global repositories (done) | time=63ms
  14:55:21.040 INFO  - Server id: 20151028133512
  14:55:21.040 INFO  - User cache: C:\Users\user\.sonar\cache
  14:55:21.040 INFO  - Install plugins
  14:55:21.390 INFO  - Install JDBC driver
  14:55:21.390 INFO  - Create JDBC datasource for jdbc:h2:tcp://localhost/sonar
  14:55:21.918 INFO  - Initializing Hibernate
  14:55:22.858 INFO  - Load project repositories
  14:55:23.030 INFO  - Load project repositories (done) | time=172ms
  14:55:23.030 INFO  - Load project settings
  14:55:23.326 INFO  - Load technical debt model
  14:55:23.358 INFO  - Apply project exclusions
  14:55:23.498 WARN  - SCM provider autodetection failed. No SCM provider claims to support this project. Please use sonar.scm.provider to define SCM of your project.
  14:55:23.498 INFO  - -------------  Scan My Sonar Analyses for PHP project
  14:55:23.498 INFO  - Load module settings
  14:55:23.576 INFO  - Language is forced to php
  14:55:23.576 INFO  - Load rules
  14:55:23.864 INFO  - Base dir: C:\Users\user\.jenkins\jobs\projet\workspace
  14:55:23.864 INFO  - Working dir: C:\Users\user\.jenkins\jobs\projet\workspace\.sonar
  14:55:23.864 INFO  - Source paths: .
  14:55:23.864 INFO  - Source encoding: UTF-8, default locale: fr_FR
  14:55:23.864 INFO  - Index files
  14:55:23.866 INFO  - **0 files indexed******************************
  14:55:23.866 INFO  - Quality profile for php: Sonar way
  14:55:24.095 INFO  - Sensor Lines Sensor
  14:55:24.095 INFO  - Sensor Lines Sensor (done) | time=0ms
  14:55:24.095 INFO  - Sensor QProfileSensor
  14:55:24.105 INFO  - Sensor QProfileSensor (done) | time=10ms
  14:55:24.105 INFO  - Sensor InitialOpenIssuesSensor
  14:55:24.120 INFO  - Sensor InitialOpenIssuesSensor (done) | time=15ms
  14:55:24.120 INFO  - Sensor ProjectLinksSensor
  14:55:24.128 INFO  - Sensor ProjectLinksSensor (done) | time=8ms
  14:55:24.128 INFO  - Sensor VersionEventsSensor
  14:55:24.133 INFO  - Sensor VersionEventsSensor (done) | time=5ms
  14:55:24.133 INFO  - Sensor SCM Sensor
  14:55:24.133 INFO  - No SCM system was detected. You can use the 'sonar.scm.provider' property to explicitly specify it.
  14:55:24.133 INFO  - Sensor SCM Sensor (done) | time=0ms
  14:55:24.133 INFO  - Sensor CPD Sensor
  14:55:24.133 INFO  - DefaultCpdEngine is used for php
  14:55:24.133 INFO  - Sensor CPD Sensor (done) | time=0ms
  14:55:24.133 INFO  - No quality gate is configured.
  14:55:24.163 INFO  - Compare to previous analysis (2015-10-28)
  14:55:24.165 INFO  - Compare over 30 days (2015-09-28, analysis of Wed Oct 28 14:39:55 CET 2015)
  14:55:24.267 INFO  - Execute decorators...
  14:55:24.372 INFO  - Store results in database
  14:55:24.425 INFO  - Analysis reports generated in 35ms, dir size=2 KB
  14:55:24.435 INFO  - Analysis reports compressed in 10ms, zip size=2 KB
  14:55:24.459 INFO  - Analysis reports sent to server in 23ms
  14:55:24.460 INFO  - ANALYSIS SUCCESSFUL, you can browse http://localhost:9000/dashboard/index/projet
  14:55:24.460 INFO  - Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report.
  INFO: ------------------------------------------------------------------------
  INFO: EXECUTION SUCCESS
  INFO: ------------------------------------------------------------------------
  Total time: 3.851s
  Final Memory: 13M/113M
  INFO: ------------------------------------------------------------------------
  Finished: SUCCESS
  </code></pre>
  
  <p>It seems like his enable to index files that I have in my php folder.
  Thanks in advance for your help!</p>