AdoptOpenJDK / AdoptOpenJDK/mjprof

StatsRepository code fails to read custom plugin

Đang mở
#52 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Java
Star
108
Fork
15
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

i am new to org.reflections package but with the limited exposure i had, it looks like the following code fails to read the classes from the plugins directory:

Reflections reflections = new Reflections("com.performizeit");

To make it work i had to put the custom plugin along with the other plugin code in the source and build it.

After some troubleshooting I found that the reflections object is looking at just the "mjprof-1.0-jar-with-dependencies.jar" and hence can get the classes from ONLY this jar.

...
jar:file:/home/saithal/tools/mjprof/mjprof-1.0-jar-with-dependencies.jar!/
.,.

However, if i create a sample testcase with the above snippet here's the output:

jar:file:/C:/Work/Tools/mjprof/mjprof1.0/mjprof-1.0-jar-with-dependencies.jar!/
file:/C:/Work/Workspaces/Default/mjprof_plugins/bin/

I am still trying to wrap my head around this but wanted to run this by you too.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.