-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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 directory from resources while compiling native Image via gluon client maven plugin #3092
Comments
The pattern passed to So the "regex" As for the Small note of caution: the patterns count towards all files, not only files in the resource directory, as the content of src and resource directories normally get merged in jars, so adding |
@kkriske i tried The line |
What I think that's happening, without having the stacktrace: You are looking up a directory, which is not a resource, so Walking through resources as a directory structure is not (yet) supported, as mentioned here: #2762 under Improve support for resource registration |
@kkriske yes, looking up a file inside the resources folder work, but looking up directory doesnt. Ill try something like this |
@kkriske so now after pointing to the file and then going up one direcotry, it throws a |
I think i need to zip the folder into a zip, and then unzip it |
@kkriske I think I discovered an issue
Closing it because in the end, what the workaround was to zip the directory, and then extract it to a location. |
I wrote a custom alert/combobox implementation for my project. Could not
use Gluon Mobile because its integrated tightly with our custom Theme
API. It works now!!
However, I have a small issue. My project root currently looks like this
root
When the config.xml file isnt found on local disk, the program just
copies all the contents of the
default
directory to the disk.I am using gluon client and their maven plugin
However, when i try to get
Main.class.getResource("default/").toURI()
it returns a nullpointer. i added
-H:IncludeResources='*/*.*'
to<nativeImageArgs>
but it doesnt work. I also tried adding that under<resourcesList>
but that too did not work.Any leads on how I can embed all the directories/files/ everything from
the resources folder onto the native image
GraalVM Version : 20.2.0
Platform : x64 Linux
The text was updated successfully, but these errors were encountered: