summaryrefslogtreecommitdiffstats
path: root/plugins/sonar-core-plugin
diff options
context:
space:
mode:
authorFabrice Bellingard <bellingard@gmail.com>2012-06-29 11:21:53 +0200
committerFabrice Bellingard <bellingard@gmail.com>2012-06-29 11:23:56 +0200
commit94b831e62c22a1465adbde298bdc2d1d804a73fc (patch)
tree7fc8efa5fa0ea206390ad5f01f679a4a61998d95 /plugins/sonar-core-plugin
parentcbf9a517c208b45b1b6b719436fa08ef217e5196 (diff)
downloadsonarqube-94b831e62c22a1465adbde298bdc2d1d804a73fc.tar.gz
sonarqube-94b831e62c22a1465adbde298bdc2d1d804a73fc.zip
SONAR-1608 Make it possible to modify the key of projects
Diffstat (limited to 'plugins/sonar-core-plugin')
-rw-r--r--plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/DefaultResourceTypes.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/DefaultResourceTypes.java b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/DefaultResourceTypes.java
index 3ddd12dc63a..78ff963e9e0 100644
--- a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/DefaultResourceTypes.java
+++ b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/DefaultResourceTypes.java
@@ -38,8 +38,11 @@ public final class DefaultResourceTypes extends ExtensionProvider implements Bat
.setProperty("deletable", "true")
.setProperty("modifiable_history", "true")
.setProperty("hasRolePolicy", "true")
+ .setProperty("updatable_key", "true")
+ .build())
+ .addType(ResourceType.builder(Qualifiers.MODULE)
+ .setProperty("updatable_key", "true")
.build())
- .addType(ResourceType.builder(Qualifiers.MODULE).build())
.addType(ResourceType.builder(Qualifiers.DIRECTORY).build())
.addType(ResourceType.builder(Qualifiers.PACKAGE).build())
.addType(ResourceType.builder(Qualifiers.FILE).hasSourceCode().build())