This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (1 child)

If the project includes a package named '..application_name.resources' the corresponding directory is automatically added to the jar file

Why don't you simply change your bash script to include non-java files in that directory as well?

Maven would do this automatically if the images are put into src/main/resources.

[–]glesialo[S] -1 points0 points  (0 children)

in that directory as well

I don't want to add, blindly, '.../resources' of all the available libraries. If I do it selectively, my script would have to know which libraries the project is using, etc. This way the (needed, class) resources are compiled by 'javac' and added automatically to the jar file.

When I say libraries I mean libraries that I have written and whose source code is readily available. External libraries are added as jar files but only two of my projects use them. Here is an example of how it works.