You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by jm...@apache.org on 2013/05/29 11:21:23 UTC

git commit: [flex-utilities] [refs/heads/develop] - Update Flex SDK description file.

Updated Branches:
  refs/heads/develop 335635d24 -> fa37dbb5a


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/develop
Commit: fa37dbb5a7eb2364b1471fe0547ca5447f8c53cb
Parents: 335635d
Author: Justin Mclean <jm...@apache.org>
Authored: Wed May 29 19:21:11 2013 +1000
Committer: Justin Mclean <jm...@apache.org>
Committed: Wed May 29 19:21:11 2013 +1000

----------------------------------------------------------------------
 installer/src/InstallApacheFlex.mxml |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


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);