Hi
I'm trying to build my Sencha Touch 2.1 application for production environment. I want to add some images to application cache because I would like my application to work offline.
So, I'm adding desired image file to app.json file:
Code:
"appCache": { /**
* List of items in the CACHE MANIFEST section
*/
"cache": [
"index.html",
"config.json",
"./resources/images/close-icon.png"
],
/**
* List of items in the NETWORK section
*/
"network": [
"*"
],
/**
* List of items in the FALLBACK section
*/
"fallback": []
}
Unfortunately when I try to build my application, I get following error:
Code:
[INF] Generated app.json
[INF] Embedded microloader into index.html
[INF] Generating appcache
[INF] Generating checksum for appCache item: index.html
[INF] Generating checksum for appCache item: config.json
[INF] Generating checksum for appCache item: ./resources/images/close-icon.png
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.BasicException: The following error occurred while executing this line:
[ERR] C:\Users\...\.sencha\app\build-impl.xml:120: javax.script.ScriptEx
ception: sun.org.mozilla.javascript.internal.WrappedException: Wrapped com.sencha.exceptions.BasicException: Cannot find
file : C:\Users\...\production\.\resources\images\close-icon.png (<Unknown
source>#186) in <Unknown source> at line number 186
[ERR] at com.sencha.exceptions.BasicException.wrap(BasicException.java:43)
[ERR] at com.sencha.cli.Command.dispatch(Command.java:104)
[ERR] at com.sencha.cli.Commands.dispatch(Commands.java:49)
[ERR] at com.sencha.cli.AbstractCommand.dispatch(AbstractCommand.java:182)
It happens every time I try to add some not js/json file to appCache.
Why? How can I fix this?
I'm using sencha cmd 3.0.0.250
Thank!