diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2012-11-06 18:43:55 +0100 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2012-11-06 18:44:07 +0100 |
commit | 8162e11b955940fbc620b78ff1551eccfc7005b2 (patch) | |
tree | f9d0cfa4beb4a194d65453c21a45665dd7a905af /sonar-core | |
parent | badee2ec9a773c5444baa15ca386a85461a4b5b1 (diff) | |
download | sonarqube-8162e11b955940fbc620b78ff1551eccfc7005b2.tar.gz sonarqube-8162e11b955940fbc620b78ff1551eccfc7005b2.zip |
SONAR-3895 allow to exclude plugins during dry run mode
Diffstat (limited to 'sonar-core')
-rw-r--r-- | sonar-core/src/main/java/org/sonar/core/DryRunIncompatible.java | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/sonar-core/src/main/java/org/sonar/core/DryRunIncompatible.java b/sonar-core/src/main/java/org/sonar/core/DryRunIncompatible.java new file mode 100644 index 00000000000..70814e89b0d --- /dev/null +++ b/sonar-core/src/main/java/org/sonar/core/DryRunIncompatible.java @@ -0,0 +1,42 @@ +/* + * Sonar, open source software quality management tool. + * Copyright (C) 2008-2012 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; + +/** + * The presence of this annotation on an extension class indicates that the extension + * may be disabled when the dry-run mode is enabled (-Dsonar.dryRun=true). + * It's generally used by the extensions that push data to external systems, for example : + * <ul> + * <li>Send emails</li> + * <li>Create a JIRA issue</li> + * </ul> + * + * + * @since 3.4 + */ +@Retention(RetentionPolicy.RUNTIME) +@Target(ElementType.TYPE) +public @interface DryRunIncompatible { +} |