benlilaj / gears

Automatically exported from code.google.com/p/gears
0 stars 1 forks source link

Unknown relative path to resource file from java package -- workaround works perfectly #1014

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I have a JAR file which has a JS file in the resources which I can download, 
but I can't determine 
the relative path to these files. I used a workaround which works perfectly but 
isn't written in the 
API.

Reproduction:
Manifest file:
....
{"url": 
"resources/nl.topicuszorg.wicket.extensions.WicketJSExtension/offline_frame.js"}
...

The resources folder is not created and therefore the file cannot be read.

If you use the "src" param, you can write the relative path yourself and the 
file will be found:
....
{"url": "gears/javascript/offline_frame.js", "src": 
"resources/nl.topicuszorg.wicket.extensions.WicketJSExtension/offline_frame.js"}
...

Now you can address the file in Gears.

Kind regards,
Jeroen van Dijk
The Netherlands

(sorry for reporting a "bug" but I can't find a better place to write this 
down...)

Original issue reported on code.google.com by kwibus...@gmail.com on 12 Apr 2010 at 1:32

GoogleCodeExporter commented 9 years ago
This is a good feedback.

Original comment by liuxingm...@gmail.com on 24 Apr 2010 at 1:19