From: Julien Lancelot Date: Thu, 1 Sep 2016 14:18:10 +0000 (+0200) Subject: Add settings of all type in server-plugin X-Git-Tag: 6.1-RC1~185 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b4ba242ad71f3087134cb8e76d688bcf5dacc3e3;p=sonarqube.git Add settings of all type in server-plugin --- diff --git a/it/it-plugins/server-plugin/src/main/java/ServerPlugin.java b/it/it-plugins/server-plugin/src/main/java/ServerPlugin.java index ce032d42c34..84f4845aa2d 100644 --- a/it/it-plugins/server-plugin/src/main/java/ServerPlugin.java +++ b/it/it-plugins/server-plugin/src/main/java/ServerPlugin.java @@ -17,14 +17,29 @@ * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + import java.util.Arrays; import java.util.List; import org.sonar.api.Properties; import org.sonar.api.Property; +import org.sonar.api.PropertyType; import org.sonar.api.SonarPlugin; @Properties({ - @Property(key = "some-property", name = "Some Property", defaultValue = "aDefaultValue", global = true, project = false) + @Property(key = "some-property", name = "Some Property", defaultValue = "aDefaultValue", global = true, project = false), + @Property(key = "boolean", name = "Boolean", defaultValue = "true", type = PropertyType.BOOLEAN, global = true, project = false), + @Property(key = "user", name = "User", type = PropertyType.USER_LOGIN, global = true, project = false), + @Property(key = "list", name = "List", type = PropertyType.SINGLE_SELECT_LIST, options = {"A", "B", "C"}, global = true, project = false), + @Property(key = "metric", name = "Metric", type = PropertyType.METRIC, global = true, project = false), + @Property(key = "metric_level", name = "Metric Level", type = PropertyType.METRIC_LEVEL, global = true, project = false), + @Property(key = "float", name = "Float", type = PropertyType.FLOAT, global = true, project = false), + @Property(key = "int", name = "Integer", type = PropertyType.INTEGER, global = true, project = false), + @Property(key = "string", name = "String", type = PropertyType.STRING, global = true, project = false), + @Property(key = "license", name = "License", type = PropertyType.LICENSE, global = true, project = false), + @Property(key = "long", name = "Long", type = PropertyType.LONG, global = true, project = false), + @Property(key = "password", name = "Password", type = PropertyType.PASSWORD, global = true, project = false), + @Property(key = "text", name = "Text", type = PropertyType.TEXT, global = true, project = false), + @Property(key = "multi", name = "Multi", type = PropertyType.STRING, multiValues = true, global = true, project = false) }) public class ServerPlugin extends SonarPlugin { public List getExtensions() {