Changeset 11965 in josm for trunk/scripts
- Timestamp:
- 2017-04-21T12:43:49+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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 show missing 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.