Changeset 6830 in josm for trunk/src/org/openstreetmap/josm/plugins
- Timestamp:
- 2014-02-10T00:51:53+01:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/plugins/PluginInformation.java
r6792 r6830 331 331 } 332 332 333 334 335 333 /** 336 334 * Try to find a plugin after some criterias. Extract the plugin-information 337 335 * from the plugin and return it. The plugin is searched in the following way: 338 * 339 *<li>first look after an MANIFEST.MF in the package org.openstreetmap.josm.plugins. <plugin name>336 *<ol> 337 *<li>first look after an MANIFEST.MF in the package org.openstreetmap.josm.plugins.<plugin name> 340 338 * (After removing all fancy characters from the plugin name). 341 * If found, the plugin is loaded using the bootstrap classloader. 339 * If found, the plugin is loaded using the bootstrap classloader.</li> 342 340 *<li>If not found, look for a jar file in the user specific plugin directory 343 * (~/.josm/plugins/ <plugin name>.jar)344 *<li>If not found and the environment variable JOSM_RESOURCES + "/plugins/" exist, look there. 345 *<li>Try for the java property josm.resources + "/plugins/" (set via java -Djosm.plugins.path=...) 341 * (~/.josm/plugins/<plugin name>.jar)</li> 342 *<li>If not found and the environment variable JOSM_RESOURCES + "/plugins/" exist, look there.</li> 343 *<li>Try for the java property josm.resources + "/plugins/" (set via java -Djosm.plugins.path=...)</li> 346 344 *<li>If the environment variable ALLUSERSPROFILE and APPDATA exist, look in 347 * ALLUSERSPROFILE/ <the last stuff from APPDATA>/JOSM/plugins.345 * ALLUSERSPROFILE/<the last stuff from APPDATA>/JOSM/plugins. 348 346 * (*sic* There is no easy way under Windows to get the All User's application 349 * directory) 347 * directory)</li> 350 348 *<li>Finally, look in some typical unix paths:<ul> 351 * <li>/usr/local/share/josm/plugins/ 352 * <li>/usr/local/lib/josm/plugins/ 353 * <li>/usr/share/josm/plugins/ 354 * <li>/usr/lib/josm/plugins/ 355 * 349 * <li>/usr/local/share/josm/plugins/</li> 350 * <li>/usr/local/lib/josm/plugins/</li> 351 * <li>/usr/share/josm/plugins/</li> 352 * <li>/usr/lib/josm/plugins/</li></ul></li> 353 *</ol> 356 354 * If a plugin class or jar file is found earlier in the list but seem not to 357 355 * be working, an PluginException is thrown rather than continuing the search.
Note: See TracChangeset
for help on using the changeset viewer.