Accessing resources in maven-migrated project

15 views
Skip to first unread message

P5music

unread,
Apr 29, 2021, 2:56:52 AM4/29/21
to CodenameOne Discussions

My app was migrated to a maven project.I can run it in the simulator.
But I see that something changed as to accessing the resources I put in the package.

The app used to access some HTML files in a html folder, and I see in the code that I omitted the folder name (html) part.
If I recall correctly this was because the resources were accessed directly in the root.

Now I see that there is a "resources" folder, and no matter what complete path I prefix, there is an error when the BC attempts to load the HTML file.
Should I remove all that and put on root as before?
Thanks in advance

Shai Almog

unread,
Apr 29, 2021, 11:50:32 PM4/29/21
to CodenameOne Discussions
Not sure. I'll check

Steve Hannah

unread,
Apr 30, 2021, 1:37:09 PM4/30/21
to codenameone...@googlegroups.com
This issue is fixed version 7.0.26 (just published on Maven Central -- will be available in a few hours).
Easiest way to update is to change the cn1.version and cn1.plugin.version properties in your pom.xml file to 7.0.26.

--
You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/d2da7259-eb35-466a-bf7a-80e33d88f968n%40googlegroups.com.


--
Steve Hannah
Software Developer
Codename One
Reply all
Reply to author
Forward
0 new messages