Project: titanium
Issue TIMOB-18974: Windows: CLI: Building a project with the --build-only flag errors out
h5.Description When building an Windows Platform project, when attempting to build using the {{--build-only}} flag, the build fails with the below {code} [ERROR] Failed to run command "build" [ERROR] TypeError: Cannot read property 'cyan' of undefined at WindowsBuilder.loginfo (C:\ProgramData\Titanium\mobilesdk\win32\4.1.0.v20150604094312\windows\cli\commands\_build.js:775:64) at C:\ProgramData\Titanium\mobilesdk\win32\4.1.0.v20150604094312\node_modules\node-appc\node_modules\async\lib\async.js:610:21 at C:\ProgramData\Titanium\mobilesdk\win32\4.1.0.v20150604094312\node_modules\node-appc\node_modules\async\lib\async.js:249:17 at iterate (C:\ProgramData\Titanium\mobilesdk\win32\4.1.0.v20150604094312\node_modules\node-appc\node_modules\async\lib\async.js:149:13) at C:\ProgramData\Titanium\mobilesdk\win32\4.1.0.v20150604094312\node_modules\node-appc\node_modules\async\lib\async.js:160:25 at C:\ProgramData\Titanium\mobilesdk\win32\4.1.0.v20150604094312\node_modules\node-appc\node_modules\async\lib\async.js:251:21 at C:\ProgramData\Titanium\mobilesdk\win32\4.1.0.v20150604094312\node_modules\node-appc\node_modules\async\lib\async.js:615:34 at WindowsBuilder.initialize (C:\ProgramData\Titanium\mobilesdk\win32\4.1.0.v20150604094312\windows\cli\commands\_build.js:756:2) at C:\ProgramData\Titanium\mobilesdk\win32\4.1.0.v20150604094312\node_modules\node-appc\node_modules\async\lib\async.js:610:21 at C:\ProgramData\Titanium\mobilesdk\win32\4.1.0.v20150604094312\node_modules\node-appc\node_modules\async\lib\async.js:249:17 --------------------------------------------- at exports.execFile (child_process.js:712:9) at exports.exec (child_process.js:591:18) at C:\Users\Windo_000\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc\lib\environ.js:267:3 at C:\Users\Windo_000\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc\node_modules\async\lib\async.js:251:17 at C:\Users\Windo_000\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc\node_modules\async\lib\async.js:154:25 at C:\Users\Windo_000\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc\node_modules\async\lib\async.js:248:21 at C:\Users\Windo_000\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc\node_modules\async\lib\async.js:612:34 at C:\Users\Windo_000\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc\lib\environ.js:261:7 {code} Full logs are attached as fullOutput.txt h5.Steps To Reproduce 1. Create a new application using {{ti create}} 2. Run the application using {{ti build -p windows -T device --build-only}} h5.Actual Result The build will fail with the above error h5.Expected Result The build should not fail
Story points: 5