flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject git commit: [flex-sdk] [refs/heads/develop] - fix downloading from mirrors given new json format from infra
Date Fri, 04 Sep 2015 04:45:27 GMT
Repository: flex-sdk
Updated Branches:
  refs/heads/develop 572cb7024 -> 0b3a613ff


fix downloading from mirrors given new json format from infra


Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/0b3a613f
Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/0b3a613f
Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/0b3a613f

Branch: refs/heads/develop
Commit: 0b3a613ffa96d137028282f2e026c78ecf9e599a
Parents: 572cb70
Author: Alex Harui <aharui@apache.org>
Authored: Thu Sep 3 21:45:38 2015 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Thu Sep 3 21:45:38 2015 -0700

----------------------------------------------------------------------
 frameworks/downloads.xml | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/0b3a613f/frameworks/downloads.xml
----------------------------------------------------------------------
diff --git a/frameworks/downloads.xml b/frameworks/downloads.xml
index 87e7d6c..17e4894 100644
--- a/frameworks/downloads.xml
+++ b/frameworks/downloads.xml
@@ -315,11 +315,21 @@
     <target name="download_using_mirror" if="usingmirror">
         <get src="${server}/${folder}/${file}?asjson=true" verbose="true" dest="${basedir}/mirror.json"
/>
         <replace file="${basedir}/mirror.json">
+            <replacefilter token="{"
+            value="" />
+            <replacefilter token="}"
+            value="" />
             <replacefilter token="&quot;"
             value="" />
-            <replacefilter token=": "
+            <replacefilter token=","
+            value="&#x0d;&#x0a;" />
+            <replacefilter token=":"
             value="=" />
         </replace>
+        <replace file="${basedir}/mirror.json">
+            <replacefilter token="http="
+            value="http:" />
+        </replace>
         <property file="${basedir}/mirror.json" />
         <delete file="${basedir}/mirror.json" />
         <echo>Using mirror: ${preferred}</echo>


Mime
View raw message