Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-12768] Backport: CLI : Building with '--skip-js-minify' for android fails on windows

GitHub Issuen/a
TypeSub-task
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2013-02-16T02:54:21.000+0000
Affected Version/sn/a
Fix Version/sRelease 3.0.2, 2013 Sprint 04 JS, 2013 Sprint 04
ComponentsCLI
Labelsmerge-3.0.2, qe-sdk3.0.2
ReporterLokesh Choudhary
AssigneeChris Barber
Created2013-02-16T01:45:21.000+0000
Updated2013-02-19T18:22:14.000+0000

Description

Description: 1.In cli run command "ti build -T 'target' -p android -d 'project-dir' -o 'output-dir' --skip-js-minify " (all target types don't work) 2.Observe the output Actual result: 1.we get error as below:
Traceback (most recent call last):
  File "C:\ProgramData\Application Data\Titanium\mobilesdk\win32\3.0.2.v20130207164659\android\builder.py", line 15, in <module>
    from compiler import Compiler
  File "C:\ProgramData\Application Data\Titanium\mobilesdk\win32\3.0.2.v20130207164659\android\compiler.py", line 14, in <module>
    from deltafy import Deltafy
  File "C:\ProgramData\Application Data\Titanium\mobilesdk\win32\3.0.2.v20130207164659\android\deltafy.py", line 53, in <module>
    home = os.environ['USERPROFILE']
  File "C:\Python27\lib\os.py", line 423, in __getitem__
    return self.data[key.upper()]
KeyError: 'USERPROFILE'
[ERROR] Project failed to build after 195ms
2.Cleaning & building the project does not work either 3.Not putting the '--skip-js-minify' works fine Expected Result: 1.We should be able to build with '--skip-js-minify'

Comments

  1. Chris Barber 2013-02-16

    3.0.x pull request: https://github.com/appcelerator/titanium_mobile/pull/3883
  2. Eric Merriman 2013-02-19

    Verified fixed on win 7 and win 8 CLI: 3.0.24-cr Titanium SDK version 3.0.2.v20130215190201 Titanium Studio, build: 3.0.2.201302041757

JSON Source