{ "id": "129313", "key": "TIMOB-16871", "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": "16096", "description": "2014 Sprint 09", "name": "2014 Sprint 09", "archived": true, "released": true, "releaseDate": "2014-05-08" }, { "id": "16098", "description": "2014 Sprint 09 Tooling", "name": "2014 Sprint 09 Tooling", "archived": true, "released": true, "releaseDate": "2014-05-08" }, { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-05-14T17:08:10.000+0000", "created": "2014-04-21T05:40:46.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-closed-3.3.0", "qe-testadded" ], "versions": [ { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "issuelinks": [ { "id": "36989", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "127860", "key": "AC-1213", "fields": { "summary": "Constant Rebuilding for minor .js file changes", "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" } }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "36860", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "127860", "key": "AC-1213", "fields": { "summary": "Constant Rebuilding for minor .js file changes", "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" } }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2014-07-22T08:12:19.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": "10202", "name": "Android", "description": "Android Platform" }, { "id": "10206", "name": "iOS", "description": "iOS Platform" }, { "id": "10207", "name": "Tooling" } ], "description": "When building Android or iOS app, JavaScript flies are not being symlinked. They should be symlinked whenever the JS files are not being minified. The change needs to take place at line 20 below:\r\n\r\n{code}\r\n// parse the AST\r\nvar r = jsanalyze.analyzeJsFile(from, { minify: this.minifyJS });\r\n\r\n// we want to sort by the \"to\" filename so that we correctly handle file overwriting\r\nthis.tiSymbols[to] = r.symbols;\r\n\r\nvar dir = path.dirname(to);\r\nfs.existsSync(dir) || wrench.mkdirSyncRecursive(dir);\r\n\r\nif (this.minifyJS) {\r\n\tthis.logger.debug(__('Copying and minifying %s => %s', from.cyan, to.cyan));\r\n\r\n\tthis.cli.createHook('build.android.compileJsFile', this, function (r, from, to, cb2) {\r\n\t\tfs.writeFile(to, r.contents, cb2);\r\n\t})(r, from, to, cb);\r\n} else {\r\n\tthis.logger.debug(__('Copying %s => %s', from.cyan, to.cyan));\r\n\r\n\t// CHANGE THIS TO USE copyFile()!\r\n\tfs.writeFile(to, r.contents, cb);\r\n}\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: iOS: JavaScript files are not being symlinked", "creator": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "environment": null, "comment": { "comments": [ { "id": "301713", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Master pull request: https://github.com/appcelerator/titanium_mobile/pull/5633\r\n\r\nTo test:\r\n\r\n1) Create an app\r\n2) Build for iOS Simulator\r\n3) Observe output that app.js is now symlinked and not copied\r\n4) Confirm directory listing: ls -l build/iphone/build/Debug-iphonesimulator/testapp.app\r\n5) Build for Android emulator\r\n6) Observe output that app.js is now symlinked and not copied\r\n7) Confirm directory listing: ls -l build/android/bin/assets/Resources", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-04-21T06:11:04.000+0000", "updated": "2014-04-21T06:11:04.000+0000" }, { "id": "304260", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "All steps work as described. Passes.", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-05-09T20:52:17.000+0000", "updated": "2014-05-09T20:52:17.000+0000" }, { "id": "304559", "author": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Javascript files are getting copied but not being symlinked.\r\nVerified for both android and iOS platoform, so reopening the issue.\r\n\r\nVerified the issue on:\r\niOS simulator: 7.1\r\nAndroid emulator: 2.3\r\nSDK: 3.3.0.v20140512162513\r\nCLI version : 3.3.0-dev\r\nOS : MAC OSX 10.9.2\r\nAlloy: 1.4.0-dev\r\nACS: 1.0.14\r\nnpm:1.3.2\r\nLiveView: 1.0.4\r\nAppcelerator Studio, build: 3.3.0.201405121247\r\ntitanium-code-processor: 1.1.1\r\nXCode : 5.1.1\r\n", "updateAuthor": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-05-13T11:26:36.000+0000", "updated": "2014-05-13T11:26:36.000+0000" }, { "id": "304797", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "I retested this and it works fine:\r\n\r\n{code}\r\n[INFO] Processing JavaScript files\r\n[DEBUG] Symlinking /Users/chris/appc/workspace/testapp/Resources/app.js => /Users/chris/appc/workspace/testapp/build/iphone/build/Debug-iphonesimulator/testapp.app/app.js\r\n{code}", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-05-14T17:08:10.000+0000", "updated": "2014-05-14T17:08:10.000+0000" }, { "id": "305010", "author": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Hi chris, Javascript files are being symlinked,\r\nproblem was caused by this bug TIMOB-16951 as sdk changes to tiapp.xml were not reflected. Closing the issue.\r\n\r\nVerified the fix on:\r\nSDK: 3.3.0.v20140512162513\r\nCLI version : 3.3.0-dev\r\nOS : MAC OSX 10.9.2\r\nAlloy: 1.4.0-Alpha\r\nACS: 1.0.14\r\nnpm:1.3.2\r\nLiveView: 1.0.4\r\nAppcelerator Studio, build: 3.3.0.201405121247\r\ntitanium-code-processor: 1.1.1\r\nXCode : 5.1.1", "updateAuthor": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-05-15T08:01:25.000+0000", "updated": "2014-05-15T08:01:25.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }