[TIMOB-2806] Android: module api: assets/ folder contents not being included.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T02:00:08.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.6.0 M05 |
Components | Android |
Labels | android, defect, release-1.6.0, reported-1.5.1 |
Reporter | Bill Dawson |
Assignee | Marshall Culpepper |
Created | 2011-04-15T03:30:00.000+0000 |
Updated | 2011-04-17T02:00:08.000+0000 |
Description
Reproduce:
- Create a new module or use an existing one.
- Put a file such as a PNG in the assets/ folder below the module root.
- Build the project using ant.
- In the dist folder, use
jar tf [jarfile]
andunzip -l [zipfile]
to confirm that the asset file was not put anywhere.
Marshall,
Have a look at this diff:
(Pretty version: https://skitch.com/billdawson/rjnfb/timobile-bash-125x25)">https://skitch.com/billdawson/rjnfb/timobile-bash-125x25).
I didn't want to commit anything without checking with you. This change achieves just what I wanted: the ability to use
getClass().getClassLoader().getResourceAsStream("assets/xxxx.png");
, but I'm not sure if that's the way you intended theassets/
folder to be used.Thx,
Bill
Putting this in 1.6 since it's a pretty big deal, but haven't assigned a milestone for it -- I'll let marshall/don choose.
Hey Bill.. this looks right, feel free to push it
(from [70ff1a5d3829e972fe137db914821e0cec4f348d]) [#2806 state:fixed-in-qa] patch module build.xml to include assets folder contents https://github.com/appcelerator/titanium_mobile/commit/70ff1a5d3829e972fe137db914821e0cec4f348d"> https://github.com/appcelerator/titanium_mobile/commit/70ff1a5d3829...
(from [71e5697df121928e2d3ebe5934ee503236a3ced9]) [#2806 state:fixed-in-qa] patch module build.xml to include assets folder contents https://github.com/appcelerator/titanium_mobile/commit/71e5697df121928e2d3ebe5934ee503236a3ced9"> https://github.com/appcelerator/titanium_mobile/commit/71e5697df121...
verified assets bundling works with new and existing module projects