- Timestamp:
- 2017-04-21T12:43:49+02:00 (8 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/build.xml
r11964 r11965 701 701 <echo message="Checking editor imagery difference"/> 702 702 <groovy src="scripts/SyncEditorLayerIndex.groovy" classpath="${dist.dir}/josm-custom.jar"> 703 <arg value="-no skip"/>703 <arg value="-noeli"/> 704 704 <arg value="-p"/> 705 <arg value=" eli.imagery.xml"/>705 <arg value="imagery_eliout.imagery.xml"/> 706 706 <arg value="-q"/> 707 <arg value=" josm.imagery.xml"/>707 <arg value="imagery_josmout.imagery.xml"/> 708 708 </groovy> 709 709 </target> … … 713 713 <arg value="https://josm.openstreetmap.de/maps"/> 714 714 <arg value="-O"/> 715 <arg value=" maps.xml"/>715 <arg value="imagery_josm.imagery.xml"/> 716 716 <arg value="--unlink"/> 717 717 </exec> … … 719 719 <arg value="https://josm.openstreetmap.de/wiki/ImageryCompareIgnores?format=txt"/> 720 720 <arg value="-O"/> 721 <arg value=" maps_ignores.txt"/>721 <arg value="imagery_josm.ignores.txt"/> 722 722 <arg value="--unlink"/> 723 723 </exec> … … 725 725 <arg value="https://raw.githubusercontent.com/osmlab/editor-layer-index/gh-pages/imagery.geojson"/> 726 726 <arg value="-O"/> 727 <arg value="imagery.geojson"/> 727 <arg value="imagery_eli.geojson"/> 728 728 <arg value="--unlink"/> 729 729 </exec> -
trunk/scripts/SyncEditorLayerIndex.groovy
r11964 r11965 35 35 def josmMirrors = new HashMap<String, ImageryInfo>() 36 36 37 static String eliInputFile = 'imagery.geojson' 38 static String josmInputFile = ' maps.xml'39 static String ignoreInputFile = ' maps_ignores.txt'37 static String eliInputFile = 'imagery_eli.geojson' 38 static String josmInputFile = 'imagery_josm.imagery.xml' 39 static String ignoreInputFile = 'imagery_josm.ignores.txt' 40 40 static FileWriter outputFile = null 41 41 static BufferedWriter outputStream = null … … 90 90 cli.p(longOpt:'elixml', args:1, argName:"elixml", "ELI entries for use in JOSM as XML file (incomplete)") 91 91 cli.q(longOpt:'josmxml', args:1, argName:"josmxml", "JOSM entries reoutput as XML file (incomplete)") 92 cli.m(longOpt:'no missingeli', argName:"nomissingeli", "don't showmissing editor layer index entries")92 cli.m(longOpt:'noeli', argName:"noeli", "don't show output for ELI problems") 93 93 cli.h(longOpt:'help', "show this help") 94 94 options = cli.parse(args) … … 152 152 String color = s.startsWith("***") ? "black" : ((s.startsWith("+ ") || s.startsWith("+++ ELI")) ? "blue" : "red") 153 153 s = "<pre style=\"margin:3px;color:"+color+"\">"+s.replaceAll("&","&").replaceAll("<","<").replaceAll(">",">")+"</pre>" 154 } 155 if ((s.startsWith("+ ") || s.startsWith("+++ ELI")) && options.noeli) { 156 return 154 157 } 155 158 myprintlnfinal(s) … … 283 286 } 284 287 285 if (options.nomissingeli)286 return287 288 def l2 = inOneButNotTheOther(josmUrls, eliUrls) 288 289 myprintln "*** URLs found in JOSM but not in ELI (${l2.size()}): ***"
Note:
See TracChangeset
for help on using the changeset viewer.