Update Flex SDK description file.
Project: http://git-wip-us.apache.org/repos/asf/flex-utilities/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-utilities/commit/fa37dbb5 Tree: http://git-wip-us.apache.org/repos/asf/flex-utilities/tree/fa37dbb5 Diff: http://git-wip-us.apache.org/repos/asf/flex-utilities/diff/fa37dbb5 Branch: refs/heads/master Commit: fa37dbb5a7eb2364b1471fe0547ca5447f8c53cb Parents: 335635d Author: Justin Mclean <jmcl...@apache.org> Authored: Wed May 29 19:21:11 2013 +1000 Committer: Justin Mclean <jmcl...@apache.org> Committed: Wed May 29 19:21:11 2013 +1000 ---------------------------------------------------------------------- installer/src/InstallApacheFlex.mxml | 9 +++++++++ 1 file changed, 9 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/fa37dbb5/installer/src/InstallApacheFlex.mxml ---------------------------------------------------------------------- diff --git a/installer/src/InstallApacheFlex.mxml b/installer/src/InstallApacheFlex.mxml index f9289cc..3b4cb18 100644 --- a/installer/src/InstallApacheFlex.mxml +++ b/installer/src/InstallApacheFlex.mxml @@ -1048,6 +1048,15 @@ variables are not required because the locations of these pieces are known. file.copyTo(copyToFile, true); } } + + file = File.userDirectory.resolvePath(_flexHome + File.separator + "flex-sdk-description.xml"); + var descriptionFile:FileStream = new FileStream(); + descriptionFile.open(file, FileMode.UPDATE); + contents = descriptionFile.readMultiByte(descriptionFile.bytesAvailable, "utf-8"); + var description:RegExp = /<name>[^<]*<\/name>/; + contents = contents.replace(description, "<name>Apache Flex " + APACHE_FLEX_BIN_DISTRO_VERSION + " FP " + FLASH_PLAYER_VERSION + " AIR " + AIR_VERSION + " en_US</name>"); + descriptionFile.writeMultiByte(contents, "utf-8"); + descriptionFile.close(); } catch (e:Error) { updateActivityStep(_viewResourceConstants.STEP_INSTALL_CONFIG_FILES, StepItem.ERROR); log(_viewResourceConstants.ERROR_UNABLE_TO_INSTALL_CONFIG_FILES);