[TIMOB-11988] CLI: allow user to set sdk install directory
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2014-08-12T22:26:34.000+0000 |
Affected Version/s | Release 3.0.0 |
Fix Version/s | 2013 Sprint 16, 2013 Sprint 16 Core, Release 3.2.0 |
Components | CLI |
Labels | qe-cli, qe-closed-3.2.0, qe-ios100112, qe-manualtest |
Reporter | Dustin Hyde |
Assignee | Chris Barber |
Created | 2012-12-06T23:39:10.000+0000 |
Updated | 2014-08-12T22:29:39.000+0000 |
Currently, if the user has a non-default titanium sdk folder, and they run 'ti install sdk', the sdk will be installed to the default sdk folder (not the one in the configs). This is the behavior documented in the duplicate, TIMOB-12005. Possible solutions: 1. Install to sdk directory in the configs (ti config paths.sdks). => Preferred. 2. Allow user to pass in desired install directory (for sdk and modules). => Good complementary functionality. 3. Or, if all else fails, install to the default.
This is an important issue for Windows as well, as the install directory for the CLI is fixed, but Studio allows a user setting for this location.
Worth noting the cli is not currently fully compatible with TISTUD on Windows because they use separate default TiSDK install paths: TISTUD: C:\Users\QEtester\AppData\Roaming\Titanium CLI: C:\ProgramData\Titanium
@Dustin, or perhaps Titanium Studio is not fully compatible with the CLI. :)
https://github.com/appcelerator/titanium/pull/50 https://github.com/appcelerator/node-appc/pull/50
To test, run "ti sdk" to list all Titanium SDK install locations. Next set a custom install location by running:
Run "ti sdk" to verify that this new install location is listed and is the default. Now download an SDK and it will save it to this install location:
Run "ti sdk" to verify it downloaded the latest master build. To clean up, run:
You will to manually remove ~/Desktop/sdks from the "paths.sdks" config option.
Tested and verified the fix with: CLI 3.2.0-cr Mac osx 10.9 Mavericks Appcelerator Studio, build: 3.2.0.201312091648 Titanium SDK, build: 3.2.0.v20131210112451
reopened to fix labels