flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [4/6] git commit: [flex-utilities] [refs/heads/develop] - xml tags can't start with a number
Date Fri, 17 Jan 2014 14:35:13 GMT
xml tags can't start with a number


Project: http://git-wip-us.apache.org/repos/asf/flex-utilities/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-utilities/commit/6a4142aa
Tree: http://git-wip-us.apache.org/repos/asf/flex-utilities/tree/6a4142aa
Diff: http://git-wip-us.apache.org/repos/asf/flex-utilities/diff/6a4142aa

Branch: refs/heads/develop
Commit: 6a4142aad6489469967fd56c5638caa323e50fbe
Parents: 5c3ac82
Author: Alex Harui <aharui@apache.org>
Authored: Thu Jan 16 22:50:29 2014 -0800
Committer: Alex Harui <aharui@apache.org>
Committed: Thu Jan 16 22:50:29 2014 -0800

----------------------------------------------------------------------
 installer/src/InstallApacheFlex.mxml                 | 5 ++++-
 installer/src/installer/sdk-installer-config-4.0.xml | 6 +++---
 2 files changed, 7 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/6a4142aa/installer/src/InstallApacheFlex.mxml
----------------------------------------------------------------------
diff --git a/installer/src/InstallApacheFlex.mxml b/installer/src/InstallApacheFlex.mxml
index f6acdbd..d1621fe 100644
--- a/installer/src/InstallApacheFlex.mxml
+++ b/installer/src/InstallApacheFlex.mxml
@@ -450,7 +450,10 @@ variables are not required because the locations of these pieces are
known.
                 for each (var productVersion:XML in productVersionList) {
                     var shortName:String = productVersion.@file.toString();
                     var fileName:String = shortName + (_os.isWindows() ? Constants.ARCHIVE_EXTENSION_WIN
: Constants.ARCHIVE_EXTENSION_MAC);
-                    var label:String = productName + " " + productVersion.name().toString();
+                    versionString = productVersion.name().toString();
+                    if (versionString.charAt(0) == "v")
+                        versionString = versionString.substr(1);
+                    var label:String = productName + " " + versionString;
                     var ver:String = fileName.substr(productPrefix.length).split("-")[0];
                     var path:String = productVersion.@path.toString();
                     if (productVersion["@default"].length() == 1)

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/6a4142aa/installer/src/installer/sdk-installer-config-4.0.xml
----------------------------------------------------------------------
diff --git a/installer/src/installer/sdk-installer-config-4.0.xml b/installer/src/installer/sdk-installer-config-4.0.xml
index 260e755..0e861fd 100644
--- a/installer/src/installer/sdk-installer-config-4.0.xml
+++ b/installer/src/installer/sdk-installer-config-4.0.xml
@@ -46,9 +46,9 @@ limitations under the License.
          - remove the extension from the file name -->
         <ApacheFlexSDK name="Apache Flex SDK" prefix="apache-flex-sdk-">
             <versions>
-                <4.9.1 id="4.9.1" path="http://archive.apache.org/dist/flex/4.9.1/binaries/"
file="apache-flex-sdk-4.9.1-bin" />
-                <4.10.0 id="4.10.0" path="http://archive.apache.org/dist/flex/4.10.0/binaries/"
file="apache-flex-sdk-4.10.0-bin" />
-                <4.11.0 id="4.11.0" path="flex/4.11.0/binaries/" file="apache-flex-sdk-4.11.0-bin"
default="true"/>
+                <v4.9.1 id="4.9.1" path="http://archive.apache.org/dist/flex/4.9.1/binaries/"
file="apache-flex-sdk-4.9.1-bin" />
+                <v4.10.0 id="4.10.0" path="http://archive.apache.org/dist/flex/4.10.0/binaries/"
file="apache-flex-sdk-4.10.0-bin" />
+                <v4.11.0 id="4.11.0" path="flex/4.11.0/binaries/" file="apache-flex-sdk-4.11.0-bin"
default="true"/>
                 <Nightly id="Nightly" path="https://builds.apache.org/job/flex-sdk_release/lastSuccessfulBuild/artifact/out/"
file="apache-flex-sdk-4.12.0-bin" />
             </versions>
         </ApacheFlexSDK>


Mime
View raw message