差分発生行の前後
無視リスト:
更新日時:
2010/05/11 20:15:55 (2 年 前)
更新者:
h
ログメッセージ:

refs #2 #8 #9 #7 #6
現状のソースをコミット。一部完了。一部未完了。
関連づいてない完了チケットのチェンジセットもまとめて。
パッケージ階層も大幅に変更。

ファイル:
1 変更

凡例:

変更なし
追加
削除
  • trunk/src/org/rayflood/mikuvat/plugin/PluginLoader.java

    r2 r4  
    3131                                String plugin = man.getMainAttributes().getValue("Mikuvat-Plugin"); 
    3232                                float version = new Float(MIKUVAT_VERSION); 
    33                                 float reqver = new Float(man.getMainAttributes().getValue("Mikuvat-Require-Version")); 
    34                                 if(plugin != null && !plugin.isEmpty() && version >= reqver){ 
     33                                String mins = man.getMainAttributes().getValue("Mikuvat-Min-Version"); 
     34                                float min = (mins == null) ? Float.MIN_VALUE: new Float(mins); 
     35                                String maxs = man.getMainAttributes().getValue("Mikuvat-Max-Version"); 
     36                                float max = (maxs == null) ? Float.MAX_VALUE: new Float(maxs); 
     37                                if(plugin != null && !plugin.isEmpty() && version >= min && version <= max){ 
    3538                                        pluginclasses.add(plugin); 
    3639                                        urls.add(pluginfiles[i].toURI().toURL()); 
     
    3841                        } 
    3942                        catch(Exception e){ 
     43                                System.out.println("プラグイン読み込み失敗! 無視します。" + pluginfiles[i].getPath()); 
    4044                                e.printStackTrace(); 
    4145                        } 
     
    5660                        } 
    5761                        catch(Exception e){ 
     62                                System.out.println("ライブラリ読み込み失敗! 無視します。" + libfiles[i].getPath()); 
    5863                                e.printStackTrace(); 
    5964                        }