Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-18981] Windows: Resources are not copied from the temp folder to the build folder

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionFixed
Resolution Date2015-06-10T17:47:52.000+0000
Affected Version/sRelease 4.1.0
Fix Version/sRelease 4.1.0
ComponentsWindows
Labelsqe-4.1.0
ReporterEwan Harris
AssigneeGary Mathews
Created2015-06-06T00:54:30.000+0000
Updated2015-07-01T20:51:43.000+0000

Description

Description

When 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. The 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
wrench.copyDirSyncRecursive(this.buildDir, this.originalBuildDir, {
            forceDelete: true
});

Steps To Reproduce

1. Create a new application using appc new 2. Build the application using appc run -p windows -T wp-device 3. Check the build/windows folder

Actual Result

The build folder contains none of the build files

Expected Result

The build folder should contain the build files

Comments

  1. Gary Mathews 2015-06-09

    PR: https://github.com/appcelerator/titanium_mobile_windows/pull/267
  2. Lokesh Choudhary 2015-07-01

    Verified the fix. I see the resources are now copied to the build/windows folder. Closing. Environment: Appc Studio: 4.1.0.201506261427 Ti SDK: 4.1.0.v20150701131146 Ti CLI: 4.0.1 Alloy: 1.6.2 Windows: 8.1 Enterprise 64-bit APPC NPM: 4.1.0-1 APPC CLI: 4.1.0-4

JSON Source