You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2017/09/27 06:25:37 UTC

[1/3] git commit: [flex-asjs] [refs/heads/packaging] - clean up

Repository: flex-asjs
Updated Branches:
  refs/heads/packaging c66276503 -> 64bcda4cc


clean up


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

Branch: refs/heads/packaging
Commit: 256326bc300bc26b6589467ee284b667c71dd24a
Parents: c662765
Author: Alex Harui <ah...@apache.org>
Authored: Tue Sep 26 23:24:27 2017 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Tue Sep 26 23:24:27 2017 -0700

----------------------------------------------------------------------
 frameworks/js/FlexJS/build.xml | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/256326bc/frameworks/js/FlexJS/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/build.xml b/frameworks/js/FlexJS/build.xml
index c824cb5..aae3996 100644
--- a/frameworks/js/FlexJS/build.xml
+++ b/frameworks/js/FlexJS/build.xml
@@ -144,6 +144,8 @@
         <ant dir="${basedir}/projects/NetworkJS" target="clean"/>
         <ant dir="${basedir}/projects/ReflectionJS" target="clean"/>
         <ant dir="${basedir}/projects/StorageJS" target="clean"/>
+        <ant dir="${basedir}/projects/TextJS" target="clean"/>
+        <ant dir="${basedir}/projects/TLFJS" target="clean"/>
         <ant dir="${basedir}/projects/XMLJS" target="clean"/>
 
         <delete dir="${basedir}/libs"/>


[2/3] git commit: [flex-asjs] [refs/heads/packaging] - proper packaging for FlexJS

Posted by ah...@apache.org.
proper packaging for FlexJS


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

Branch: refs/heads/packaging
Commit: 7bc83e1a86e3f5da162f3627027abe6dc1cd8fbb
Parents: 256326b
Author: Alex Harui <ah...@apache.org>
Authored: Tue Sep 26 23:24:56 2017 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Tue Sep 26 23:24:56 2017 -0700

----------------------------------------------------------------------
 build.xml | 41 +++++++++++++++++++++++++++--------------
 1 file changed, 27 insertions(+), 14 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7bc83e1a/build.xml
----------------------------------------------------------------------
diff --git a/build.xml b/build.xml
index 07b7160..e37d49b 100644
--- a/build.xml
+++ b/build.xml
@@ -706,7 +706,7 @@
         <sleep seconds="3" />
         <mkdir dir="${basedir}/temp"/>
        
-        <copy todir="${basedir}/temp" includeEmptyDirs="false">
+        <copy todir="${basedir}/temp" includeEmptyDirs="true">
             <fileset dir="${basedir}">
                 <include name="**"/>
                 <exclude name="local.properties"/>
@@ -726,20 +726,16 @@
                 <exclude name="src/**"/>
                 <exclude name="testsuite/**"/>
                 <exclude name="fxg2svg/**"/>
+                <exclude name="temp/**"/>
                 <exclude name="vf2js/**"/>
                 <exclude name="**/FlexJSTest_again/**" />
                 <exclude name="**/VanillaSDK_POC/**" />
-                <exclude name="**/*.swc"/>
-                <exclude name="**/*.swf"/>
                 <exclude name="**/.plxarc"/>
                 <exclude name="**/.settings/**"/>
-                <exclude name="**/*.actionScriptProperties"/>
-                <exclude name="**/*.flexLibProperties"/>
                 <exclude name="frameworks/fb.properties"/>
                 <exclude name="frameworks/fonts/**"/>
                 <exclude name="frameworks/test*/**"/>
                 <exclude name="frameworks/js/VanillaSDK/**"/>
-                <exclude name="**/target/**"/>
                 <exclude name="**/*.iml"/>
             </fileset>
         </copy>
@@ -801,16 +797,26 @@
             <include name="**.sh"/>
             <exclude name="bin/**"/>
         </fixcrlf>
-    </target>
-
-    <target name="binary-package"
-        description="Package binary files in zip and tar-gzip file.">
-
-        <antcall target="stage-source"/>
-                
+        
         <!-- delete any left-over empty directories -->
         <delete includeemptydirs="true">
-            <fileset dir="${basedir}/temp/frameworks">
+            <fileset dir="${basedir}/temp/frameworks/projects">
+                <and>
+                    <size value="0"/>
+                    <type type="dir"/>
+                </and>
+            </fileset>
+        </delete>
+        <delete includeemptydirs="true">
+            <fileset dir="${basedir}/temp/frameworks/js/FlexJS/projects">
+                <and>
+                    <size value="0"/>
+                    <type type="dir"/>
+                </and>
+            </fileset>
+        </delete>
+        <delete includeemptydirs="true">
+            <fileset dir="${basedir}/temp/examples">
                 <and>
                     <size value="0"/>
                     <type type="dir"/>
@@ -818,6 +824,13 @@
             </fileset>
         </delete>
 
+    </target>
+
+    <target name="binary-package"
+        description="Package binary files in zip and tar-gzip file.">
+
+        <antcall target="stage-source"/>
+                
         <!-- concat the license file with the binary license file for the 3rd party deps -->
         <concat destfile="${basedir}/temp/LICENSE">
             <filelist dir="${basedir}" files="LICENSE,LICENSE.bin"/>


[3/3] git commit: [flex-asjs] [refs/heads/packaging] - Ant script to install Flash and AIR

Posted by ah...@apache.org.
Ant script to install Flash and AIR


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

Branch: refs/heads/packaging
Commit: 64bcda4cc0bfee44f09dd5b644eb54b5f5d3fa47
Parents: 7bc83e1
Author: Alex Harui <ah...@apache.org>
Authored: Tue Sep 26 23:25:23 2017 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Tue Sep 26 23:25:23 2017 -0700

----------------------------------------------------------------------
 InstallAdobeSDKs.properties/en_US.properties |  63 ++++
 InstallAdobeSDKs.xml                         | 353 ++++++++++++++++++++++
 2 files changed, 416 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/64bcda4c/InstallAdobeSDKs.properties/en_US.properties
----------------------------------------------------------------------
diff --git a/InstallAdobeSDKs.properties/en_US.properties b/InstallAdobeSDKs.properties/en_US.properties
new file mode 100644
index 0000000..d411333
--- /dev/null
+++ b/InstallAdobeSDKs.properties/en_US.properties
@@ -0,0 +1,63 @@
+################################################################################
+##
+##  Licensed to the Apache Software Foundation (ASF) under one or more
+##  contributor license agreements.  See the NOTICE file distributed with
+##  this work for additional information regarding copyright ownership.
+##  The ASF licenses this file to You under the Apache License, Version 2.0
+##  (the "License"); you may not use this file except in compliance with
+##  the License.  You may obtain a copy of the License at
+##
+##      http://www.apache.org/licenses/LICENSE-2.0
+##
+##  Unless required by applicable law or agreed to in writing, software
+##  distributed under the License is distributed on an "AS IS" BASIS,
+##  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+##  See the License for the specific language governing permissions and
+##  limitations under the License.
+##
+################################################################################
+
+
+flash.prompt.text=\
+Apache Royale uses the Adobe Flash Player's playerglobal.swc to\n\
+build Adobe Flash applications.\n\
+\n\
+To get the latest playerglobal.swc, go to this site:\n\
+\n\
+  https://www.adobe.com/support/flashplayer/debug_downloads.html\n\
+\n\
+and download playerglobal.swc to your default downloads folder.\n\
+Then hit any key and this script will find the file in the\n\
+downloads folder and copy it into the right place.\n\
+To use older versions of playerglobal.swc, choose one from this page\n\
+\n\
+https://helpx.adobe.com/flash-player/kb/archived-flash-player-versions.html\n\
+\n\
+Hit the Enter key when the download is complete to continue.
+
+air.prompt.text=\
+Apache Royale uses the Adobe AIR SDK to build Adobe AIR applications.\n\
+\n\
+To get the latest Adobe AIR SDK, go to this site:\n\
+\n\
+  http://www.adobe.com/devnet/air/air-sdk-download.html\n\
+\n\
+and download the Adobe AIR SDK to your default downloads folder.\n\
+(The Adobe AIR SDKs for Flex are smaller downloads)\n\
+Then hit any key and this script will find the file in your\n\
+downloads folder and copy it into the right place.\n\
+To use older versions of the Adobe AIR SDK, choose one from this page\n\
+\n\
+https://helpx.adobe.com/air/kb/archived-air-sdk-version.html\n\
+\n\
+(The "SDK" downloads are smaller than the "SDK and Compiler" downloads)\n\
+Hit the Enter key when the download is complete to continue.\n\
+Adobe AIR SDKs take a while to copy so feel free to go do something else\n\
+if you don't get an error right away.
+
+ERROR_ADOBE_AIR_SDK_NOT_FOUND=Could not find Adobe AIR SDK in downloads folder.
+INFO_USING_AIR=Using Adobe AIR SDK:
+INFO_FINISHED_UNZIPPING=Finished unzipping:
+INFO_FINISHED_UNTARING=Finished untaring:
+INFO_COPIED_FLASH=Copied playerglobal.swc
+

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/64bcda4c/InstallAdobeSDKs.xml
----------------------------------------------------------------------
diff --git a/InstallAdobeSDKs.xml b/InstallAdobeSDKs.xml
new file mode 100644
index 0000000..86d3f4c
--- /dev/null
+++ b/InstallAdobeSDKs.xml
@@ -0,0 +1,353 @@
+<?xml version="1.0"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+
+<project name="InstallAdobeSDKs" default="install" basedir=".">
+
+    <property name="FLEXJS_HOME" location="${basedir}"/>
+    
+	<!-- this script supports the usingDownloadCache property and
+	     downloadCacheFolder property to cache downloads in the
+		 folder specified by downloadCacheFolder.  This can make
+		 a huge difference in future runs although there is some
+		 risk around caching bad downloads and/or needing to
+		 clean up the cache -->
+
+    <!-- Required for OSX 10.6 / Snow Leopard Performance. -->
+    <!-- Java 7 on Mac requires OSX 10.7.3 or higher and is 64-bit only -->
+    <!-- local.d32 is set/used in build.properties so this needs to be done first. -->
+    <condition property="local.d32" value="-d32">
+        <and>
+            <os family="windows"/>  
+            <equals arg1="${sun.arch.data.model}" arg2="64"/>
+            <equals arg1="${os.arch}" arg2="x86_64"/>
+            <equals arg1="${ant.java.version}" arg2="1.6"/>
+        </and>
+    </condition>
+
+    <property file="${FLEXJS_HOME}/env.properties"/>
+    <property environment="env"/>
+    <property file="${FLEXJS_HOME}/local.properties"/>
+    <property file="${FLEXJS_HOME}/nightly.properties"/>
+    <property file="${FLEXJS_HOME}/build.properties"/>
+    <property name="bundle" value="en_US" />
+    <property file="${FLEXJS_HOME}/InstallAdobeSDKs.properties/${bundle}.properties"/>
+    <property file="${FLEXJS_HOME}/InstallAdobeSDKs.properties/en_US.properties"/>
+
+    <condition property="platform" value="mac">
+        <os family="mac" />
+    </condition>
+    <condition property="platform" value="windows">
+        <os family="windows" />
+    </condition>
+    <condition property="platform" value="linux">
+        <os family="unix" />
+    </condition>
+    <condition property="isMac" value="mac">
+        <os family="mac" />
+    </condition>
+    <condition property="isWindows" value="windows">
+        <os family="windows" />
+    </condition>
+    <condition property="isLinux" value="linux">
+        <os family="unix" />
+    </condition>
+    <condition property="download.dir" value="${env.HOME}/Downloads">
+        <os family="mac" />
+    </condition>
+    <condition property="download.dir" value="${env.HOME}/Downloads">
+        <os family="windows" />
+    </condition>
+    <property name="temp.dir" value="${basedir}/in" />
+    
+    <target name="install" depends="flash-install,air-install,delete-temp-dir" >
+    </target>
+    
+    <target name="air-sdk-name" description="Determines name of AIR SDK.">
+        <available file="${download.dir}/AdobeAIRSDK.zip" property="air.sdk.name" value="AdobeAIRSDK.zip"/>
+        <available file="${download.dir}/AdobeAIRSDK.tbz2" property="air.sdk.name" value="AdobeAIRSDK.tbz2"/>
+        <available file="${download.dir}/AdobeAIRSDK.dmg" property="air.sdk.name" value="AdobeAIRSDK.dmg"/>
+        <fail message="${ERROR_ADOBE_AIR_SDK_NOT_FOUND}">
+            <condition>
+                <not>
+                    <isset property="air.sdk.name" />
+                </not>
+            </condition>
+        </fail>
+    </target>
+    
+    <target name="ask-air" >
+        <property name="air.prompt.text" value="Hit any key when download complete" />
+        <input
+        message="${air.prompt.text}" />
+    </target>
+    
+    <target name="air-install" depends="ask-air, air-sdk-name"
+        description="Copies downloaded AIR SDK to correct locations" >
+        <echo>${INFO_USING_AIR} ${air.sdk.name}</echo>
+        
+        <antcall target="air-setup-win" />
+        <antcall target="air-setup-mac-if-mac" />
+        
+    </target>
+
+    <target name="air-setup-win" if="isWindows">
+        <unzip src="${download.dir}/${air.sdk.name}" dest="${temp.dir}/airsdk" />
+        <echo>${INFO_FINISHED_UNZIPPING} ${temp.dir}/${air.sdk.name}</echo>
+        <copy todir="${FLEXJS_HOME}" overwrite="true">
+            <fileset dir="${temp.dir}/airsdk">
+                <include name="AIR SDK license.pdf" />
+                <include name="AIR SDK Readme.txt" />
+                <include name="airsdk.xml" />
+                <include name="bin/adl.exe" />
+                <include name="bin/adt.bat" />
+                <include name="frameworks/libs/air/**" />
+                <include name="frameworks/projects/air/**" />
+                <include name="include/**" />
+                <include name="install/android/**" />
+                <include name="lib/adt.jar" />
+                <include name="lib/android/**" />
+                <include name="lib/aot/**" />
+                <include name="lib/nai/**" />
+                <include name="lib/win/**" />
+                <include name="runtimes/**" />
+                <include name="samples/badge/**" />
+                <include name="samples/descriptor-sample.xml" />
+                <include name="samples/icons/**" />
+                <include name="templates/air/**" />
+                <include name="templates/extensions/**" />
+                <include name="templates/sdk/**" />
+            </fileset>
+        </copy>
+    </target>
+    
+    <target name="unzipOrMountDMG" description="Check for file extension and decide if we should unzip or mount">
+        
+        <mkdir dir="${temp.dir}/airsdk" />
+        <copy file="${download.dir}/${air.sdk.name}" tofile="${temp.dir}/airsdk/${air.sdk.name}" />
+        
+        <condition property="shouldUnzip" value="true">
+            <matches pattern="tbz2" string="${air.sdk.name}"/>
+        </condition>
+        <echo message="Should unzip: ${shouldUnzip}"/>
+    </target>
+    
+    <target name="unzipAIRSDK" if="shouldUnzip">
+        <echo message="Unzipping"/>
+        
+        <!--The tbz2 contains symlinks which Ant does not preserve
+         <untar compression="bzip2" src="${temp.dir}/${air.sdk.name}" dest="${temp.dir}/airsdk" />-->
+        
+        <exec executable="bunzip2" dir="${temp.dir}/airsdk">
+            <arg value="${air.sdk.name}" />
+        </exec>
+        <echo file="${basedir}/airtar.properties">air.tar.name=${air.sdk.name}</echo>
+        <replace file="${basedir}/airtar.properties" token="tbz2" value="tar" />
+        <property file="${basedir}/airtar.properties" />
+        <exec executable="tar" dir="${temp.dir}/airsdk">
+            <arg value="-xvf" />
+            <arg value="${air.tar.name}" />
+        </exec>
+        <echo>${INFO_FINISHED_UNTARING} ${temp.dir}/airsdk/${air.tar.name}</echo>
+        <delete file="${basedir}/airtar.properties" />
+    </target>
+    
+    <target name="mountAIRSDK" unless="shouldUnzip">
+        <echo message="Mounting dmg"/>
+        <exec executable="/usr/bin/hdiutil" os="Mac OS X" failonerror="true">
+            <arg value="attach"/>
+            <arg value="-nobrowse"/>
+            <arg value="${temp.dir}/airsdk/${air.sdk.name}"/>
+        </exec>
+    </target>
+    
+    <target name="copyFromMount" unless="shouldUnzip">
+        <echo message="Copying AIR SDK from mounted volume"/>
+        <exec executable="rsync" dir="${FLEXJS_HOME}">
+            <arg value="--archive" />
+            <arg value="--ignore-existing" />
+            <arg value="--force" />
+            <arg value="/Volumes/AIR SDK/"/>
+            <arg value="${temp.dir}/airsdk" />
+        </exec>
+    </target>
+    
+    <target name="unmountAIRSDK" unless="shouldUnzip">
+        <echo message="Unmounting AIR SDK"/>
+        <exec executable="/usr/bin/hdiutil" os="Mac OS X" failonerror="false">
+            <arg value="unmount"/>
+            <arg value="/Volumes/AIR SDK"/>
+        </exec>
+    </target>
+    
+    <target name="air-setup-mac-if-mac" unless="isWindows">
+        <antcall target="air-setup-mac" />
+    </target>
+    
+    <target name="air-setup-mac" depends="unzipOrMountDMG,unzipAIRSDK,mountAIRSDK,copyFromMount,unmountAIRSDK" unless="isWindows">
+        <antcall target="mac-copy-file">
+            <param name="srcdir" value="." />
+            <param name="filename" value="AIR SDK license.pdf"/>
+            <param name="destdir" value="${FLEXJS_HOME}" />
+        </antcall>
+        <antcall target="mac-copy-file">
+            <param name="srcdir" value="." />
+            <param name="filename" value="AIR SDK Readme.txt"/>
+            <param name="destdir" value="${FLEXJS_HOME}" />
+        </antcall>
+        <antcall target="mac-copy-file">
+            <param name="srcdir" value="." />
+            <param name="filename" value="airsdk.xml"/>
+            <param name="destdir" value="${FLEXJS_HOME}" />
+        </antcall>
+        <antcall target="mac-copy-file">
+            <param name="srcdir" value="bin" />
+            <param name="filename" value="adl"/>
+            <param name="destdir" value="${FLEXJS_HOME}/bin" />
+        </antcall>
+        <antcall target="mac-copy-file">
+            <param name="srcdir" value="bin" />
+            <param name="filename" value="adt"/>
+            <param name="destdir" value="${FLEXJS_HOME}/bin" />
+        </antcall>
+        <antcall target="mac-copy-file">
+            <param name="srcdir" value="lib" />
+            <param name="filename" value="adt.jar"/>
+            <param name="destdir" value="${FLEXJS_HOME}/lib" />
+        </antcall>
+        <antcall target="mac-copy-file">
+            <param name="srcdir" value="samples" />
+            <param name="filename" value="descriptor-sample.xml"/>
+            <param name="destdir" value="${FLEXJS_HOME}/samples" />
+        </antcall>
+        <antcall target="mac-copy-dir">
+            <param name="srcdir" value="frameworks/libs/air" />
+            <param name="destdir" value="${FLEXJS_HOME}/frameworks/libs" />
+        </antcall>
+        <antcall target="mac-copy-dir">
+            <param name="srcdir" value="frameworks/projects/air" />
+            <param name="destdir" value="${FLEXJS_HOME}/frameworks/projects" />
+        </antcall>
+        <antcall target="mac-copy-dir">
+            <param name="srcdir" value="include" />
+            <param name="destdir" value="${FLEXJS_HOME}" />
+        </antcall>
+        <antcall target="mac-copy-dir-if-exists">
+            <param name="srcdir" value="install/android" />
+            <param name="destdir" value="${FLEXJS_HOME}/install" />
+        </antcall>
+        <antcall target="mac-copy-dir">
+            <param name="srcdir" value="lib/android" />
+            <param name="destdir" value="${FLEXJS_HOME}/lib" />
+        </antcall>
+        <antcall target="mac-copy-dir">
+            <param name="srcdir" value="lib/aot" />
+            <param name="destdir" value="${FLEXJS_HOME}/lib" />
+        </antcall>
+        <antcall target="mac-copy-dir">
+            <param name="srcdir" value="lib/nai" />
+            <param name="destdir" value="${FLEXJS_HOME}/lib" />
+        </antcall>
+        <antcall target="mac-copy-dir">
+            <param name="srcdir" value="runtimes" />
+            <param name="destdir" value="${FLEXJS_HOME}" />
+        </antcall>
+        <antcall target="mac-copy-dir">
+            <param name="srcdir" value="samples/badge" />
+            <param name="destdir" value="${FLEXJS_HOME}/samples" />
+        </antcall>
+        <antcall target="mac-copy-dir">
+            <param name="srcdir" value="samples/icons" />
+            <param name="destdir" value="${FLEXJS_HOME}/samples" />
+        </antcall>
+        <antcall target="mac-copy-dir">
+            <param name="srcdir" value="templates/air" />
+            <param name="destdir" value="${FLEXJS_HOME}/templates" />
+        </antcall>
+        <antcall target="mac-copy-dir">
+            <param name="srcdir" value="templates/extensions" />
+            <param name="destdir" value="${FLEXJS_HOME}/templates" />
+        </antcall>
+        <antcall target="mac-copy-dir">
+            <param name="srcdir" value="templates/sdk" />
+            <param name="destdir" value="${FLEXJS_HOME}/templates" />
+        </antcall>
+    </target>
+    
+    <target name="mac-copy-file" description="copies a file">
+        <mkdir dir="${destdir}" />
+        <exec executable="cp" dir="${FLEXJS_HOME}">
+            <arg value="-p" />
+            <arg value="${temp.dir}/airsdk/${srcdir}/${filename}"/>
+            <arg value="${destdir}" />
+        </exec>
+    </target>
+    
+    <target name="mac-copy-dir" description="copies a directory using exec and rsync so that symbolic links are preserved">
+        <echo file="${basedir}/maccopy.properties">mac.copy.echo=${mac.copy.echo.pattern}</echo>
+        <property file="${basedir}/maccopy.properties" />
+        <delete file="${basedir}/maccopy.properties" />
+        <echo>${mac.copy.echo}</echo>
+        <exec executable="rsync" dir="${FLEXJS_HOME}">
+            <arg value="--archive" />
+            <arg value="--ignore-existing" />
+            <arg value="--force" />
+            <arg value="${temp.dir}/airsdk/${srcdir}"/>
+            <arg value="${destdir}" />
+        </exec>
+    </target>
+
+    <target name="mac-copy-dir-if-exists" depends="mac-check-exists" if="${srcdir}.exists" description="copies a directory using exec and rsync so that symbolic links are preserved">
+        <echo file="${basedir}/maccopy.properties">mac.copy.echo=${mac.copy.echo.pattern}</echo>
+        <property file="${basedir}/maccopy.properties" />
+        <echo>${mac.copy.echo}</echo>
+        <exec executable="rsync" dir="${FLEXJS_HOME}">
+            <arg value="--archive" />
+            <arg value="--ignore-existing" />
+            <arg value="--force" />
+            <arg value="${temp.dir}/airsdk/${srcdir}"/>
+            <arg value="${destdir}" />
+        </exec>
+    </target>
+
+    <target name="mac-check-exists">
+        <available file="${temp.dir}/airsdk/${srcdir}" type="dir" property="${srcdir}.exists" />
+    </target>
+
+    <target name="flash-install"
+        description="Copies downloaded Flash SDK to correct locations" >
+        <property name="flash.prompt.text" value="Hit any key when download complete" />
+        <input
+        message="${flash.prompt.text}" />
+        
+        <copy todir="${FLEXJS_HOME}/frameworks/libs/player" overwrite="true">
+            <fileset dir="${download.dir}">
+                <include name="playerglobal*.swc" />
+            </fileset>
+            <regexpmapper from="playerglobal([0-9]*)_([0-9]*)\.swc" to="\1.\2/playerglobal.swc" />
+        </copy>
+        
+        <echo>${INFO_COPIED_FLASH}</echo>
+        
+    </target>
+    
+	<target name="delete-temp-dir">
+		<delete dir="${temp.dir}"/>
+	</target>
+</project>