Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

trim down the bits that we don't need

  • Loading branch information...
commit cd8b3a061aa3828ce412284c0587a6ffc5eab9a8 1 parent 98768b2
@kohsuke kohsuke authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 list-jdk/src/main/java/ListJDK.java
View
6 list-jdk/src/main/java/ListJDK.java
@@ -47,7 +47,8 @@ private JSONObject family(String name, JSONObject data) {
o.put("name",name);
JSONArray releases = new JSONArray();
for (String n : (Set<String>)data.keySet()) {
- releases.add(release(n,data.getJSONObject(n)));
+ if (n.contains("jdk"))
+ releases.add(release(n,data.getJSONObject(n)));
}
o.put("releases",releases);
return o;
@@ -57,6 +58,9 @@ private JSONObject release(String name, JSONObject src) {
JSONObject in = src.getJSONObject("files");
JSONArray files = new JSONArray();
for (String n : (Set<String>)in.keySet()) {
+ if (n.contains("rpm")) continue; // we don't use RPM bundle
+ if (n.contains("tar.Z")) continue; // we don't use RPM bundle
+ if (n.contains("-iftw.exe")) continue; // online installers
files.add(file(n, in.getJSONObject(n)));
}
return src.element("name",name).element("files",files);
Please sign in to comment.
Something went wrong with that request. Please try again.