- Timestamp:
- 2022-01-26T20:13:22+01:00 (3 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/projection/ProjectionCLI.java
r16643 r18366 20 20 import org.openstreetmap.josm.data.coor.LatLon; 21 21 import org.openstreetmap.josm.data.coor.conversion.LatLonParser; 22 import org.openstreetmap.josm.spi.lifecycle.Lifecycle; 22 23 import org.openstreetmap.josm.tools.OptionParser; 23 24 … … 76 77 } catch (ProjectionConfigurationException | IllegalArgumentException | IOException ex) { 77 78 System.err.println(tr("Error: {0}", ex.getMessage())); 78 System.exit(1);79 Lifecycle.exitJosm(true, 1); 79 80 } 80 System.exit(0);81 Lifecycle.exitJosm(true, 0); 81 82 } 82 83 … … 86 87 private static void showHelp() { 87 88 System.out.println(getHelp()); 88 System.exit(0);89 Lifecycle.exitJosm(true, 0); 89 90 } 90 91 -
trunk/src/org/openstreetmap/josm/data/validation/ValidatorCLI.java
r18365 r18366 69 69 */ 70 70 public class ValidatorCLI implements CLIModule { 71 72 73 71 /** 72 * The unique instance. 73 */ 74 74 public static final ValidatorCLI INSTANCE = new ValidatorCLI(); 75 75 … … 385 385 case HELP: 386 386 showHelp(); 387 System.exit(0);387 Lifecycle.exitJosm(true, 0); 388 388 break; 389 389 case DEBUG: -
trunk/src/org/openstreetmap/josm/gui/MainApplication.java
r18365 r18366 278 278 } catch (IllegalArgumentException e) { 279 279 System.err.println(e.getMessage()); 280 System.exit(1);280 Lifecycle.exitJosm(true, 1); 281 281 } 282 282 mainJOSM(args); … … 1241 1241 tr("''{0}'' is not a valid value for argument ''{1}''. Possible values are {2}, possibly delimited by commas.", 1242 1242 s.toUpperCase(Locale.ENGLISH), Option.OFFLINE.getName(), Arrays.toString(OnlineResource.values())), e); 1243 System.exit(1);1243 Lifecycle.exitJosm(true, 1); 1244 1244 return; 1245 1245 } -
trunk/src/org/openstreetmap/josm/gui/mappaint/RenderingCLI.java
r16818 r18366 39 39 import org.openstreetmap.josm.io.IllegalDataException; 40 40 import org.openstreetmap.josm.io.OsmReader; 41 import org.openstreetmap.josm.spi.lifecycle.Lifecycle; 41 42 import org.openstreetmap.josm.spi.preferences.Config; 42 43 import org.openstreetmap.josm.spi.preferences.MemoryPreferences; … … 177 178 } 178 179 System.err.println(tr("Error - file not found: ''{0}''", e.getMessage())); 179 System.exit(1);180 Lifecycle.exitJosm(true, 1); 180 181 } catch (IllegalArgumentException | IllegalDataException | IOException e) { 181 182 if (Logging.isDebugEnabled()) { … … 185 186 System.err.println(tr("Error: {0}", e.getMessage())); 186 187 } 187 System.exit(1);188 } 189 System.exit(0);188 Lifecycle.exitJosm(true, 1); 189 } 190 Lifecycle.exitJosm(true, 0); 190 191 } 191 192 … … 228 229 case HELP: 229 230 showHelp(); 230 System.exit(0);231 Lifecycle.exitJosm(true, 0); 231 232 break; 232 233 case DEBUG:
Note:
See TracChangeset
for help on using the changeset viewer.