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

Include nested classes in JAR file #40

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

thokari
Copy link

@thokari thokari commented Aug 15, 2023

In the current configuration, nested classes, e.g. Context$Log.class are not included in the resulting JAR file. This is because files are explicitly included by name, and their name is derived from the existence of .java files, replacing the file ending with .class. However, inner class files like Context$Log.class are generated by the compiler, and don't have corresponding .java files.

Not sure if simply replacing with com, the root package name, is appropriate, but it does work for me.

In the current configuration, nested classes, e.g. Context$Log.class are not included in the resulting JAR file. This is because files are explicitly included by name, and their name is derived from the existence of .java files, replacing the file ending with .class. However, inner class files like Context$Log.class are generated by the compiler, and don't have corresponding .java files.

Not sure if simply replacing with "com", the root package name, is appropriate ,but it does work for me.
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

Successfully merging this pull request may close these issues.

1 participant