[TIMOB-12768] Backport: CLI : Building with '--skip-js-minify' for android fails on windows
GitHub Issue | n/a |
---|---|
Type | Sub-task |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-02-16T02:54:21.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 3.0.2, 2013 Sprint 04 JS, 2013 Sprint 04 |
Components | CLI |
Labels | merge-3.0.2, qe-sdk3.0.2 |
Reporter | Lokesh Choudhary |
Assignee | Chris Barber |
Created | 2013-02-16T01:45:21.000+0000 |
Updated | 2013-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'
3.0.x pull request: https://github.com/appcelerator/titanium_mobile/pull/3883
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