Skip to content

Commit

Permalink
Merge branch 'main' of github.com:stateIs0/exp into main
Browse files Browse the repository at this point in the history
  • Loading branch information
xuanmie committed Jan 24, 2024
2 parents 219dccd + cf26ad6 commit c5337cd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@




Related Articles 🎯🎯🎯[EXP: A Java Plugin Hot-Swapping Framework](http://thinkinjava.cn/2023/08/15/2023/exp/)

Noun Definitions:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,12 @@ public static ExpAppContext bootstrap(ObjectStore callback, String path, String
if (!file.exists()) {
continue;
}
log.info("准备安装插件, 压缩包路径: " + file.getAbsolutePath());
Plugin plugin = expAppContext.load(file);
tmp.add(plugin.getPluginId());
//不加载文件夹里面的隐藏文件。
if(!file.isHidden()) {
log.info("准备安装插件, 压缩包路径: " + file.getAbsolutePath());
Plugin plugin = expAppContext.load(file);
tmp.add(plugin.getPluginId());
}
} catch (Exception e) {
log.error(e.getMessage() + " ---->>>> " + file.getAbsolutePath(), e);
throw e;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public <P> List<P> get(String extCode) {
try {
List<ExpClass<P>> classes = metaService.get(extCode);

if (classes == null) {
if (classes == null || classes.isEmpty()) {
return new ArrayList<>();
}

Expand Down

0 comments on commit c5337cd

Please sign in to comment.