Index: /trunk/.classpath
===================================================================
--- /trunk/.classpath (revision 14023)
+++ /trunk/.classpath (revision 14024)
@@ -154,9 +154,4 @@
-
-
-
-
-
Index: /trunk/scripts/TagInfoExtract.groovy
===================================================================
--- /trunk/scripts/TagInfoExtract.groovy (revision 14023)
+++ /trunk/scripts/TagInfoExtract.groovy (revision 14024)
@@ -18,4 +18,6 @@
import javax.imageio.ImageIO
+import javax.json.Json
+import javax.json.stream.JsonGenerator
import org.openstreetmap.josm.Main
@@ -56,5 +58,4 @@
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings
-import groovy.json.JsonBuilder
class TagInfoExtract {
@@ -360,21 +361,44 @@
}
- void write_json(name, description, tags) {
- def json = new JsonBuilder()
- def project = [
- name: name,
- description: description,
- project_url: "https://josm.openstreetmap.de/",
- icon_url: "https://josm.openstreetmap.de/export/7770/josm/trunk/images/logo_16x16x8.png",
- contact_name: "JOSM developer team",
- contact_email: "josm-dev@openstreetmap.org",
- ]
- json data_format: 1, data_updated: DateTimeFormatter.ofPattern("yyyyMMdd'T'hhmmss'Z'").withZone(ZoneId.of("Z")).format(Instant.now()), project: project, tags: tags
+ void write_json(String name, String description, List