[TIMOB-15820] CLI: Android build fails if temp directory does not exist
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-12-05T07:21:23.000+0000 |
Affected Version/s | Release 3.2.0 |
Fix Version/s | 2013 Sprint 25, 2013 Sprint 25 Core, Release 3.2.0, Release 3.3.0 |
Components | Android, CLI |
Labels | module_build, qe-testadded, triage |
Reporter | Chris Barber |
Assignee | Chris Barber |
Created | 2013-11-26T01:57:08.000+0000 |
Updated | 2014-07-28T19:04:09.000+0000 |
Description
In certain terminal sessions, TMP and TMPDIR environment variables are not defined and it falls back to ~/tmp. The problem is that the CLI may request a temp directory and the temp library we use will generate ~/tmp/, but it won't recursively create the "tmp" folder.
The CLI should just ask the temp library for a temp path, then create the directory using wrench instead of relying on the temp library's mkdir function.
+Bug occurs on:+ Mac OSX 10.9 Mavericks CLI: 3.2.0-alpha3 +Test Case:+ 1. Open Finder and view you root harddrive 2. Rename tmp to tmp2 3. Create an Android project in the terminal 4. Build the project +Terminal throws error:+
Master pull request: https://github.com/appcelerator/titanium_mobile/pull/5061 3.2.x pull request: https://github.com/appcelerator/titanium_mobile/pull/5062
Verified FIXED using : Appc Studio - 3.2.0.201312042306 SDK - 3.2.0.v20131204220843 acs - 1.0.9 Alloy - 1.3.0-beta titanium - 3.2.0-beta titanium-code-processor - 1.1.0-beta OS: Mac 10.9 Emulator is launching and I am able to build Android project if temp directory does not exist