When a directory is specified as an argument for the "--app-content" parameter, it is recursively copied to the app image as expected.
E.g.: say, there is such a directory structure: foo/a, foo/b, foo/bar/c. For "--app-content foo" jpackage will add the following elements in the app image: foo/a, foo/b, foo/bar/c.
It would be good if jpackage behaved like "cp" command and copy only the directory's contents without the directory itself if the path ends with "/" (or "\" character on windows), i.e., for "--app-content foo/" would create a, b, bar/c elements instead of foo/a, foo/b, foo/bar/c elements.
E.g.: say, there is such a directory structure: foo/a, foo/b, foo/bar/c. For "--app-content foo" jpackage will add the following elements in the app image: foo/a, foo/b, foo/bar/c.
It would be good if jpackage behaved like "cp" command and copy only the directory's contents without the directory itself if the path ends with "/" (or "\" character on windows), i.e., for "--app-content foo/" would create a, b, bar/c elements instead of foo/a, foo/b, foo/bar/c elements.