Changeset 15878 in josm for trunk/scripts


Ignore:
Timestamp:
2020-02-17T19:34:34+01:00 (4 years ago)
Author:
stoecker
Message:

see #18725 - adjust sync script output

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/scripts/SyncEditorLayerIndex.java

    r15851 r15878  
    286286            return skip.get(s);
    287287        for (Entry<String, String> str : skipStart.entrySet()) {
    288             if (s.startsWith(str.getKey()))
     288            if (s.startsWith(str.getKey())) {
     289                skipStart.remove(str.getKey());
    289290                return str.getValue();
     291            }
    290292        }
    291293        return null;
     
    331333            myprintln("+++ Obsolete skip entry: " + s);
    332334        }
     335        for (String s : skipStart.keySet()) {
     336            myprintln("+++ Obsolete skip entry: " + s + "...");
     337        }
    333338        if (optionXhtml) {
    334339            myprintlnfinal("</body></html>\n");
     
    344349            String url = getUrlStripped(e);
    345350            if (url.contains("{z}")) {
    346                 myprintln("+++ ELI-URL uses {z} instead of {zoom}: "+url);
     351                myprintln("+++ ELI-URL uses {z} instead of {zoom}: "+getDescription(e));
    347352                url = url.replace("{z}", "{zoom}");
    348353            }
     
    507512            String url = getUrlStripped(e);
    508513            if (url.contains("{z}")) {
    509                 myprintln("+++ JOSM-URL uses {z} instead of {zoom}: "+url);
     514                myprintln("+++ JOSM-URL uses {z} instead of {zoom}: "+getDescription(e));
    510515                url = url.replace("{z}", "{zoom}");
    511516            }
     
    14941499            cc = "["+cc+"] ";
    14951500        }
    1496         String d = cc + getName(o) + " - " + getUrl(o);
     1501        String name = getName(o);
     1502        String id = getId(o);
     1503        String d = cc;
     1504        if(name != null && !name.isEmpty()) {
     1505            d += name;
     1506            if(id != null && !id.isEmpty())
     1507              d += " ["+id+"]";
     1508        }
     1509        else if(url != null && !url.isEmpty())
     1510            d += url;
    14971511        if (optionShorten) {
    14981512            if (d.length() > MAXLEN) d = d.substring(0, MAXLEN-1) + "...";
Note: See TracChangeset for help on using the changeset viewer.