Changeset 63 in josm
- Timestamp:
- 2006-03-16T00:30:49+01:00 (19 years ago)
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
CONTRIBUTION
r41 r63 1 The XML Parser is JDOM 1.0 and comes from www.jdom.org. 2 It is licensed under "JDOM license", a modified Apache License 3 with Aknowledgement removed. 1 One XML Parser is JDOM 1.0 which comes from www.jdom.org and 2 is licensed under "JDOM license", a modified Apache License 3 with Aknowledgement removed. The other is MinML2 from 4 http://www.wilson.co.uk/xml/minml2.htm. The license is 5 attached below. 4 6 5 7 The icons are inspired and stolen from gnome-media package … … 14 16 15 17 Imi. 18 19 20 21 All content of MinML2.jar is licensed under: 22 ----------------MinML2 license-------------------- 23 Copyright (c) 1999, John Wilson (tug@wilson.co.uk). 24 All rights reserved. 25 Redistribution and use in source and binary forms, 26 with or without modification, are permitted provided 27 that the following conditions are met: 28 29 Redistributions of source code must retain the above 30 copyright notice, this list of conditions and the 31 following disclaimer. 32 33 Redistributions in binary form must reproduce the 34 above copyright notice, this list of conditions and 35 the following disclaimer in the documentation and/or 36 other materials provided with the distribution. 37 38 All advertising materials mentioning features or use 39 of this software must display the following acknowledgement: 40 41 This product includes software developed by John Wilson. 42 The name of John Wilson may not be used to endorse or promote 43 products derived from this software without specific prior 44 written permission. 45 46 THIS SOFTWARE IS PROVIDED BY JOHN WILSON ``AS IS'' AND ANY 47 EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 48 THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 49 PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL JOHN WILSON 50 BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 51 EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED 52 TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 53 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 54 ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 55 LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 56 IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 57 OF THE POSSIBILITY OF SUCH DAMAGE 58 -------------------------------------------------- -
LICENSE
r36 r63 1 1 JOSM and all files included in this archive and the source archive from 2 2 3 http://www.eigenheimstrasse.de/josm 4 5 except the JDOM files and parts of UTM.java are copyrighted 2005-2006 6 by Immanuel Scholz. 7 3 http://www.eigenheimstrasse.de/svn/josm 4 5 except the JDOM files, MinML2 files and parts of UTM.java are 6 copyrighted 2005-2006 by Immanuel Scholz. 8 7 The files are distributed under the terms of the following License: 9 8 -
README
r41 r63 1 This is a readme.txt to the Java OpenStreetMap Editor Beta1 This is a readme.txt to the Java OpenStreetMap Editor 2 2 3 3 -
src/org/openstreetmap/josm/io/OsmServerWriter.java
r61 r63 167 167 OsmWriter.outputSingle(out, osm, true); 168 168 out.close(); 169 170 StringWriter o = new StringWriter();171 OsmWriter.outputSingle(o, osm, true);172 System.out.println(o.getBuffer().toString());173 169 } 174 170 … … 179 175 String retMsg = con.getResponseMessage(); 180 176 con.disconnect(); 181 if (retCode != 200) 177 if (retCode == 410 && requestMethod.equals("DELETE")) 178 return; // everything fine.. was already deleted. 179 if (retCode != 200) { 180 StringWriter o = new StringWriter(); 181 OsmWriter.outputSingle(o, osm, true); 182 System.out.println(o.getBuffer().toString()); 182 183 throw new RuntimeException(retCode+" "+retMsg); 184 } 183 185 } catch (UnknownHostException e) { 184 186 throw new RuntimeException("Unknown host: "+e.getMessage(), e);
Note:
See TracChangeset
for help on using the changeset viewer.