diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2011-06-15 10:55:55 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2011-06-15 10:56:24 +0200 |
commit | 1063d63ad0fef20b898376d4465e4c88cc061c1b (patch) | |
tree | e02735640b26715c8aae7396e3cf3e0cba3e93e4 /sonar-core | |
parent | eb3c0dc7dec66ad446e41a8291836af352bbc819 (diff) | |
download | sonarqube-1063d63ad0fef20b898376d4465e4c88cc061c1b.tar.gz sonarqube-1063d63ad0fef20b898376d4465e4c88cc061c1b.zip |
SONAR-2505 core components which write to database are disabled on dry runs
Diffstat (limited to 'sonar-core')
-rw-r--r-- | sonar-core/src/main/java/org/sonar/core/NotDryRun.java | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/sonar-core/src/main/java/org/sonar/core/NotDryRun.java b/sonar-core/src/main/java/org/sonar/core/NotDryRun.java new file mode 100644 index 00000000000..46a5e2374f2 --- /dev/null +++ b/sonar-core/src/main/java/org/sonar/core/NotDryRun.java @@ -0,0 +1,35 @@ +/* + * Sonar, open source software quality management tool. + * Copyright (C) 2008-2011 SonarSource + * mailto:contact AT sonarsource DOT com + * + * Sonar is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * Sonar is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with Sonar; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 + */ +package org.sonar.core; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +/** + * Disables component on dry runs. + * This annotation must be used by core modules only. It MUST not be used by external plugins. + * @since 2.9 + */ +@Retention(RetentionPolicy.RUNTIME) +@Target(ElementType.TYPE) +public @interface NotDryRun { +} |