Repository: flex-utilities Updated Branches: refs/heads/develop e7c205173 -> d88b29d1f
FLEX-33617 Saved log to flex installation directory Project: http://git-wip-us.apache.org/repos/asf/flex-utilities/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-utilities/commit/d88b29d1 Tree: http://git-wip-us.apache.org/repos/asf/flex-utilities/tree/d88b29d1 Diff: http://git-wip-us.apache.org/repos/asf/flex-utilities/diff/d88b29d1 Branch: refs/heads/develop Commit: d88b29d1f4fd814c1c10491dcacd7217f9c88c85 Parents: e7c2051 Author: Justin Mclean <jmcl...@apache.org> Authored: Sun Jul 6 14:22:46 2014 +1000 Committer: Justin Mclean <jmcl...@apache.org> Committed: Sun Jul 6 14:22:46 2014 +1000 ---------------------------------------------------------------------- installer/src/InstallApacheFlex.mxml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/d88b29d1/installer/src/InstallApacheFlex.mxml ---------------------------------------------------------------------- diff --git a/installer/src/InstallApacheFlex.mxml b/installer/src/InstallApacheFlex.mxml index 8929daa..8ddceb0 100644 --- a/installer/src/InstallApacheFlex.mxml +++ b/installer/src/InstallApacheFlex.mxml @@ -201,7 +201,7 @@ variables are not required because the locations of these pieces are known. * */ [Bindable] private var AIR_VERSIONS:ArrayCollection = new ArrayCollection(); - private var AIR_VERSION:String = "3.1"; + private var AIR_VERSION:String = "14.0"; private var ADOBE_AIR_SDK_WIN_FILE:String; private var ADOBE_AIR_SDK_WIN_URL:String; private var ADOBE_AIR_SDK_MAC_FILE:String; @@ -2282,6 +2282,20 @@ variables are not required because the locations of these pieces are known. log(_viewResourceConstants.INFO_INSTALLATION_COMPLETE); updateUIHandleInstallationComplete(); } + + saveLogToDisk(); + } + + protected function saveLogToDisk():void { + var file:File = file = _flexHomeDir.resolvePath("installer.log"); + var fs:FileStream = new FileStream(); + + fs.open(file, FileMode.WRITE); + for each (var message:String in _messages) { + fs.writeUTFBytes(message); + fs.writeUTFBytes("\n"); + } + fs.close(); } protected function updateUIHandleInstallationComplete():void { @@ -2301,8 +2315,8 @@ variables are not required because the locations of these pieces are known. browseBtn.enabled = false; installBtn.enabled = false; wasAborted = true; + log(_viewResourceConstants.INFO_ABORT_INSTALLATION); cleanup(true, reason); - log(_viewResourceConstants.INFO_ABORT_INSTALLATION); firstStepGroup.title = secondStepGroup.title = thirdStepGroup.title = _viewResourceConstants.INFO_ABORT_INSTALLATION; }