Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-15820] CLI: Android build fails if temp directory does not exist

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-12-05T07:21:23.000+0000
Affected Version/sRelease 3.2.0
Fix Version/s2013 Sprint 25, 2013 Sprint 25 Core, Release 3.2.0, Release 3.3.0
ComponentsAndroid, CLI
Labelsmodule_build, qe-testadded, triage
ReporterChris Barber
AssigneeChris Barber
Created2013-11-26T01:57:08.000+0000
Updated2014-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.

Comments

  1. Samuel Dowse 2013-11-26

    +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:+
    [ERROR] Emulator exited with error: 1
       [ERROR] NAND: could not create temp file for system NAND disk image: No such file or directory
  2. Chris Barber 2013-12-03

    Master pull request: https://github.com/appcelerator/titanium_mobile/pull/5061 3.2.x pull request: https://github.com/appcelerator/titanium_mobile/pull/5062
  3. Deepti Pandey 2013-12-05

    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

JSON Source