Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-15893] CLI: Unable to specify a alternate sdks directory using ti config paths.sdks

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionCannot Reproduce
Resolution Date2014-01-07T22:10:22.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsqe-closed-3.3.0
ReporterSabil Rahim
AssigneeChris Barber
Created2013-12-04T23:36:35.000+0000
Updated2014-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

FileDateSize
config_afer_addingpath.png2013-12-04T23:36:35.000+0000210473
config_before_addingpath.png2013-12-04T23:36:35.000+0000323040

Comments

  1. Chris Barber 2014-01-07

    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.
  2. Sabil Rahim 2014-01-08

    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
  3. Olga Romero 2014-05-07

    Closing as per [~cbarber] comment

JSON Source