Changeset 14021 in josm
- Timestamp:
- 2018-07-08T20:57:55+02:00 (7 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/build.xml
r14019 r14021 791 791 <sequential> 792 792 <echo message="Generating Taginfo for type @{type} to @{output}"/> 793 <groovy src="${taginfoextract}" classpath="${dist.jar} :${spotbugs.dir}/spotbugs-annotations.jar">793 <groovy src="${taginfoextract}" classpath="${dist.jar};${toString:groovy.classpath};${spotbugs.dir}/spotbugs-annotations.jar"> 794 794 <arg value="-t"/> 795 795 <arg value="@{type}"/> … … 805 805 806 806 <target name="taginfo" depends="dist"> 807 <taskdef name="groovy" classname="org.codehaus.groovy.ant.Groovy" classpath="${toString:groovy.classpath};${tools.dir}/commons-cli-1.3.1.jar"/> 807 <!-- http://docs.groovy-lang.org/2.5.0/html/documentation/#_the_groovy_ant_task --> 808 <taskdef name="groovy" classname="org.codehaus.groovy.ant.Groovy" classpathref="groovy.classpath"/> 808 809 <property name="taginfoextract" value="scripts/TagInfoExtract.groovy"/> 809 810 <property name="imgurlprefix" value="http://josm.openstreetmap.de/download/taginfo/taginfo-img"/> … … 814 815 815 816 <target name="imageryindex" depends="init-properties"> 816 <taskdef name="groovy" classname="org.codehaus.groovy.ant.Groovy" classpath ="${toString:groovy.classpath};${tools.dir}/commons-cli-1.3.1.jar"/>817 <taskdef name="groovy" classname="org.codehaus.groovy.ant.Groovy" classpathref="groovy.classpath"/> 817 818 <echo message="Checking editor imagery difference"/> 818 819 <groovy src="scripts/SyncEditorLayerIndex.groovy" classpath="${dist.jar}"> -
trunk/scripts/TagInfoExtract.groovy
r14019 r14021 13 13 import java.nio.file.Files 14 14 import java.nio.file.Path 15 import java.time.Instant 16 import java.time.ZoneId 17 import java.time.format.DateTimeFormatter 15 18 16 19 import javax.imageio.ImageIO … … 53 56 54 57 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings 55 import groovy.cli.commons.CliBuilder56 58 import groovy.json.JsonBuilder 57 59 … … 368 370 contact_email: "josm-dev@openstreetmap.org", 369 371 ] 370 json data_format: 1, data_updated: new Date().format("yyyyMMdd'T'hhmmss'Z'", TimeZone.getTimeZone('UTC')), project: project, tags: tags372 json data_format: 1, data_updated: DateTimeFormatter.ofPattern("yyyyMMdd'T'hhmmss'Z'").withZone(ZoneId.of("Z")).format(Instant.now()), project: project, tags: tags 371 373 372 374 if (output_file != null) {
Note:
See TracChangeset
for help on using the changeset viewer.