Added ApacheURLLoader component that extends URLLoader.
This new component is only different from URLLoader in that it looks for https 
connections and uses as3httpclient for these connections to bypass internal OS 
proxy and TLS/SSL settings that may break URL fetches in certain cases.


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

Branch: refs/heads/develop
Commit: bd083afae57f549ae8d3d936ceb65842630d65a0
Parents: f3cff5a
Author: quetwo <[email protected]>
Authored: Tue May 26 00:29:15 2015 -0400
Committer: quetwo <[email protected]>
Committed: Tue May 26 00:29:15 2015 -0400

----------------------------------------------------------------------
 installer/README                                |    4 +-
 installer/build.xml                             |   15 +-
 installer/src/InstallApacheFlex.mxml            | 1815 +++++++++++-------
 .../flex/packageflexsdk/util/ApacheURLLoader.as |  108 ++
 4 files changed, 1232 insertions(+), 710 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/bd083afa/installer/README
----------------------------------------------------------------------
diff --git a/installer/README b/installer/README
index a7d7e1e..8fef8e7 100644
--- a/installer/README
+++ b/installer/README
@@ -135,8 +135,8 @@ How to set up the project for working with Adobe Flash 
Builder (or any other IDE
 
 2.  In the installer directory run: 
         ant get-as3commons.swc
-    This step downloads the required as3commons library and saves it in the 
libs 
-    directory.
+        ant get-as3httpdclient.swc
+    These step downloads the required libraries and saves it in the libs 
directory.
 
 3.  If using Adobe Flash Builder, add a linked resource called: 
         APACHE_FLEX_UTILITIES_ROOT 

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/bd083afa/installer/build.xml
----------------------------------------------------------------------
diff --git a/installer/build.xml b/installer/build.xml
index 6d76076..49de697 100644
--- a/installer/build.xml
+++ b/installer/build.xml
@@ -290,7 +290,20 @@
         </fail>
     </target>
 
-    <target name="compile" depends="get-as3commons.swc"
+    <target name="check-as3httpclient.swc">
+        <available file="${LIBRARY_DIR}/as3httpclient.swc" 
property="as3httpclient.swc.present"/>
+    </target>
+
+    <!-- This has a BSD license which is a reciprocal license with the Apache 
v2 license.  -->
+    <target name="get-as3httpclient.swc" depends="check-as3commons.swc" 
unless="as3httpclient.swc.present"
+            description="Download as3httpclient.swc">
+        <mkdir dir="${LIBRARY_DIR}"/>
+        <get 
src="https://github.com/quetwo/as3httpclient/releases/download/1.0/as3httpclient.swc";
+             dest="${LIBRARY_DIR}/as3httpclient.swc"
+             verbose="true"/>
+    </target>
+
+    <target name="compile" depends="get-as3commons.swc, get-as3httpclient.swc"
         description="Compiles the AIR application to a SWF file and places SWF 
in a temp directory to be packaged.">
         <mxmlc file="${SOURCE_DIR}/${APP_NAME}.${APP_EXTENSION}"
             output="${BUILD_DIR}/${APP_NAME}.swf"

Reply via email to