From 8162e11b955940fbc620b78ff1551eccfc7005b2 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Tue, 6 Nov 2012 18:43:55 +0100 Subject: SONAR-3895 allow to exclude plugins during dry run mode --- .../java/org/sonar/core/DryRunIncompatible.java | 42 ++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 sonar-core/src/main/java/org/sonar/core/DryRunIncompatible.java (limited to 'sonar-core') 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 : + * + * + * + * @since 3.4 + */ +@Retention(RetentionPolicy.RUNTIME) +@Target(ElementType.TYPE) +public @interface DryRunIncompatible { +} -- cgit v1.2.3