{ "id": "107829", "key": "TIMOB-12279", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "14164", "description": "Release 3.0.2", "name": "Release 3.0.2", "archived": true, "released": true, "releaseDate": "2013-02-19" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "14980", "description": "2013 Sprint 02 JS", "name": "2013 Sprint 02 JS", "archived": true, "released": true, "releaseDate": "2013-01-28" }, { "id": "14812", "description": "2013 Sprint 02", "name": "2013 Sprint 02", "archived": true, "released": true, "releaseDate": "2013-01-28" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-01-16T10:54:02.000+0000", "created": "2013-01-14T17:10:43.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "SupportTeam", "mobileweb-deployment", "qe-port", "regression" ], "versions": [ { "id": "14161", "description": "Release 3.0.1", "name": "Release 3.0.1", "archived": true, "released": true, "releaseDate": "2013-02-19" } ], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2014-06-19T12:43:08.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "11500", "name": "MobileWeb", "description": "Mobile Web (HTML) Platform" } ], "description": "h4. Problem description\r\nCustomers are used to use the \"platform\" directory for several versions of the same file. I.e., \r\n\r\nandroid/samefile.js\r\niphone/samefile.js\r\n\r\nthey know that the right samefile.js will get copied over when compiling. This is failing when you are doing\r\n\r\nmobileweb/samefile.js \r\n\r\nsince the file samefile.js won't be copied over in the resultant compiled mobileweb.\r\n\r\nh4. Steps to reproduce\r\n1. Create new project\r\n2. Copy app.js to app.js in Resources\r\n3. Copy result_iphone.js to Resources/iphone/result.js\r\n4. Copy result_mobileweb.js to Resources/mobileweb/result.js\r\n5. Compile for iphone. You will see a \"I'm in the ios version\"\r\n6. compile for mobileweb. You will get an error. \r\n\r\nh4. Files\r\nApp.js\r\n{code}\r\nTi.include('result.js');\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor:'white',\r\n\t\r\n});\r\n\r\nvar label = Ti.UI.createLabel({\r\n\ttext:text, \r\n});\r\n\r\nwin.add(label);\r\nwin.open();\r\n\r\n{code}\r\n\r\nresult_iphone.js\r\n{code}\r\nvar text = \"I'm in the iOS version\";\r\n{code}\r\n\r\nresult_mobileweb.js\r\n{code}\r\nvar text = \"I'm in the mobileweb version\";\r\n{code}", "attachment": [], "flagged": false, "summary": "MobileWeb: JS files are not copied over if you put them in the mobileweb directory", "creator": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "subtasks": [], "reporter": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "environment": null, "comment": { "comments": [ { "id": "234298", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Master pull request: https://github.com/appcelerator/titanium_mobile/pull/3709\n3.0.x pull request: https://github.com/appcelerator/titanium_mobile/pull/3710", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2013-01-14T21:30:19.000+0000", "updated": "2013-01-14T21:30:19.000+0000" }, { "id": "237530", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as fixed.\r\nTested and verified with:\r\nTitanium Studio, build: 3.0.2.201302041757\r\nTitanium SDK, build: 3.0.2.v20130201161712 \r\nCLI 3.0.24\r\n\r\nNo error, compiling for mobile web", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-06T22:22:47.000+0000", "updated": "2013-02-06T22:23:06.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }