Ignore:
Timestamp:
08/02/19 13:39:17 (5 years ago)
Author:
pharms
Message:

made plugin command loading work with Java 11 (hopefully) :-)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-runner/src/main/java/de/ugoe/cs/autoquest/ui/Runner.java

    r929 r2281  
    9191    public static void main(String[] args) { 
    9292         
    93         CommandExecuter.getInstance().addCommandPackage("de.ugoe.cs.autoquest.commands.misc"); 
    94         CommandExecuter.getInstance().addCommandPackage("de.ugoe.cs.autoquest.commands.sequences"); 
    95         CommandExecuter.getInstance().addCommandPackage("de.ugoe.cs.autoquest.commands.usability"); 
    96         CommandExecuter.getInstance().addCommandPackage("de.ugoe.cs.autoquest.commands.usage"); 
    97         CommandExecuter.getInstance().addCommandPackage("de.ugoe.cs.autoquest.ui.swt.commands"); 
     93        CommandExecuter.getInstance().addCommandPackage("de.ugoe.cs.autoquest.commands.misc", Runner.class.getClassLoader()); 
     94        CommandExecuter.getInstance().addCommandPackage("de.ugoe.cs.autoquest.commands.sequences", Runner.class.getClassLoader()); 
     95        CommandExecuter.getInstance().addCommandPackage("de.ugoe.cs.autoquest.commands.usability", Runner.class.getClassLoader()); 
     96        CommandExecuter.getInstance().addCommandPackage("de.ugoe.cs.autoquest.commands.usage", Runner.class.getClassLoader()); 
     97        CommandExecuter.getInstance().addCommandPackage("de.ugoe.cs.autoquest.ui.swt.commands", Runner.class.getClassLoader()); 
    9898 
    9999        PluginLoader pluginLoader = new PluginLoader(new File("lib")); 
     
    102102        for (AutoQUESTPlugin plugin : pluginLoader.getPlugins()) { 
    103103            for (String commandPackage : plugin.getCommandPackages()) { 
    104                 CommandExecuter.getInstance().addCommandPackage(commandPackage); 
     104                CommandExecuter.getInstance().addCommandPackage(commandPackage, plugin.getClass().getClassLoader()); 
    105105            } 
    106106        } 
Note: See TracChangeset for help on using the changeset viewer.