{ "id": "148554", "key": "TIMOB-18981", "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": "16723", "description": "Windows Platform Support, ListView updates, Vector overlays in maps", "name": "Release 4.1.0", "archived": false, "released": true, "releaseDate": "2015-07-08" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-06-10T17:47:52.000+0000", "created": "2015-06-06T00:54:30.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "qe-4.1.0" ], "versions": [ { "id": "16723", "description": "Windows Platform Support, ListView updates, Vector overlays in maps", "name": "Release 4.1.0", "archived": false, "released": true, "releaseDate": "2015-07-08" } ], "issuelinks": [], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2015-07-01T20:51:43.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": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "h5.Description\r\n\r\nWhen building an app, the app is built in a temporary folder. These files are not copied across to the actual build folder within the project directory. For example if I was building an app called testApp I would expect to go to the build/windows folder to see my files.\r\n\r\nThe root of the cause is [this line|https://github.com/appcelerator/titanium_mobile_windows/blob/master/cli/commands/_build.js#L1822]. Changing to the below seems to fix the issue\r\n\r\n{code}\r\nwrench.copyDirSyncRecursive(this.buildDir, this.originalBuildDir, {\r\n forceDelete: true\r\n});\r\n{code}\r\n\r\nh5.Steps To Reproduce\r\n\r\n1. Create a new application using {{appc new}}\r\n2. Build the application using {{appc run -p windows -T wp-device}}\r\n3. Check the build/windows folder\r\n\r\nh5.Actual Result\r\n\r\nThe build folder contains none of the build files\r\n\r\nh5.Expected Result\r\n\r\nThe build folder should contain the build files", "attachment": [], "flagged": false, "summary": "Windows: Resources are not copied from the temp folder to the build folder", "creator": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "subtasks": [], "reporter": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "environment": "Windows 8.1\r\nAppc CLI(NPM):4.0.0\r\nAppc CLI(Registry): 4.0.1\r\nTitanium SDK: 4.1.0.v20150604094312", "closedSprints": [ { "id": 420, "state": "closed", "name": "2015 Sprint 12 Windows", "startDate": "2015-06-07T01:15:19.706Z", "endDate": "2015-06-21T01:15:00.000Z", "completeDate": "2015-06-20T23:02:18.410Z", "originBoardId": 144 } ], "comment": { "comments": [ { "id": "354710", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile_windows/pull/267", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-06-09T23:59:56.000+0000", "updated": "2015-06-09T23:59:56.000+0000" }, { "id": "356614", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix.\r\n\r\nI see the resources are now copied to the build/windows folder.\r\n\r\nClosing.\r\n\r\nEnvironment:\r\nAppc Studio: 4.1.0.201506261427\r\nTi SDK: 4.1.0.v20150701131146\r\nTi CLI: 4.0.1\r\nAlloy: 1.6.2\r\nWindows: 8.1 Enterprise 64-bit\r\nAPPC NPM: 4.1.0-1\r\nAPPC CLI: 4.1.0-4 ", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-07-01T20:51:36.000+0000", "updated": "2015-07-01T20:51:36.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }