incubator-flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cframp...@apache.org
Subject svn commit: r1355471 - in /incubator/flex/trunk: frameworks/downloads.xml ide/flashbuilder/makeApacheFlexForFlashBuilder.sh modules/downloads.xml
Date Fri, 29 Jun 2012 16:58:29 GMT
Author: cframpton
Date: Fri Jun 29 16:58:27 2012
New Revision: 1355471

URL: http://svn.apache.org/viewvc?rev=1355471&view=rev
Log:
Move prompting and downloading of optional components from modules/downloads.xml to frameworks/downloads.xml
since the later file is in the bin kit and would allow the components to be added there.

Modified:
    incubator/flex/trunk/frameworks/downloads.xml
    incubator/flex/trunk/ide/flashbuilder/makeApacheFlexForFlashBuilder.sh
    incubator/flex/trunk/modules/downloads.xml

Modified: incubator/flex/trunk/frameworks/downloads.xml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/downloads.xml?rev=1355471&r1=1355470&r2=1355471&view=diff
==============================================================================
--- incubator/flex/trunk/frameworks/downloads.xml (original)
+++ incubator/flex/trunk/frameworks/downloads.xml Fri Jun 29 16:58:27 2012
@@ -26,19 +26,27 @@
 
 	<property name="download.dir" value="${FLEX_HOME}/in"/>
 	
-    <!-- Download thirdparty code -->
-    
+    <!-- See note in modules/download.xml about this property. --> 
+    <property name="lib.opt.dir" value="${FLEX_HOME}/lib/external/optional"/>
+
+    <property name="adobe.flex.dir" value="adobe_flex_sdk_4.6"/>
+    <property name="adobe.flex.zip.file" value="flex_sdk_4.6.0.23201B.zip"/>
+
     <!-- 
        To clean these you must call thirdparty-clean or super-clean to clean everything.
 
        clean does not remove these since they don't change often and the downloads take time.
     -->
     <target name="main" 
-        depends="swfobject-download,swfobject-fabridge-download,textLayout-download,osmf-download"

+        depends="swfobject-download,swfobject-fabridge-download,textLayout-download,osmf-download,optional-downloads"

         description="Copies third-party software into place for build">
         <echo message="Use thirdparty-clean or super-clean to remove these."/> 
     </target>
     
-    <target name="clean" depends="swfobject-clean,swfobject-fabridge-clean" 
+    <target name="optional-downloads" 
+        depends="blazeds-jar, font-jars, clean-adobe-flex-sdk" 
+        description="Downloads, after prompt for each, the optional thirdparty JARs"/>
+
+    <target name="clean" depends="swfobject-clean,swfobject-fabridge-clean,clean-adobe-flex-sdk"

         description="Cleans thirdparty downloaded files.">
         <delete failonerror="false">
             <fileset dir="${basedir}/libs">
@@ -48,12 +56,14 @@
         </delete>
         <delete includeEmptyDirs="true" failonerror="false">
             <fileset dir="${download.dir}">
+                <include name="${adobe.flex.zip.file}"/>
                 <include name="OSMF*/**"/>
                 <include name="osmf*/**"/>
                 <include name="textLayout*/**"/>
                 <include name="swfobject*/**"/>
             </fileset>
         </delete>
+        <delete dir="${lib.opt.dir}" failonerror="false"/>
      </target>
 
 	<!--
@@ -204,42 +214,172 @@
             verbose="false"/>
     </target>
     
-    <!-- FixMe: should this be removed? -->
-    <target name="ide-clean" depends="airsdk-clean" 
-        description="Delete AIR SDK and playerglobal files copied into FLEX_HOME.">
-        <delete failonerror="false">
-            <fileset dir="${basedir}/libs/player" includes="**/playerglobal.swc"/>
-        </delete>
-    </target>    
+	<!--============================================================================= -->
+	<!--      Optional Jars.  Licenses are not compatible with Apache v2 license.     -->
+	<!--============================================================================= -->
+	
+	<!--
+        flex-messaging-common.jar - BlazeDS interface for -service compiler option
+    -->
+    
+    <target name="blazeds-jar-check" unless="blazeds.donot.ask"
+        description="Checks if flex-messaging-common.jar is in optional lib directory.">
+        <available file="${lib.opt.dir}/flex-messaging-common.jar" property="blazeds.donot.ask"/>
+        <condition property="blazeds.donot.ask">
+            <isset property="build.noprompt"/>
+        </condition>
+    </target>
+    
+    <target name="blazeds-jar" depends="blazeds-jar-check,get-blazeds-jar" 
+        description="Downloads and copies flex-messaging-common.jar to the optional lib directory."/>
 
-    <!-- FixMe: should this be removed? -->
-    <target name="airsdk-clean" description="Delete files copied from the AIR SDK">
-        <!-- Delete AIR files and directories from 'prepare' target -->
-        <delete file="${FLEX_HOME}/AIR SDK license.pdf"/>
-        <delete file="${FLEX_HOME}/AIR SDK Readme.txt"/>
-        <delete file="${FLEX_HOME}/bin/adl"/>
-        <delete file="${FLEX_HOME}/bin/adl.exe"/>
-        <delete file="${FLEX_HOME}/bin/adt"/>
-        <delete file="${FLEX_HOME}/bin/adt.bat"/>
-        <delete dir="${FLEX_HOME}/include"/>
-        <delete dir="${FLEX_HOME}/install"/>
-        <delete dir="${FLEX_HOME}/frameworks/libs/air"/>
-        <delete dir="${FLEX_HOME}/frameworks/projects/air"/>
-        <delete file="${FLEX_HOME}/lib/adt.jar"/>
-        <delete file="${FLEX_HOME}/lib/win/FlashRuntimeExtensions.lib"/>
-        <delete dir="${FLEX_HOME}/runtimes"/>
-        <delete includeEmptyDirs="true" failonerror="false">
-            <fileset dir="${FLEX_HOME}/samples">
-                <include name="badges/**" />
-                <include name="descriptor-sample.xml" />
-                <include name="icons/**" />
-            </fileset>
-        </delete>
-        <delete includeEmptyDirs="true" failonerror="false">
-            <fileset dir="${FLEX_HOME}/templates">
-                <include name="air/**" />
-                <include name="extensions/**" />
+    <!-- Prompt before downloading.  -->
+    <target name="ask-blazeds" unless="blazeds.donot.ask"
+        description="Prompt the user before downloading BlaseDS">
+        
+        <echo message="Apache Flex can optionally integrate with Adobe BlazeDS."/>
+        <echo message="This feature requires flex-messaging-common.jar from the Adobe
Flex SDK."/>
+        <echo message="The Adobe SDK license agreement for Adobe Flex 4.6 applies to this
jar."/>
+        <echo message="This license is not compatible with the Apache v2 license."/>
+        <antcall target="echo-adobe-flex-sdk-license"/>
+        <input
+            message="${line.separator}Do you want to install this jar from the Adobe Flex
SDK?"
+            validargs="y,n"
+            defaultvalue="n"
+            addproperty="input.blazeds.download"/>
+        <condition property="do.blazeds.install">
+            <equals arg1="y" arg2="${input.blazeds.download}"/>
+        </condition>
+        <!-- Only ask once per ant run.  -->
+        <property name="blazeds.donot.ask" value="set"/>
+    </target>
+        
+    <target name="get-blazeds-jar" depends="ask-blazeds" if="do.blazeds.install">
+
+        <available file="${download.dir}/${adobe.flex.dir}" type="dir"
+            property="adobe.flex.sdk.exists"/>
+        
+        <antcall target="get-adobe-flex-sdk"/>
+
+        <copy file="${download.dir}/${adobe.flex.dir}/lib/flex-messaging-common.jar" 
+            todir="${lib.opt.dir}" verbose="true"/>
+        <copy file="${download.dir}/${adobe.flex.dir}/license-adobesdk.htm" 
+            tofile="${lib.opt.dir}/flex-messaging-common-LICENSE.htm" verbose="true"/>
+    </target>
+
+	<!--
+        Embedded Font Support
+    -->
+    
+    <target name="font-jars-check" unless="font.donot.ask"
+        description="Checks if font jars are in the optional lib directory.">        
+        <condition  property="font.donot.ask">
+            <and>
+                <available file="${lib.opt.dir}/flex-fontkit.jar"/>
+                <available file="${lib.opt.dir}/afe.jar"/>
+                <available file="${lib.opt.dir}/aglj40.jar"/>
+                <available file="${lib.opt.dir}/rideau.jar"/>
+            </and>
+        </condition>
+        <condition property="font.donot.ask">
+            <isset property="build.noprompt"/>
+        </condition>
+    </target>
+    
+    <target name="font-jars" depends="font-jars-check,get-font-jars" 
+        description="Downloads and copies font jars to the optional lib directory."/>
+
+    <!-- Prompt before downloading.  -->
+    <target name="ask-font" unless="font.donot.ask"
+        description="Prompt the user before downloading BlaseDS">
+        
+        <echo message="Apache Flex can optionally integrate with Adobe's embedded font
support."/>
+        <echo message="This feature requires a few font jars from the Adobe Flex SDK."/>
+        <echo message="The Adobe SDK license agreement for Adobe Flex 4.6 applies to these
jars."/>
+        <echo message="This license is not compatible with the Apache v2 license."/>
+        <antcall target="echo-adobe-flex-sdk-license"/>
+        <input
+            message="${line.separator}Do you want to install these jars from the Adobe Flex
SDK?"
+            validargs="y,n"
+            defaultvalue="n"
+            addproperty="input.font.download"/>
+        <condition property="do.font.install">
+            <equals arg1="y" arg2="${input.font.download}"/>
+        </condition>
+        <!-- Only ask once per ant run.  -->
+        <property name="font.donot.ask" value="set"/>
+    </target>
+    
+    <target name="get-font-jars" depends="ask-font" if="do.font.install">
+        
+        <available file="${download.dir}/${adobe.flex.dir}" type="dir"
+            property="adobe.flex.sdk.exists"/>
+        
+        <antcall target="get-adobe-flex-sdk"/>
+        
+        <copy todir="${lib.opt.dir}" verbose="true">
+            <fileset dir="${download.dir}/${adobe.flex.dir}/lib">
+                <include name="afe.jar" />
+                <include name="aglj40.jar" />
+                <include name="flex-fontkit.jar" />
+                <include name="rideau.jar" />
             </fileset>
-        </delete>
+        </copy>
+        
+        <copy file="${download.dir}/${adobe.flex.dir}/license-adobesdk.htm" 
+            tofile="${lib.opt.dir}/flex-fontkit-LICENSE.htm" verbose="true"/>
+        <copy file="${download.dir}/${adobe.flex.dir}/license-adobesdk.htm" 
+            tofile="${lib.opt.dir}/afe-LICENSE.htm" verbose="true"/>
+        <copy file="${download.dir}/${adobe.flex.dir}/license-adobesdk.htm" 
+            tofile="${lib.opt.dir}/aglj40-LICENSE.htm" verbose="true"/>
+        <copy file="${download.dir}/${adobe.flex.dir}/license-adobesdk.htm" 
+            tofile="${lib.opt.dir}/rideau.jar-LICENSE.htm" verbose="true"/>
+    </target>
+        	
+    <target name="echo-adobe-flex-sdk-license">       
+        <echo message="Adobe Flex SDK License Agreement:
+            ${line.separator}
+            ${line.separator}All files contained in this Adobe Flex SDK download are subject
to and governed by the
+            ${line.separator}Adobe Flex SDK License Agreement specified here: 
+            ${line.separator}    http://www.adobe.com/products/eulas/pdfs/adobe_flex_software_development_kit-combined-20110916_0930.pdf,

+            ${line.separator}By downloading, modifying, distributing, using and/or accessing
any files in this Adobe Flex SDK, 
+            ${line.separator}you agree to the terms and conditions of the applicable end
user license agreement.
+            ${line.separator}
+            ${line.separator}In addition to the Adobe license terms, you also agree to be
bound by the third-party terms specified here: 
+            ${line.separator}    http://www.adobe.com/products/eula/third_party/. 
+            ${line.separator}Adobe recommends that you review these third-party terms." />
+    </target>
+
+    <target name="get-adobe-flex-sdk" unless="adobe.flex.sdk.exists"
+        description="Downloads the Adobe Flex 4.6 SDK">
+        
+        <available file="${download.dir}/${adobe.flex.zip.file}" type="file"
+            property="adobe.flex.sdk.download.exists"/>
+        
+        <echo message="${download.dir}/${adobe.flex.zip.file} property ${adobe.flex.sdk.download.exists}"/>
+        
+        <antcall target="download-adobe-flex-sdk" />
+        
+        <unzip src="${download.dir}/${adobe.flex.zip.file}" 
+            dest="${download.dir}/${adobe.flex.dir}">
+            <patternset>
+                <include name="license-adobesdk.htm"/>
+                <include name="lib/flex-messaging-common.jar"/>
+                <include name="lib/afe.jar" />
+                <include name="lib/aglj40.jar" />
+                <include name="lib/flex-fontkit.jar" />
+                <include name="lib/rideau.jar" />
+            </patternset>
+        </unzip>
     </target>
+    
+    <target name="download-adobe-flex-sdk" unless="adobe.flex.sdk.download.exists" >
+        <mkdir dir="${download.dir}"/>        
+        <get src="http://fpdownload.adobe.com/pub/flex/sdk/builds/flex4.6/${adobe.flex.zip.file}"

+            dest="${download.dir}/${adobe.flex.zip.file}"/>
+    </target>
+    
+    <target name="clean-adobe-flex-sdk">
+        <delete dir="${download.dir}/${adobe.flex.dir}"/>
+    </target>    
 </project>

Modified: incubator/flex/trunk/ide/flashbuilder/makeApacheFlexForFlashBuilder.sh
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/ide/flashbuilder/makeApacheFlexForFlashBuilder.sh?rev=1355471&r1=1355470&r2=1355471&view=diff
==============================================================================
--- incubator/flex/trunk/ide/flashbuilder/makeApacheFlexForFlashBuilder.sh (original)
+++ incubator/flex/trunk/ide/flashbuilder/makeApacheFlexForFlashBuilder.sh Fri Jun 29 16:58:27
2012
@@ -68,94 +68,12 @@ echo "This script will construct an Adob
 echo "You will need to answer questions throughout this process."
 echo
 
-function echo_adobe_flex_sdk_license()
-{
-        echo
-        echo "Adobe Flex SDK License Agreement:"
-        echo
-        echo "All files contained in this Adobe Flex SDK download are subject to and governed
by the"
-        echo "Adobe Flex SDK License Agreement specified here:"
-        echo "    http://www.adobe.com/products/eulas/pdfs/adobe_flex_software_development_kit-combined-20110916_0930.pdf,"

-        echo "By downloading, modifying, distributing, using and/or accessing any files in
this Adobe Flex SDK,"
-        echo "you agree to the terms and conditions of the applicable end user license agreement."
-        echo
-        echo "In addition to the Adobe license terms, you also agree to be bound by the third-party
terms specified here:"
-        echo "    http://www.adobe.com/products/eula/third_party/."
-        echo "Adobe recommends that you review these third-party terms."
-        echo
-}
-
-function download_adobe_flex_sdk()
-{
-    if [ -z $adobeFlexSDKDownloaded ]
-    then
-        curl "$ADOBE_FLEX_SDK_URL" --output "$tempDir/$ADOBE_FLEX_SDK_FILE"
-        mkdir -p "$tempDir"/flexSDK  
-        tar xf "$tempDir/$ADOBE_FLEX_SDK_FILE" -C "$tempDir/flexSDK"
-        
-        # q is fast-read so it extracts the first file matched.
-        tar xvqf "$tempDir/$ADOBE_FLEX_SDK_FILE" -C "$tempDir" license-adobesdk.htm
-        
-        adobeFlexSDKDownloaded=true
-    fi
-}
-
-# Ask about optional integration with Adobe BlazeDS (Data Services)
-echo
-echo ===========================================================================
-echo "Apache Flex can optionally integrate with Adobe BlazeDS."
-echo
-echo "This feature requires flex-messaging-common.jar from the Adobe Flex SDK."
-echo "The Adobe SDK license agreement for Adobe Flex 4.6 applies to this jar."
-echo "This license is not compatible with the Apache v2 license."
-echo ===========================================================================
-echo_adobe_flex_sdk_license
-read -p "Do you want to install the BlazeDS support from the Adobe Flex SDK? (y/[n]) " ADOBE_BLAZEDS_RESP
-
-# Ask about optional integration with the Adobe Embedded Font Support.
-echo
-echo ===========================================================================        
-echo "Apache Flex can optionally integrate with Adobe's embedded font support."
-echo
-echo "This feature requires a few font jars from the Adobe Flex SDK."
-echo "The Adobe SDK license agreement for Adobe Flex 4.6 applies to these jars."
-echo "This license is not compatible with the Apache v2 license."
-echo ===========================================================================
-echo_adobe_flex_sdk_license
-read -p "Do you want to install the embedded font support from the Adobe Flex SDK? (y/[n])
" ADOBE_FONT_RESP
-echo
-
-# Now do the optional integration, if requested.
-if [ "$ADOBE_BLAZEDS_RESP" = "y" ]; then
-    download_adobe_flex_sdk
-    
-    mkdir -p "$FLEX_HOME/lib/external/optional"    
-    tar xvqf "$tempDir/$ADOBE_FLEX_SDK_FILE" -C "$FLEX_HOME/lib/external/optional" --strip-components
1 lib/flex-messaging-common.jar
-    cp -v "$tempDir/license-adobesdk.htm" "$FLEX_HOME/lib/external/optional/flex-messaging-common-LICENSE.htm"
-fi
-
-if [ "$ADOBE_FONT_RESP" = "y" ]; then
-    download_adobe_flex_sdk
-
-    mkdir -p "$FLEX_HOME/lib/external/optional"
-    
-    tar xvqf "$tempDir/$ADOBE_FLEX_SDK_FILE" -C "$FLEX_HOME/lib/external/optional" --strip-components
1  lib/afe.jar
-    tar xvqf "$tempDir/$ADOBE_FLEX_SDK_FILE" -C "$FLEX_HOME/lib/external/optional" --strip-components
1 lib/aglj40.jar
-    tar xvqf "$tempDir/$ADOBE_FLEX_SDK_FILE" -C "$FLEX_HOME/lib/external/optional" --strip-components
1 lib/flex-fontkit.jar
-    tar xvqf "$tempDir/$ADOBE_FLEX_SDK_FILE" -C "$FLEX_HOME/lib/external/optional" --strip-components
1 lib/rideau.jar
-    
-    cp -v "$tempDir/license-adobesdk.htm" "$FLEX_HOME/lib/external/optional/afe-LICENSE.htm"
-    cp -v "$tempDir/license-adobesdk.htm" "$FLEX_HOME/lib/external/optional/aglj40-LICENSE.htm"
-    cp -v "$tempDir/license-adobesdk.htm" "$FLEX_HOME/lib/external/optional/flex-fontkit-LICENSE.htm"
-    cp -v "$tempDir/license-adobesdk.htm" "$FLEX_HOME/lib/external/optional/rideau.jar-LICENSE.htm"
-fi
-
 # download the Apache Flex SDK
 echo "Downloading the Apache Flex SDK from $APACHE_FLEX_BIN_DISTRO_URL"
 curl "$APACHE_FLEX_BIN_DISTRO_URL" --output "$tempDir/$APACHE_FLEX_BIN_DISTRO_FILE"
 tar xf "$tempDir/$APACHE_FLEX_BIN_DISTRO_FILE" -C "$FLEX_HOME"
 
-# download swfobject, osmf.swc and textLayout.swc
+# the third-party downloads, including the optional components
 ant -f "$FLEX_HOME"/frameworks/downloads.xml
 
 # download the AIR SDK for Mac

Modified: incubator/flex/trunk/modules/downloads.xml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/modules/downloads.xml?rev=1355471&r1=1355470&r2=1355471&view=diff
==============================================================================
--- incubator/flex/trunk/modules/downloads.xml (original)
+++ incubator/flex/trunk/modules/downloads.xml Fri Jun 29 16:58:27 2012
@@ -37,15 +37,12 @@
     <property name="lib.opt.dir" value="${lib.ext.dir}/optional"/>
 
 	<property name="download.dir" value="${FLEX_HOME}/in"/>
-    <property name="adobe.flex.dir" value="adobe_flex_sdk_4.6"/>
-    <property name="adobe.flex.zip.file" value="flex_sdk_4.6.0.23201B.zip"/>
 
     <property name="batik.zip.dir" value="batik-1.6"/>
     <property name="batik.dir" value="thirdparty/batik"/>
     <property name="velocity.zip.dir" value="velocity-1.4"/>
     <property name="velocity.dir" value="thirdparty/velocity"/>
-
-
+    
 	<!-- 
 	   Notes:
 	       For Apache, the JARS must be removed from the repository.
@@ -85,20 +82,14 @@
         they are each downloaded only if they don't already exist. 
     -->
     
-	<target name="main" depends="optional-jars, required-jars"/>
-
-	<target name="required-jars" depends="batik-jars, commons-jars, javacc-jar, saxon9-jar,
velocity-jars, xalan-jar, xerces-jars" 
+	<target name="main" depends="batik-jars, commons-jars, javacc-jar, saxon9-jar, velocity-jars,
xalan-jar, xerces-jars" 
 		description="Downloads all the required thirdparty JARs"/>
 
-    <!-- Ask all the questions up front. -->
-    <target name="optional-jars" depends="blazeds-jar, font-jars, clean-adobe-flex-sdk"
-        description="Downloads, after prompt for each, the optional thirdparty JARs"/>
-    
     <!--
 		Cleanup
 	-->
 	
-    <target name="clean" depends="batik-jars-clean,velocity-jars-clean,clean-adobe-flex-sdk"
+    <target name="clean" depends="batik-jars-clean,velocity-jars-clean"
         description="Removes thirdparty downloads.">
         
         <delete includeEmptyDirs="true" failonerror="false">
@@ -552,199 +543,5 @@
             <globmapper from="*" to="xerces-LICENSE/*"/>
         </copy>
         <delete dir="${download.dir}/${xerces.dir}"/>
-    </target>
-	
-	<!--============================================================================= -->
-	<!--      Optional Jars.  Licenses are not compatible with Apache v2 license.     -->
-	<!--============================================================================= -->
-	
-	<!--
-        flex-messaging-common.jar - BlazeDS interface for -service compiler option
-    -->
-    
-    <target name="blazeds-jar-check" unless="blazeds.donot.ask"
-        description="Checks if flex-messaging-common.jar is in optional lib directory.">
-        <available file="${lib.opt.dir}/flex-messaging-common.jar" property="blazeds.donot.ask"/>
-        <condition property="blazeds.donot.ask">
-            <isset property="build.noprompt"/>
-        </condition>
-    </target>
-    
-    <target name="blazeds-jar" depends="blazeds-jar-check,get-blazeds-jar" 
-        description="Downloads and copies flex-messaging-common.jar to the optional lib directory."/>
-
-    <!-- Prompt before downloading.  -->
-    <target name="ask-blazeds" unless="blazeds.donot.ask"
-        description="Prompt the user before downloading BlaseDS">
-        
-        <echo message="Apache Flex can optionally integrate with Adobe BlazeDS."/>
-        <echo message="This feature requires flex-messaging-common.jar from the Adobe
Flex SDK."/>
-        <echo message="The Adobe SDK license agreement for Adobe Flex 4.6 applies to this
jar."/>
-        <echo message="This license is not compatible with the Apache v2 license."/>
-        <antcall target="echo-adobe-flex-sdk-license"/>
-        <input
-            message="${line.separator}Do you want to install this jar from the Adobe Flex
SDK?"
-            validargs="y,n"
-            defaultvalue="n"
-            addproperty="input.blazeds.download"/>
-        <condition property="do.blazeds.install">
-            <equals arg1="y" arg2="${input.blazeds.download}"/>
-        </condition>
-        <!-- Only ask once per ant run.  -->
-        <property name="blazeds.donot.ask" value="set"/>
-    </target>
-        
-    <target name="get-blazeds-jar" depends="ask-blazeds" if="do.blazeds.install">
-
-        <available file="${download.dir}/${adobe.flex.dir}" type="dir"
-            property="adobe.flex.sdk.exists"/>
-        
-        <antcall target="get-adobe-flex-sdk"/>
-
-        <copy file="${download.dir}/${adobe.flex.dir}/lib/flex-messaging-common.jar" 
-            todir="${lib.opt.dir}" verbose="true"/>
-        <copy file="${download.dir}/${adobe.flex.dir}/license-adobesdk.htm" 
-            tofile="${lib.opt.dir}/flex-messaging-common-LICENSE.htm" verbose="true"/>
-    </target>
-
-	<!--
-        Embedded Font Support
-    -->
-    
-    <target name="font-jars-check" unless="font.donot.ask"
-        description="Checks if font jars are in the optional lib directory.">        
-        <condition  property="font.donot.ask">
-            <and>
-                <available file="${lib.opt.dir}/flex-fontkit.jar"/>
-                <available file="${lib.opt.dir}/afe.jar"/>
-                <available file="${lib.opt.dir}/aglj40.jar"/>
-                <available file="${lib.opt.dir}/rideau.jar"/>
-            </and>
-        </condition>
-        <condition property="font.donot.ask">
-            <isset property="build.noprompt"/>
-        </condition>
-    </target>
-    
-    <target name="font-jars" depends="font-jars-check,get-font-jars" 
-        description="Downloads and copies font jars to the optional lib directory."/>
-
-    <!-- Prompt before downloading.  -->
-    <target name="ask-font" unless="font.donot.ask"
-        description="Prompt the user before downloading BlaseDS">
-        
-        <echo message="Apache Flex can optionally integrate with Adobe's embedded font
support."/>
-        <echo message="This feature requires a few font jars from the Adobe Flex SDK."/>
-        <echo message="The Adobe SDK license agreement for Adobe Flex 4.6 applies to these
jars."/>
-        <echo message="This license is not compatible with the Apache v2 license."/>
-        <antcall target="echo-adobe-flex-sdk-license"/>
-        <input
-            message="${line.separator}Do you want to install these jars from the Adobe Flex
SDK?"
-            validargs="y,n"
-            defaultvalue="n"
-            addproperty="input.font.download"/>
-        <condition property="do.font.install">
-            <equals arg1="y" arg2="${input.font.download}"/>
-        </condition>
-        <!-- Only ask once per ant run.  -->
-        <property name="font.donot.ask" value="set"/>
-    </target>
-    
-    <target name="get-font-jars" depends="ask-font" if="do.font.install">
-        
-        <available file="${download.dir}/${adobe.flex.dir}" type="dir"
-            property="adobe.flex.sdk.exists"/>
-        
-        <antcall target="get-adobe-flex-sdk"/>
-        
-        <copy todir="${lib.opt.dir}" verbose="true">
-            <fileset dir="${download.dir}/${adobe.flex.dir}/lib">
-                <include name="afe.jar" />
-                <include name="aglj40.jar" />
-                <include name="flex-fontkit.jar" />
-                <include name="rideau.jar" />
-            </fileset>
-        </copy>
-        
-        <copy file="${download.dir}/${adobe.flex.dir}/license-adobesdk.htm" 
-            tofile="${lib.opt.dir}/flex-fontkit-LICENSE.htm" verbose="true"/>
-        <copy file="${download.dir}/${adobe.flex.dir}/license-adobesdk.htm" 
-            tofile="${lib.opt.dir}/afe-LICENSE.htm" verbose="true"/>
-        <copy file="${download.dir}/${adobe.flex.dir}/license-adobesdk.htm" 
-            tofile="${lib.opt.dir}/aglj40-LICENSE.htm" verbose="true"/>
-        <copy file="${download.dir}/${adobe.flex.dir}/license-adobesdk.htm" 
-            tofile="${lib.opt.dir}/rideau.jar-LICENSE.htm" verbose="true"/>
-    </target>
-        	
-    <target name="echo-adobe-flex-sdk-license">       
-        <echo message="Adobe Flex SDK License Agreement:
-            ${line.separator}
-            ${line.separator}All files contained in this Adobe Flex SDK download are subject
to and governed by the
-            ${line.separator}Adobe Flex SDK License Agreement specified here: 
-            ${line.separator}    http://www.adobe.com/products/eulas/pdfs/adobe_flex_software_development_kit-combined-20110916_0930.pdf,

-            ${line.separator}By downloading, modifying, distributing, using and/or accessing
any files in this Adobe Flex SDK, 
-            ${line.separator}you agree to the terms and conditions of the applicable end
user license agreement.
-            ${line.separator}
-            ${line.separator}In addition to the Adobe license terms, you also agree to be
bound by the third-party terms specified here: 
-            ${line.separator}    http://www.adobe.com/products/eula/third_party/. 
-            ${line.separator}Adobe recommends that you review these third-party terms." />
-    </target>
-
-    <target name="get-adobe-flex-sdk" unless="adobe.flex.sdk.exists"
-        description="Downloads the Adobe Flex 4.6 SDK">
-        
-        <!--antcall target="download-zip">
-          <param name="download.dir" value="${download.dir}/${adobe.flex.dir}"/>
-          <param name="srcUrl" value="http://fpdownload.adobe.com/pub/flex/sdk/builds/flex4.6"/>
-          <param name="zipFile" value="flex_sdk_4.6.0.23201B.zip"/>
-        </antcall-->
-        
-        <mkdir dir="${download.dir}"/>        
-        <available file="${download.dir}/${adobe.flex.zip.file}" type="file"
-            property="adobe.flex.sdk.download.exists"/>
-            
-        <antcall target="download-adobe-flex-sdk" />
-        
-        <unzip src="${download.dir}/${adobe.flex.zip.file}" 
-            dest="${download.dir}/${adobe.flex.dir}">
-            <patternset>
-                <include name="license-adobesdk.htm"/>
-                <include name="lib/flex-messaging-common.jar"/>
-                <include name="lib/afe.jar" />
-                <include name="lib/aglj40.jar" />
-                <include name="lib/flex-fontkit.jar" />
-                <include name="lib/rideau.jar" />
-            </patternset>
-        </unzip>
-    </target>
-    
-    <target name="download-adobe-flex-sdk" unless="adobe.flex.sdk.download.exists" >
-        <get src="http://fpdownload.adobe.com/pub/flex/sdk/builds/flex4.6/${adobe.flex.zip.file}"

-            dest="${download.dir}/${adobe.flex.zip.file}"/>
-    </target>
-    
-    <target name="clean-adobe-flex-sdk">
-        <delete dir="${download.dir}/${adobe.flex.dir}"/>
-    </target>
-
-	<!--
-	   mpl_excludes
-	   
-        /lib/adt.jar
-        /lib/afe.jar - Adobe Font Engine
-        /lib/aglj40.jar - from Core Tech
-        /lib/flex-fontkit.jar
-        /lib/license.jar
-        /lib/rideau.jar - Adobe Core Java Utility Library (Rideau)
-        
-        xerces_{locale}.jar and batik_{locale}.jar 
-            localized messages for developers
-            sources in Perforce (Localalization)
-            languages match FlashBuilder although FB has now dropped some
-            
-        xerces-patch.jar
-            fixed line number issue and a unicode issue
-            used in conjunction with xerces.jar but could possibly combine into one jar
-	-->
-    
+    </target>    
 </project>



Mime
View raw message