[TIMOB-15893] CLI: Unable to specify a alternate sdks directory using ti config paths.sdks
GitHub Issue | n/a |
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2014-01-07T22:10:22.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | qe-closed-3.3.0 |
Reporter | Sabil Rahim |
Assignee | Chris Barber |
Created | 2013-12-04T23:36:35.000+0000 |
Updated | 2014-06-19T12:44:17.000+0000 |
Description
I am trying to add a alternate SDK's folder.
Tried adding the paths to the config using
ti config paths.sdks path/to/sdk
verified that the paths is added properly.
But if i try running ti sdk, the SDK's in the new path do not show up and if i try building a app with the sdk from the alternate location, the build fails showing the selected sdk does not exist.
Steps to Reproduce.
1. Create a folder with some SDK's say : /Users/sabilrahim/SDK/
2. Include the path in ti config : ti config paths.sdks /Users/sabilrahim/SDK/
3. Confirm the path has been added properly. Run ti config
and check the paths.sdks
4. Run ti sdk
Actual Result
SDK's from the new folder are not listed
Expected Result
SDK's from the new folder are listed and can build apps using SDK's placed in directories other than the default one.
Attachments
This works as expected. Custom SDK paths must be to the SDK root, not the SDK itself. In other words, the "mobilesdk" folder, not "3.2.0.GA". So, if you set "paths.sdks" to "/Users/chris/Desktop", then the Titanium CLI will scan "/Users/chris/Desktop" for a "mobilesdk" directory and appropriate OS directory.
i guess the config help kinda misled me "Set the SDK path overwriting the previous values titanium config paths.sdks /path/to/sdk" Thanks for taking a look at it though
Closing as per [~cbarber] comment