Project: titanium
Issue TIMOB-19745: Windows: CLI can hang when encrypting files due to invalid jdkInfo object
The CLI can hang if {{jdkInfo}} is {{null}} during encryption. This usually happens on the first build or re-builds when the {{encryptJS}} flags gets set to {{true}} after the {{validate}} build command [\[1\]|https://github.com/appcelerator/titanium_mobile_windows/blob/master/cli/commands/_build/validate.js#L155]. The reason {{encryptJS}} gets set to {{true}} is due to {{buildVerify}} [\[2\]|https://github.com/appcelerator/appc-cli-titanium/blob/master/hook/titanium.js#L207]. If {{buildVerify}} is successful and we are online the {{encryptJS}} flag will always be set to {{true}} regardless of deploy type. This is why Windows projects are always encrypted on first build or re-builds even if they are being deployed for development.
Story points: 5