]> source.dussan.org Git - sonarqube.git/commit
SONAR-2861 New Configuration API
authorsimonbrandhof <simon.brandhof@gmail.com>
Tue, 4 Oct 2011 22:44:37 +0000 (00:44 +0200)
committerSimon Brandhof <simon.brandhof@gmail.com>
Fri, 7 Oct 2011 11:36:25 +0000 (13:36 +0200)
commitef5bf7fdece84e5a52c8d478c8a733ecdf4d57f1
treec64a8a041183379e92fbc81becc77af07c9b38e3
parent3174a29201e922db758b51f4b693ca131e7037ec
SONAR-2861 New Configuration API

The component org.apache.commons.Configuration is still available but plugins should use org.sonar.api.config.Settings.
It also implies the following issues :

SONAR-2870 do not rebuild the WAR file when editing sonar.properties
SONAR-2869 allow to use the annotations @Properties/@Property on extensions
94 files changed:
plugins/sonar-checkstyle-plugin/src/main/java/org/sonar/plugins/checkstyle/CheckstyleConfiguration.java
plugins/sonar-checkstyle-plugin/src/main/java/org/sonar/plugins/checkstyle/CheckstyleConstants.java
plugins/sonar-checkstyle-plugin/src/test/java/org/sonar/plugins/checkstyle/CheckstyleConfigurationTest.java
plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/CorePlugin.java
sonar-application/src/main/assembly/war/build.xml
sonar-batch/src/main/java/org/sonar/batch/Batch.java
sonar-batch/src/main/java/org/sonar/batch/ProjectConfigurator.java
sonar-batch/src/main/java/org/sonar/batch/ProjectTree.java
sonar-batch/src/main/java/org/sonar/batch/ServerMetadata.java
sonar-batch/src/main/java/org/sonar/batch/bootstrap/BatchExtensionInstaller.java
sonar-batch/src/main/java/org/sonar/batch/bootstrap/BatchModule.java
sonar-batch/src/main/java/org/sonar/batch/bootstrap/BatchPluginRepository.java
sonar-batch/src/main/java/org/sonar/batch/bootstrap/BootstrapModule.java
sonar-batch/src/main/java/org/sonar/batch/bootstrap/DryRun.java
sonar-batch/src/main/java/org/sonar/batch/bootstrap/Module.java
sonar-batch/src/main/java/org/sonar/batch/bootstrap/ProjectExtensionInstaller.java
sonar-batch/src/main/java/org/sonar/batch/bootstrap/ProjectModule.java
sonar-batch/src/main/java/org/sonar/batch/config/BatchSettings.java [new file with mode: 0644]
sonar-batch/src/main/java/org/sonar/batch/config/BatchSettingsEnhancer.java [new file with mode: 0644]
sonar-batch/src/main/java/org/sonar/batch/config/DeprecatedConfigurationProvider.java [new file with mode: 0644]
sonar-batch/src/main/java/org/sonar/batch/config/ProjectSettings.java [new file with mode: 0644]
sonar-batch/src/test/java/org/sonar/batch/DecoratorsSelectorTest.java
sonar-batch/src/test/java/org/sonar/batch/ProjectConfiguratorTest.java
sonar-batch/src/test/java/org/sonar/batch/ProjectTreeTest.java
sonar-batch/src/test/java/org/sonar/batch/ServerMetadataTest.java
sonar-batch/src/test/java/org/sonar/batch/bootstrap/BatchExtensionInstallerTest.java
sonar-batch/src/test/java/org/sonar/batch/bootstrap/BatchPluginRepositoryTest.java
sonar-batch/src/test/java/org/sonar/batch/bootstrap/DryRunTest.java
sonar-batch/src/test/java/org/sonar/batch/bootstrap/ModuleTest.java
sonar-batch/src/test/java/org/sonar/batch/bootstrap/ProjectExtensionInstallerTest.java
sonar-core/src/main/java/org/sonar/core/config/ConfigurationUtils.java [new file with mode: 0644]
sonar-core/src/main/java/org/sonar/core/plugins/PluginClassloaders.java
sonar-core/src/main/java/org/sonar/jpa/session/AbstractDatabaseConnector.java
sonar-core/src/main/java/org/sonar/jpa/session/DriverDatabaseConnector.java
sonar-core/src/main/java/org/sonar/jpa/session/MemoryDatabaseConnector.java
sonar-core/src/test/java/org/sonar/core/config/ConfigurationUtilsTest.java [new file with mode: 0644]
sonar-core/src/test/java/org/sonar/core/plugin/AbstractPluginRepositoryTest.java
sonar-core/src/test/java/org/sonar/jpa/session/AbstractDatabaseConnectorTest.java
sonar-core/src/test/java/org/sonar/jpa/session/DriverDatabaseConnectorTest.java
sonar-maven-plugin/src/main/java/org/sonar/maven/SonarMojo.java
sonar-maven3-plugin/src/main/java/org/sonar/maven3/SonarMojo.java
sonar-plugin-api/src/main/java/org/sonar/api/batch/BatchExtensionDictionnary.java
sonar-plugin-api/src/main/java/org/sonar/api/config/PropertyDefinitions.java [new file with mode: 0644]
sonar-plugin-api/src/main/java/org/sonar/api/config/Settings.java [new file with mode: 0644]
sonar-plugin-api/src/main/java/org/sonar/api/platform/ComponentContainer.java [new file with mode: 0644]
sonar-plugin-api/src/main/java/org/sonar/api/resources/Languages.java
sonar-plugin-api/src/main/java/org/sonar/api/resources/Project.java
sonar-plugin-api/src/main/java/org/sonar/api/utils/HttpDownloader.java
sonar-plugin-api/src/main/java/org/sonar/api/utils/IocContainer.java
sonar-plugin-api/src/test/java/org/sonar/api/batch/BatchExtensionDictionnaryTest.java
sonar-plugin-api/src/test/java/org/sonar/api/config/PropertyDefinitionsTest.java [new file with mode: 0644]
sonar-plugin-api/src/test/java/org/sonar/api/config/SettingsTest.java [new file with mode: 0644]
sonar-plugin-api/src/test/java/org/sonar/api/platform/ComponentContainerTest.java [new file with mode: 0644]
sonar-plugin-api/src/test/java/org/sonar/api/utils/HttpDownloaderTest.java
sonar-plugin-api/src/test/java/org/sonar/api/utils/IocContainerTest.java [deleted file]
sonar-server/src/main/java/org/sonar/server/charts/ChartsServlet.java
sonar-server/src/main/java/org/sonar/server/configuration/ConfigurationException.java [deleted file]
sonar-server/src/main/java/org/sonar/server/configuration/ConfigurationFactory.java [deleted file]
sonar-server/src/main/java/org/sonar/server/configuration/ConfigurationLogger.java [deleted file]
sonar-server/src/main/java/org/sonar/server/configuration/CoreConfiguration.java [deleted file]
sonar-server/src/main/java/org/sonar/server/configuration/ServerSettings.java [new file with mode: 0644]
sonar-server/src/main/java/org/sonar/server/database/EmbeddedDatabase.java
sonar-server/src/main/java/org/sonar/server/database/EmbeddedDatabaseFactory.java
sonar-server/src/main/java/org/sonar/server/database/JndiDatabaseConnector.java
sonar-server/src/main/java/org/sonar/server/mavendeployer/MavenRepository.java
sonar-server/src/main/java/org/sonar/server/notifications/NotificationService.java
sonar-server/src/main/java/org/sonar/server/platform/DefaultServerFileSystem.java
sonar-server/src/main/java/org/sonar/server/platform/Platform.java
sonar-server/src/main/java/org/sonar/server/platform/PlatformLifecycleListener.java
sonar-server/src/main/java/org/sonar/server/plugins/DefaultServerPluginRepository.java
sonar-server/src/main/java/org/sonar/server/plugins/ServerExtensionInstaller.java [new file with mode: 0644]
sonar-server/src/main/java/org/sonar/server/plugins/StaticResourcesServlet.java
sonar-server/src/main/java/org/sonar/server/plugins/UpdateCenterClient.java
sonar-server/src/main/java/org/sonar/server/startup/GwtPublisher.java
sonar-server/src/main/java/org/sonar/server/ui/AuthenticatorFactory.java
sonar-server/src/main/java/org/sonar/server/ui/DatabaseSessionFilter.java
sonar-server/src/main/java/org/sonar/server/ui/JRubyFacade.java
sonar-server/src/main/resources/sonar-war.properties [new file with mode: 0644]
sonar-server/src/main/webapp/WEB-INF/app/controllers/project_controller.rb
sonar-server/src/main/webapp/WEB-INF/app/controllers/settings_controller.rb
sonar-server/src/main/webapp/WEB-INF/app/controllers/updatecenter_controller.rb
sonar-server/src/main/webapp/WEB-INF/app/controllers/users_controller.rb
sonar-server/src/main/webapp/WEB-INF/app/helpers/application_helper.rb
sonar-server/src/main/webapp/WEB-INF/app/models/server.rb
sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_layout.html.erb
sonar-server/src/main/webapp/WEB-INF/lib/database_version.rb
sonar-server/src/main/webapp/WEB-INF/lib/need_authentication.rb
sonar-server/src/test/java/org/sonar/server/configuration/ConfigurationFactoryTest.java [deleted file]
sonar-server/src/test/java/org/sonar/server/database/EmbeddedDatabaseTest.java
sonar-server/src/test/java/org/sonar/server/database/JndiDatabaseConnectorTest.java
sonar-server/src/test/java/org/sonar/server/notifications/NotificationServiceTest.java
sonar-server/src/test/java/org/sonar/server/plugins/DefaultServerPluginRepositoryTest.java
sonar-server/src/test/java/org/sonar/server/plugins/ServerExtensionInstallerTest.java [new file with mode: 0644]
sonar-server/src/test/java/org/sonar/server/ui/AuthenticatorFactoryTest.java