Details
Description
Embedded error: 'sonar.dynamicAnalysis' doesn't map to a Boolean object The value reuseReports can't be converted to a Boolean object ... Caused by: org.apache.commons.configuration.ConversionException: 'sonar.dynamicAnalysis' doesn't map to a Boolean object at org.apache.commons.configuration.AbstractConfiguration.getBoolean(AbstractConfiguration.java:682) at org.sonar.plugins.php.phpunit.PhpUnitConfiguration.<init>(PhpUnitConfiguration.java:96)}}
See attached pastie for a full stack trace of the problem.
I'm seeing this error when running analisys on a Java project so I'm not sure if there are two bugs here? Should the PHP analyser run for Java projects?
If I set dynamicAnalysis to "false" I don't see the error but then I lose code coverage results in Sonar for this build. This might be another bug so when this one is fixed, I'll test again and I can raise another if it's still happening.
Fixed on commit 3146.
There was a conception issue on how configuration is instanciated in the php plugin: Configuration was instanciated even if the project was not php.
This has been fixed and now the shouldExecuteOnProject method of the sensors does not require AbstractPhpPluginConfiguration to be instanciated.