Ignore:
Timestamp:
2008-03-28T00:47:41+01:00 (16 years ago)
Author:
framm
Message:
  • patch for classpath compatibility by Andreas Putzo <andreas@…>. Closes #663
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/OsmServerWriter.java

    r529 r592  
    2727
    2828/**
    29  * Class that uploades all changes to the osm server.
     29 * Class that uploads all changes to the osm server.
    3030 *
    3131 * This is done like this: - All objects with id = 0 are uploaded as new, except
     
    4141
    4242        /**
    43          * This list contain all sucessfull processed objects. The caller of
     43         * This list contain all successful processed objects. The caller of
    4444         * upload* has to check this after the call and update its dataset.
    4545         *
    46          * If a server connection error occours, this may contain fewer entries
     46         * If a server connection error occurs, this may contain fewer entries
    4747         * than where passed in the list to upload*.
    4848         */
     
    192192                        activeConnection.setConnectTimeout(15000);
    193193                        activeConnection.setRequestMethod(requestMethod);
    194                         if (addBody)
     194            addAuth(activeConnection);
     195                        if (addBody) {
    195196                                activeConnection.setDoOutput(true);
    196                         activeConnection.connect();
    197                         System.out.println("connected");
    198                         if (addBody) {
    199197                                OutputStream out = activeConnection.getOutputStream();
    200198                                OsmWriter.output(out, new OsmWriter.Single(osm, true));
    201199                                out.close();
    202                         }
     200            }
     201                        activeConnection.connect();
     202                        System.out.println("connected");
    203203
    204204                        int retCode = activeConnection.getResponseCode();
Note: See TracChangeset for help on using the changeset viewer.