Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

find-deps.sh doesn't work #298

Open
kromar777 opened this issue Jun 27, 2023 · 2 comments
Open

find-deps.sh doesn't work #298

kromar777 opened this issue Jun 27, 2023 · 2 comments

Comments

@kromar777
Copy link

Empty output for "find" and no classes list for "minimize".

There is a space after "->" in jdeps output so changing $2 to $3 argument in awk should fix the problem:

awk '/it\.unimi\.dsi\.fastutil\..*not found$/ { print $2 }' | sort | uniq) \

-verbose:class -cp "$jar_path" ${class_list} | awk '/ -> / { gsub(/\./, "/", $2) ".class"; print $2 ".class" }')\

@incaseoftrouble
Copy link
Collaborator

Since I brewed this - jeah probably fine. The issue is that the output format of jdeps is not fixed. Maybe one can do ? instead of adding just a space?

@kromar777
Copy link
Author

kromar777 commented Jun 27, 2023

I tried it on 1.8 and 17 JDK and there is a space on both...
And another problem after it finally worked is not all the transitive .class included, need some jdeps tuning I think, going to deep in it later. For example, HelloWorld with only Int2IntArrayMap map = new Int2IntArrayMap(); Int2FloatMap map1 = new Int2FloatArrayMap(); is getting "class file for it.unimi.dsi.fastutil.ints.AbstractInt2FloatFunction not found".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants