Changeset 192 in josm for src/org/openstreetmap/josm/plugins


Ignore:
Timestamp:
2007-01-10T04:55:36+01:00 (18 years ago)
Author:
imi
Message:
  • added command line parameter --default-classloader (for debug and packaging purpose)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/org/openstreetmap/josm/plugins/PluginInformation.java

    r169 r192  
    2121 */
    2222public class PluginInformation {
     23       
     24        /**
     25         * Whether to use the standard classloader to load the plugins or
     26         * an seperate class loader. Note that in case of the standard classloader,
     27         * all plugin files has to be included in the main josm.jar classpath
     28         *
     29         * Set via command line parameter to true.
     30         *
     31         * This switch is intended for debugging JOSM (or prepackaging plugins
     32         * together with JOSM).
     33         */
     34        public static boolean useJosmClassloader = false;
     35       
    2336        public final File file;
    2437        public final String name;
     
    89102        public Class<?> loadClass() {
    90103                try {
     104                        if (useJosmClassloader)
     105                                return Class.forName(className);
     106
    91107                        URL[] urls = new URL[libraries.size()];
    92108                        urls = libraries.toArray(urls);
Note: See TracChangeset for help on using the changeset viewer.