- 更新日時:
- 2010/05/11 20:15:55 (2 年 前)
- ファイル:
-
- 1 変更
凡例:
- 変更なし
- 追加
- 削除
-
trunk/src/org/rayflood/mikuvat/plugin/PluginLoader.java
r2 r4 31 31 String plugin = man.getMainAttributes().getValue("Mikuvat-Plugin"); 32 32 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){ 35 38 pluginclasses.add(plugin); 36 39 urls.add(pluginfiles[i].toURI().toURL()); … … 38 41 } 39 42 catch(Exception e){ 43 System.out.println("プラグイン読み込み失敗! 無視します。" + pluginfiles[i].getPath()); 40 44 e.printStackTrace(); 41 45 } … … 56 60 } 57 61 catch(Exception e){ 62 System.out.println("ライブラリ読み込み失敗! 無視します。" + libfiles[i].getPath()); 58 63 e.printStackTrace(); 59 64 }
