Skip to content

Commit

Permalink
SONAR-6377 rename archive JSON object to artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
sns-seb committed Apr 20, 2015
1 parent e0b1753 commit 36d6b6c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Expand Up @@ -47,7 +47,7 @@ public class AvailablePluginsWsAction implements PluginsWsAction {
private static final String PROPERTY_URL = "url"; private static final String PROPERTY_URL = "url";
private static final String PROPERTY_TERMS_AND_CONDITIONS_URL = "termsAndConditionsUrl"; private static final String PROPERTY_TERMS_AND_CONDITIONS_URL = "termsAndConditionsUrl";
private static final String OBJECT_UPDATE = "update"; private static final String OBJECT_UPDATE = "update";
private static final String OBJECT_ARCHIVE = "archive"; private static final String OBJECT_ARTIFACT = "artifact";
private static final String OBJECT_RELEASE = "release"; private static final String OBJECT_RELEASE = "release";
private static final String PROPERTY_VERSION = "version"; private static final String PROPERTY_VERSION = "version";
private static final String PROPERTY_DATE = "date"; private static final String PROPERTY_DATE = "date";
Expand Down Expand Up @@ -128,7 +128,7 @@ private void writeRelease(JsonWriter jsonWriter, Release release) {
} }


private void writeArchive(JsonWriter jsonWriter, Release release) { private void writeArchive(JsonWriter jsonWriter, Release release) {
jsonWriter.name(OBJECT_ARCHIVE); jsonWriter.name(OBJECT_ARTIFACT);
jsonWriter.beginObject(); jsonWriter.beginObject();
jsonWriter.prop(PROPERTY_NAME, release.getFilename()); jsonWriter.prop(PROPERTY_NAME, release.getFilename());
jsonWriter.prop(PROPERTY_URL, release.getDownloadUrl()); jsonWriter.prop(PROPERTY_URL, release.getDownloadUrl());
Expand Down
Expand Up @@ -12,7 +12,7 @@
"release": { "release": {
"version": "3.2", "version": "3.2",
"date": "2015-03-10", "date": "2015-03-10",
"archive": { "artifact": {
"name": "sonar-abap-plugin-3.2.jar", "name": "sonar-abap-plugin-3.2.jar",
"url": "http://dist.sonarsource.com/abap/download/sonar-abap-plugin-3.2.jar" "url": "http://dist.sonarsource.com/abap/download/sonar-abap-plugin-3.2.jar"
} }
Expand All @@ -33,7 +33,7 @@
"release": { "release": {
"version": "1.0", "version": "1.0",
"date": "2014-03-31", "date": "2014-03-31",
"archive": { "artifact": {
"name": "sonar-android-plugin-1.0.jar", "name": "sonar-android-plugin-1.0.jar",
"url": "http://repository.codehaus.org/org/codehaus/sonar-plugins/android/sonar-android-plugin/1.0/sonar-android-plugin-1.0.jar" "url": "http://repository.codehaus.org/org/codehaus/sonar-plugins/android/sonar-android-plugin/1.0/sonar-android-plugin-1.0.jar"
} }
Expand Down
Expand Up @@ -12,7 +12,7 @@
"release": { "release": {
"version": "1.12.1", "version": "1.12.1",
"date": "2015-04-16", "date": "2015-04-16",
"archive": { "artifact": {
"name": "p_file.jar", "name": "p_file.jar",
"url": "http://p_file.jar" "url": "http://p_file.jar"
} }
Expand Down

0 comments on commit 36d6b6c

Please sign in to comment.