You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by bi...@apache.org on 2014/05/06 02:20:27 UTC
git commit: [flex-utilities] [refs/heads/develop] - Update badge to
account for changes to installer.xml (version 4.0)
Repository: flex-utilities
Updated Branches:
refs/heads/develop b8f6cf5ef -> bd7ca2adf
Update badge to account for changes to installer.xml (version 4.0)
Project: http://git-wip-us.apache.org/repos/asf/flex-utilities/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-utilities/commit/bd7ca2ad
Tree: http://git-wip-us.apache.org/repos/asf/flex-utilities/tree/bd7ca2ad
Diff: http://git-wip-us.apache.org/repos/asf/flex-utilities/diff/bd7ca2ad
Branch: refs/heads/develop
Commit: bd7ca2adf7239a9ac5687c43b449c98b0c5817c4
Parents: b8f6cf5
Author: Om <bi...@gmail.com>
Authored: Mon May 5 17:12:47 2014 -0700
Committer: Om <bi...@gmail.com>
Committed: Mon May 5 17:12:47 2014 -0700
----------------------------------------------------------------------
installerBadge/src/InstallApacheFlexBadge.mxml | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/bd7ca2ad/installerBadge/src/InstallApacheFlexBadge.mxml
----------------------------------------------------------------------
diff --git a/installerBadge/src/InstallApacheFlexBadge.mxml b/installerBadge/src/InstallApacheFlexBadge.mxml
index aca734f..9a3e8d5 100644
--- a/installerBadge/src/InstallApacheFlexBadge.mxml
+++ b/installerBadge/src/InstallApacheFlexBadge.mxml
@@ -160,17 +160,17 @@ limitations under the License.
if (!_internetUtil.errorOccurred)
{
var configXML:XML = XML(_internetUtil.result);
- var files:XMLList = configXML.files.file;
- var defaultFlexVersion:String = files.(@name == "FlexVersions").@default.toString();
+ var flexSDKNode:XMLList = configXML.products.ApacheFlexSDK;
+ var defaultFlexVersion:String = configXML.products.ApacheFlexSDK.@latestVersion.toString();
- _sdkBinaryFileName = files.(@name == defaultFlexVersion).@file.toString();
+ _sdkBinaryFileName = flexSDKNode.versions.children().(@id == defaultFlexVersion).@file.toString();
- _installerFileName = files.(@name == 'SDKInstallerApp').@file.toString();
- _installerDownloadPath = files.(@name == 'SDKInstallerApp').@path.toString();
+ _installerFileName = configXML.installer.(@name == 'SDKInstallerApp').@file.toString();
+ _installerDownloadPath = configXML.installer.(@name == 'SDKInstallerApp').@path.toString();
if (_installerDownloadPath.substr(0, Constants.URL_PREFIX.length) != Constants.URL_PREFIX)
{
- var mirrorURLCGI:String = files.(@name == 'MirrorURLCGI').@file.toString();
+ var mirrorURLCGI:String = configXML.mirror.(@name == 'MirrorURLCGI').@file.toString();
_mirrorURLUtil.getMirrorURL(_serviceURL + mirrorURLCGI, getMirrorURLResultHandler);
}