[TIMOB-14101] LiveView: app.js in Resources Dir overwritten on recompile
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-06-10T22:56:25.000+0000 |
Affected Version/s | n/a |
Fix Version/s | 2013 Sprint 12 JS, 2013 Sprint 12, Release 3.1.1, Release 3.2.0 |
Components | CLI, iOS, LiveView |
Labels | n/a |
Reporter | Christian Sullivan |
Assignee | Christian Sullivan |
Created | 2013-06-04T17:04:56.000+0000 |
Updated | 2013-12-03T20:36:02.000+0000 |
Description
When project is recompiled while using liveview Users app.js in Resources dir is being overwritten with liveview.js
Test Case:
1. $ ti build -p ios --liveview
2. $ ti build -p ios --liveview
3. $ cat app.js
Expected Result:
User's app.js should not be modified
Actual Result:
User's app.js is overwritten with contents of liveview.js
My test case is a little different:
$ ti build -p ios
$ ti build -p ios --liveview
$ cat app.js
It appears that the first build does a symlink, and then the liveview overwrites the contents of the symlink, overwriting app.js: build (no LiveView)build (LiveView from clean):
build (regular, then LiveView):
FIXED in [MASTER]: https://github.com/appcelerator/liveview/commit/c9da9495de2173e10a6f8b3f8b59869d1e931ea6
Confirmed fixed using SDK 3.1.1.v20130531163723 on iOS simulator with simple Titanium classic 2-tabbed app.
Closing.