Ignore:
Timestamp:
08/08/12 10:20:38 (12 years ago)
Author:
sherbold
Message:
  • updated POM to show compiler warnings
  • included code into de.ugoe.cs.quest.ui.Runner for plug-in loading. The code is commented because the plug-in mechanism requires a release build first
File:
1 edited

Legend:

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

    r526 r533  
    11package de.ugoe.cs.quest.ui; 
    22 
     3import java.io.File; 
    34import java.io.IOException; 
    45import java.util.List; 
     
    910import joptsimple.OptionSpec; 
    1011import de.ugoe.cs.quest.log4j.Log4JLogger; 
     12import de.ugoe.cs.quest.plugin.PluginLoader; 
     13import de.ugoe.cs.quest.plugin.QuestPlugin; 
    1114import de.ugoe.cs.quest.ui.swt.MainWindow; 
    1215import de.ugoe.cs.util.console.CommandExecuter; 
     
    4649         */ 
    4750        public static void main(String[] args) { 
     51 
    4852                CommandExecuter.getInstance().addCommandPackage( 
    4953                                "de.ugoe.cs.quest.ui.commands"); 
    5054                CommandExecuter.getInstance().addCommandPackage( 
    5155                                "de.ugoe.cs.quest.ui.swt.commands"); 
     56 
     57                // The following four command packages are added automatically, once the 
     58                // plugin-mechanism works correctly. Hence, these calls should be 
     59                // removed then. 
    5260                CommandExecuter.getInstance().addCommandPackage( 
    5361                                "de.ugoe.cs.quest.plugin.mfc.commands"); 
     
    5866                CommandExecuter.getInstance().addCommandPackage( 
    5967                                "de.ugoe.cs.quest.plugin.jfc.commands"); 
     68 
     69                /* 
     70                 * Code for loading plugins. Should be uncommented once the 
     71                 * plugin-mechanism works correctly. 
     72                 *  
     73                 * PluginLoader pluginLoader = new PluginLoader(new File("plugins")); 
     74                 * pluginLoader.load(); 
     75                 *  
     76                 * for( QuestPlugin plugin : pluginLoader.getPlugins()) { for( String 
     77                 * commandPackage : plugin.getCommandPackages()) { 
     78                 * CommandExecuter.getInstance().addCommandPackage(commandPackage); } } 
     79                 */ 
    6080 
    6181                OptionParser parser = new OptionParser(); 
Note: See TracChangeset for help on using the changeset viewer.