rcp - Loading resources in a plug-in works in eclipse but not for maven -
i trying load resources platform url
approach in e4
rcp
application. works fine application plug-in. have got second plug-in extends application via fragments
. in plug-in approach
platform:/plugin/<name>/<path>
does not work. if start project eclipse though, resources can loaded. doing wrong?
the build.properties content of plug-in follows:
source.. = src bin.includes = meta-inf/,\ .,\ plugin.xml,\ fragment.e4xmi,\ res/
the problem was: maven build case sensitive file names, while eclipse not.
new url("platform:/plugin/name/res/myfile.txt") new url("platform:/plugin/name/res/myfile.txt")
in eclipse, both versions working; maven build, second version. seems quite strange me. great if explain this.
Comments
Post a Comment