| <?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="sdk_ide_install" default="install" basedir="."> |
| |
| <property name="FLEX_HOME" location="${basedir}"/> |
| |
| <!-- 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="${FLEX_HOME}/env.properties"/> |
| <property environment="env"/> |
| <property file="${FLEX_HOME}/local.properties"/> |
| <property file="${FLEX_HOME}/build.properties"/> |
| <property name="bundle" value="en_US" /> |
| <property file="${FLEX_HOME}/installer.properties/${bundle}.properties"/> |
| <property file="${FLEX_HOME}/installer.properties/en_US.properties"/> |
| <property name="download.dir" value="${FLEX_HOME}/in"/> |
| |
| <property name="air.sdk.version" value="3.9"/> |
| <property name="flash.sdk.version" value="11.9"/> |
| |
| <property name="xml.properties" value="http://flex.apache.org/installer/sdk-installer-config-4.0.xml" /> |
| |
| <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="AIRDownloadEcho" value="${INFO_DOWNLOADING_AIR_RUNTIME_KIT_WINDOWS}"> |
| <os family="windows" /> |
| </condition> |
| <property name="AIRDownloadEcho" value="${INFO_DOWNLOADING_AIR_RUNTIME_KIT_MAC}" /> |
| |
| <condition property="air.donot.ask" value="true"> |
| <isset property="installer" /> |
| </condition> |
| <condition property="flash.donot.ask" value="true"> |
| <isset property="installer" /> |
| </condition> |
| <condition property="swfobject.donot.ask" value="true"> |
| <isset property="installer" /> |
| </condition> |
| <condition property="osmf.donot.ask" value="true"> |
| <isset property="installer" /> |
| </condition> |
| <condition property="fontswf.donot.ask" value="true"> |
| <isset property="installer" /> |
| </condition> |
| <condition property="blazeds.donot.ask" value="true"> |
| <isset property="installer" /> |
| </condition> |
| |
| <condition property="flash.version.changed" value="true"> |
| <not> |
| <equals arg1="${playerglobal.version}" arg2="${flash.sdk.version}" /> |
| </not> |
| </condition> |
| <condition property="air.version.changed" value="true"> |
| <not> |
| <equals arg1="${air.version}" arg2="${air.sdk.version}" /> |
| </not> |
| </condition> |
| |
| <condition property="java.home" value="${env.JAVA_HOME}" > |
| <and> |
| <available file="${env.JAVA_HOME}" type="dir" /> |
| <not> |
| <equals arg1="" arg2="${env.JAVA_HOME}" /> |
| </not> |
| </and> |
| </condition> |
| |
| <target name="get-data" > |
| <property name="do-not-cache-next-get" value="true" /> |
| <get src="${xml.properties}" dest="${basedir}/sdk-installer-config-4.0.xml" /> |
| <xmlproperty file="${basedir}/sdk-installer-config-4.0.xml" semanticAttributes="true" collapseAttributes="true"/> |
| <property name="air.sdk.url.path.ref" value="air.sdk.path.${platform}.${air.sdk.version}" /> |
| <property name="air.sdk.url.path" refid="${air.sdk.url.path.ref}" /> |
| <property name="air.sdk.url.file.ref" value="air.sdk.file.${platform}.${air.sdk.version}" /> |
| <property name="air.sdk.url.file" refid="${air.sdk.url.file.ref}" /> |
| <property name="flash.sdk.url.path.ref" value="flash.sdk.path.${flash.sdk.version}" /> |
| <property name="flash.sdk.url.path" refid="${flash.sdk.url.path.ref}" /> |
| <property name="flash.sdk.url.file.ref" value="flash.sdk.file.${flash.sdk.version}" /> |
| <property name="flash.sdk.url.file" refid="${flash.sdk.url.file.ref}" /> |
| <property name="flash.sdk.swfversion.ref" value="flash.sdk.swfversion.${flash.sdk.version}" /> |
| <property name="flash.sdk.swfversion" refid="${flash.sdk.swfversion.ref}" /> |
| <property name="flash.sdk.default.swfversion.ref" value="flash.sdk.swfversion.${playerglobal.version}" /> |
| <property name="flash.sdk.default.swfversion" refid="${flash.sdk.default.swfversion.ref}" /> |
| <condition property="flash.swfversion.changed" value="true"> |
| <not> |
| <equals arg1="${flash.sdk.swfversion}" arg2="${flash.sdk.default.swfversion}" /> |
| </not> |
| </condition> |
| </target> |
| |
| <target name="install" depends="get-data,check-binary,ask-licenses,get-third-party-files,fixup-config-files" description="Converts binary package to IDE compatible folder"> |
| <echo>${install.complete.echo}</echo> |
| </target> |
| |
| <target name="check-binary" description="Make sure this is a binary package"> |
| <fail message="${basedir} is not an Flex binary package"> |
| <condition> |
| <not> |
| <available file="${basedir}/frameworks/libs/framework.swc" /> |
| </not> |
| </condition> |
| </fail> |
| <fail message="${basedir} is not an Flex binary package and is probably a git repo"> |
| <condition> |
| <available file="$[basedir}/.gitignore" /> |
| </condition> |
| </fail> |
| </target> |
| |
| <target name="ask-licenses" depends="ask-air,ask-flash,ask-swfobject,ask-adobe-osmf,ask-adobe-fontswf,ask-adobe-blazeds" description="Ask about the various licenses"> |
| </target> |
| |
| <target name="ask-air" unless="air.donot.ask" |
| description="Prompt the user before downloading AIR"> |
| |
| <input |
| message="${air.prompt.text}" |
| validargs="${yes.no.prompts}" |
| defaultvalue="${no}" |
| addproperty="input.air.download"/> |
| <condition property="do.air.install"> |
| <equals arg1="${yes}" arg2="${input.air.download}"/> |
| </condition> |
| <!-- Only ask once per ant run. --> |
| <property name="air.donot.ask" value="set"/> |
| </target> |
| |
| <target name="ask-flash" unless="flash.donot.ask" |
| description="Prompt the user before downloading playerglobal.swc"> |
| |
| <input |
| message="${flash.prompt.text}" |
| validargs="${yes.no.prompts}" |
| defaultvalue="${no}" |
| addproperty="input.flash.download"/> |
| <condition property="do.flash.install"> |
| <equals arg1="${yes}" arg2="${input.flash.download}"/> |
| </condition> |
| <!-- Only ask once per ant run. --> |
| <property name="flash.donot.ask" value="set"/> |
| </target> |
| |
| <target name="ask-swfobject" unless="swfobject.donot.ask" |
| description="Prompt the user before downloading SWFObject"> |
| |
| <input |
| message="${swfobject.prompt.text}" |
| validargs="${yes.no.prompts}" |
| defaultvalue="${no}" |
| addproperty="input.swfobject.download"/> |
| <condition property="do.swfobject.install"> |
| <equals arg1="${yes}" arg2="${input.swfobject.download}"/> |
| </condition> |
| <!-- Only ask once per ant run. --> |
| <property name="swfobject.donot.ask" value="set"/> |
| </target> |
| |
| <target name="ask-adobe-osmf" unless="osmf.donot.ask" |
| description="Prompt the user before downloading OSMF"> |
| |
| <input |
| message="${osmf.prompt.text}" |
| validargs="${yes.no.prompts}" |
| defaultvalue="${no}" |
| addproperty="input.osmf.download"/> |
| <condition property="do.osmf.install"> |
| <equals arg1="${yes}" arg2="${input.osmf.download}"/> |
| </condition> |
| <!-- Only ask once per ant run. --> |
| <property name="osmf.donot.ask" value="set"/> |
| </target> |
| |
| <target name="ask-adobe-fontswf" unless="fontswf.donot.ask" |
| description="Prompt the user before downloading FontSWF"> |
| |
| <input |
| message="${fontswf.prompt.text}" |
| validargs="${yes.no.prompts}" |
| defaultvalue="${no}" |
| addproperty="input.fontswf.download"/> |
| <condition property="do.fontswf.install"> |
| <equals arg1="${yes}" arg2="${input.fontswf.download}"/> |
| </condition> |
| <!-- Only ask once per ant run. --> |
| <property name="fontswf.donot.ask" value="set"/> |
| </target> |
| |
| <target name="ask-adobe-blazeds" unless="blazeds.donot.ask" |
| description="Prompt the user before downloading BlazeDS"> |
| |
| <input |
| message="${blazeds.prompt.text}" |
| validargs="${yes.no.prompts}" |
| defaultvalue="${no}" |
| addproperty="input.blazeds.download"/> |
| <condition property="do.blazeds.install"> |
| <equals arg1="${yes}" arg2="${input.blazeds.download}"/> |
| </condition> |
| <!-- Only ask once per ant run. --> |
| <property name="blazeds.donot.ask" value="set"/> |
| </target> |
| |
| <target name="get-third-party-files" depends="air-download,flash-download,swfobject-download,osmf-download,fontswf-download,blazeds-download" /> |
| |
| <target name="air-check" description="Checks if AIR SDK has been downloaded."> |
| <available file="${FLEX_HOME}/lib/adt.jar" property="air.jar.present"/> |
| </target> |
| |
| <target name="air-download" depends="air-check" unless="air.jar.present" |
| description="Downloads AIR SDK and copies to correct locations"> |
| |
| <mkdir dir="${download.dir}"/> |
| <antcall target="air-get" /> |
| |
| <antcall target="air-setup-win" /> |
| <antcall target="air-setup-mac" /> |
| |
| </target> |
| |
| <target name="air-get-check" > |
| <available file="${download.dir}/${air.sdk.url.file}" property="air.downloaded" /> |
| </target> |
| |
| <target name="air-get" depends="air-get-check" unless="air.downloaded" > |
| <echo>${AIRDownloadEcho} ${air.sdk.url.path}/${air.sdk.url.file}</echo> |
| <get src="${air.sdk.url.path}/${air.sdk.url.file}" |
| dest="${download.dir}/${air.sdk.url.file}" |
| verbose="false"/> |
| </target> |
| |
| <target name="air-setup-win" if="isWindows"> |
| <unzip src="${download.dir}/${air.sdk.url.file}" dest="${download.dir}/airsdk" /> |
| <echo>${INFO_FINISHED_UNZIPPING} ${download.dir}/${air.sdk.url.file}</echo> |
| <copy todir="${FLEX_HOME}" overwrite="true"> |
| <fileset dir="${download.dir}/airsdk"> |
| <include name="AIR SDK license.pdf" /> |
| <include name="AIR SDK Readme.txt" /> |
| <include name="bin/adl.exe" /> |
| <include name="bin/adl" /> |
| <include name="bin/adl.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/**" /> |
| </fileset> |
| </copy> |
| </target> |
| |
| <target name="air-setup-mac" unless="isWindows"> |
| <!--The tbz2 contains symlinks which Ant does not preserve |
| <untar compression="bzip2" src="${download.dir}/${air.sdk.url.file}" dest="${download.dir}/airsdk" />--> |
| <mkdir dir="${download.dir}/airsdk" /> |
| <move file="${download.dir}/${air.sdk.url.file}" todir="${download.dir}/airsdk" /> |
| <exec executable="bunzip2" dir="${download.dir}/airsdk" > |
| <arg value="${air.sdk.url.file}" /> |
| </exec> |
| <echo file="${basedir}/airtar.properties">air.tar.name=${air.sdk.url.file}</echo> |
| <replace file="${basedir}/airtar.properties" token="tbz2" value="tar" /> |
| <property file="${basedir}/airtar.properties" /> |
| <exec executable="tar" dir="${download.dir}/airsdk" > |
| <arg value="-xvf" /> |
| <arg value="${air.tar.name}" /> |
| </exec> |
| <echo>${INFO_FINISHED_UNTARING} ${download.dir}/airsdk/${air.tar.name}</echo> |
| <delete file="${basedir}/airtar.properties" /> |
| <antcall target="mac-copy-file"> |
| <param name="srcdir" value="." /> |
| <param name="filename" value="AIR SDK license.pdf"/> |
| <param name="destdir" value="${FLEX_HOME}" /> |
| </antcall> |
| <antcall target="mac-copy-file"> |
| <param name="srcdir" value="." /> |
| <param name="filename" value="AIR SDK Readme.txt"/> |
| <param name="destdir" value="${FLEX_HOME}" /> |
| </antcall> |
| <antcall target="mac-copy-file"> |
| <param name="srcdir" value="bin" /> |
| <param name="filename" value="adl"/> |
| <param name="destdir" value="${FLEX_HOME}/bin" /> |
| </antcall> |
| <antcall target="mac-copy-file"> |
| <param name="srcdir" value="lib" /> |
| <param name="filename" value="adt.jar"/> |
| <param name="destdir" value="${FLEX_HOME}/lib" /> |
| </antcall> |
| <antcall target="mac-copy-file"> |
| <param name="srcdir" value="samples" /> |
| <param name="filename" value="descriptor-sample.xml"/> |
| <param name="destdir" value="${FLEX_HOME}/samples" /> |
| </antcall> |
| <antcall target="mac-copy-dir"> |
| <param name="srcdir" value="frameworks/libs/air" /> |
| <param name="destdir" value="${FLEX_HOME}/frameworks/libs" /> |
| </antcall> |
| <antcall target="mac-copy-dir"> |
| <param name="srcdir" value="frameworks/projects/air" /> |
| <param name="destdir" value="${FLEX_HOME}/frameworks/projects" /> |
| </antcall> |
| <antcall target="mac-copy-dir"> |
| <param name="srcdir" value="include" /> |
| <param name="destdir" value="${FLEX_HOME}" /> |
| </antcall> |
| <antcall target="mac-copy-dir-if-exists"> |
| <param name="srcdir" value="install/android" /> |
| <param name="destdir" value="${FLEX_HOME}/install" /> |
| </antcall> |
| <antcall target="mac-copy-dir"> |
| <param name="srcdir" value="lib/android" /> |
| <param name="destdir" value="${FLEX_HOME}/lib" /> |
| </antcall> |
| <antcall target="mac-copy-dir"> |
| <param name="srcdir" value="lib/aot" /> |
| <param name="destdir" value="${FLEX_HOME}/lib" /> |
| </antcall> |
| <antcall target="mac-copy-dir"> |
| <param name="srcdir" value="lib/nai" /> |
| <param name="destdir" value="${FLEX_HOME}/lib" /> |
| </antcall> |
| <antcall target="mac-copy-dir"> |
| <param name="srcdir" value="runtimes" /> |
| <param name="destdir" value="${FLEX_HOME}" /> |
| </antcall> |
| <antcall target="mac-copy-dir"> |
| <param name="srcdir" value="samples/badge" /> |
| <param name="destdir" value="${FLEX_HOME}/samples" /> |
| </antcall> |
| <antcall target="mac-copy-dir"> |
| <param name="srcdir" value="samples/icons" /> |
| <param name="destdir" value="${FLEX_HOME}/samples" /> |
| </antcall> |
| <antcall target="mac-copy-dir"> |
| <param name="srcdir" value="templates/air" /> |
| <param name="destdir" value="${FLEX_HOME}/templates" /> |
| </antcall> |
| </target> |
| |
| <target name="mac-copy-file" description="copies a file"> |
| <mkdir dir="${destdir}" /> |
| <exec executable="cp" dir="${FLEX_HOME}"> |
| <arg value="-p" /> |
| <arg value="${download.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="${FLEX_HOME}"> |
| <arg value="--archive" /> |
| <arg value="--ignore-existing" /> |
| <arg value="--force" /> |
| <arg value="${download.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="${FLEX_HOME}"> |
| <arg value="--archive" /> |
| <arg value="--ignore-existing" /> |
| <arg value="--force" /> |
| <arg value="${download.dir}/airsdk/${srcdir}"/> |
| <arg value="${destdir}" /> |
| </exec> |
| </target> |
| |
| <target name="mac-check-exists"> |
| <available file="${download.dir}/airsdk/${srcdir}" type="dir" property="${srcdir}.exists" /> |
| </target> |
| |
| <!-- Because this requires a network connection it downloads Flash SDK only if it doesn't already exist. --> |
| <target name="flash-check" description="Checks if Flash SDK has been downloaded."> |
| <available file="${FLEX_HOME}/frameworks/libs/player/${flash.sdk.version}/playerglobal.swc" property="flash.swc.present"/> |
| </target> |
| |
| <target name="flash-download" depends="flash-check" unless="flash.swc.present" |
| description="Downloads playerglobal.swc and copies to correct locations"> |
| |
| <mkdir dir="${download.dir}"/> |
| <mkdir dir="${FLEX_HOME}/frameworks/libs/player/${flash.sdk.version}"/> |
| <echo>${INFO_INSTALLING_PLAYERGLOBAL_SWC} ${flash.sdk.url.path}/${flash.sdk.url.file}</echo> |
| <get src="${flash.sdk.url.path}/${flash.sdk.url.file}" |
| dest="${FLEX_HOME}/frameworks/libs/player/${flash.sdk.version}/playerglobal.swc" |
| verbose="false"/> |
| </target> |
| |
| <!-- swfobject.js (Version 2.2) --> |
| <!-- Because this requires a network connection it downloads SWFObject only if it doesn't already exist. --> |
| <target name="swfobject-check" description="Checks if SWFObject has been downloaded."> |
| <available file="${basedir}/../templates/swfobject/swfobject.js" property="swfobject.js.present"/> |
| </target> |
| |
| <target name="swfobject-download" depends="swfobject-check" unless="swfobject.js.present" |
| description="Copies SWFObject from code.google.com"> |
| |
| <echo file="${basedir}/swfobject.properties">swfobject.echo=${INFO_DOWNLOADING_FILE_FROM}</echo> |
| <replace file="${basedir}/swfobject.properties" token="{0}" value="swfobject_2_2.zip" /> |
| <replace file="${basedir}/swfobject.properties" token="{1}" value="http://swfobject.googlecode.com/files" /> |
| <property file="${basedir}/swfobject.properties" /> |
| <delete file="${basedir}/swfobject.properties" /> |
| <echo>${swfobject.echo}</echo> |
| |
| <mkdir dir="${download.dir}"/> |
| <get src="http://swfobject.googlecode.com/files/swfobject_2_2.zip" |
| dest="${download.dir}/swfobject_2_2.zip" |
| verbose="false"/> |
| |
| <echo>${INFO_DOWNLOADED}</echo> |
| <unzip src="${download.dir}/swfobject_2_2.zip" dest="${FLEX_HOME}/templates"> |
| <patternset> |
| <include name="swfobject/expressInstall.swf"/> |
| <include name="swfobject/swfobject.js"/> |
| </patternset> |
| </unzip> |
| </target> |
| |
| <!-- osmf (Version 2.0) --> |
| <!-- Because this requires a network connection it downloads OSMF only if it doesn't already exist. --> |
| <target name="osmf-check" description="Checks if OSMF has been downloaded."> |
| <available file="${basedir}/frameworks/libs/osmf.swc" property="osmf.swc.present"/> |
| </target> |
| |
| <target name="osmf-download" depends="osmf-check" unless="osmf.swc.present" |
| description="Copies OSMF from Open@Adobe"> |
| |
| <echo file="${basedir}/osmf.properties">osmf.echo=${INFO_DOWNLOADING_FILE_FROM}</echo> |
| <replace file="${basedir}/osmf.properties" token="{0}" value="OSMF.swc" /> |
| <replace file="${basedir}/osmf.properties" token="{1}" value="http://downloads.sourceforge.net/project/osmf.adobe/OSMF%202.0%20Release%20%28final%20source%2C%20ASDocs%2C%20pdf%20guides%20and%20release%20notes%29" /> |
| <property file="${basedir}/osmf.properties" /> |
| <delete file="${basedir}/osmf.properties" /> |
| <echo>${osmf.echo}</echo> |
| |
| <mkdir dir="${basedir}/frameworks/libs/"/> |
| <get src="http://downloads.sourceforge.net/project/osmf.adobe/OSMF%202.0%20Release%20%28final%20source%2C%20ASDocs%2C%20pdf%20guides%20and%20release%20notes%29/OSMF.swc" |
| dest="${basedir}/frameworks/libs/OSMF.swc" |
| verbose="false"/> |
| |
| </target> |
| |
| <!-- fontswf --> |
| <!-- Because this requires a network connection it downloads only if it doesn't already exist. --> |
| <target name="fontswf-check" description="Checks if fontswf has been downloaded."> |
| <condition property="fontswf.jars.present"> |
| <and> |
| <available file="${basedir}/lib/external/optional/afe.jar" /> |
| <available file="${basedir}/lib/external/optional/aglj40.jar" /> |
| <available file="${basedir}/lib/external/optional/flex-fontkit.jar" /> |
| <available file="${basedir}/lib/external/optional/rideau.jar" /> |
| </and> |
| </condition> |
| </target> |
| |
| <target name="fontswf-download" depends="fontswf-check" unless="fontswf.jars.present" |
| description="Copies OSMF from Open@Adobe"> |
| |
| <echo file="${basedir}/afe.properties">afe.echo=${INFO_DOWNLOADING_FILE_FROM}</echo> |
| <replace file="${basedir}/afe.properties" token="{0}" value="afe.jar" /> |
| <replace file="${basedir}/afe.properties" token="{1}" value="http://opensource.adobe.com/svn/opensource/flex/sdk/branches/4.y/lib" /> |
| <property file="${basedir}/afe.properties" /> |
| <delete file="${basedir}/afe.properties" /> |
| <echo>${afe.echo}</echo> |
| |
| <mkdir dir="${basedir}/lib/external/optional"/> |
| <get src="http://opensource.adobe.com/svn/opensource/flex/sdk/branches/4.y/lib/afe.jar" |
| dest="${basedir}/lib/external/optional/afe.jar" |
| verbose="false"/> |
| |
| <echo file="${basedir}/agl.properties">agl.echo=${INFO_DOWNLOADING_FILE_FROM}</echo> |
| <replace file="${basedir}/agl.properties" token="{0}" value="aglj40.jar" /> |
| <replace file="${basedir}/agl.properties" token="{1}" value="http://opensource.adobe.com/svn/opensource/flex/sdk/branches/4.y/lib" /> |
| <property file="${basedir}/agl.properties" /> |
| <delete file="${basedir}/agl.properties" /> |
| <echo>${agl.echo}</echo> |
| |
| <get src="http://opensource.adobe.com/svn/opensource/flex/sdk/branches/4.y/lib/aglj40.jar" |
| dest="${basedir}/lib/external/optional/aglj40.jar" |
| verbose="false"/> |
| |
| <echo file="${basedir}/fontkit.properties">fontkit.echo=${INFO_DOWNLOADING_FILE_FROM}</echo> |
| <replace file="${basedir}/fontkit.properties" token="{0}" value="flex-fontkit.jar" /> |
| <replace file="${basedir}/fontkit.properties" token="{1}" value="http://opensource.adobe.com/svn/opensource/flex/sdk/branches/4.y/lib" /> |
| <property file="${basedir}/fontkit.properties" /> |
| <delete file="${basedir}/fontkit.properties" /> |
| <echo>${fontkit.echo}</echo> |
| |
| <get src="http://opensource.adobe.com/svn/opensource/flex/sdk/branches/4.y/lib/flex-fontkit.jar" |
| dest="${basedir}/lib/external/optional/flex-fontkit.jar" |
| verbose="false"/> |
| |
| |
| <echo file="${basedir}/rideau.properties">rideau.echo=${INFO_DOWNLOADING_FILE_FROM}</echo> |
| <replace file="${basedir}/rideau.properties" token="{0}" value="rideau.jar" /> |
| <replace file="${basedir}/rideau.properties" token="{1}" value="http://opensource.adobe.com/svn/opensource/flex/sdk/branches/4.y/lib" /> |
| <property file="${basedir}/rideau.properties" /> |
| <delete file="${basedir}/rideau.properties" /> |
| <echo>${rideau.echo}</echo> |
| |
| <get src="http://opensource.adobe.com/svn/opensource/flex/sdk/branches/4.y/lib/rideau.jar" |
| dest="${basedir}/lib/external/optional/rideau.jar" |
| verbose="false"/> |
| |
| <!-- fontkit expects swfutils in the same folder --> |
| <copy file="${basedir}/lib/swfutils.jar" tofile="${basedir}/lib/external/optional/swfutils.jar" /> |
| </target> |
| |
| <!-- BlazeDS --> |
| <!-- Because this requires a network connection it downloads BlazeDS only if it doesn't already exist. --> |
| <target name="blazeds-check" description="Checks if BlazeDS has been downloaded."> |
| <available file="${basedir}/external/optional/flex-messaging-common.jar" property="blazeds.jar.present"/> |
| </target> |
| |
| <target name="blazeds-download" depends="blazeds-check" unless="blazeds.jar.present" |
| description="Copies BlazeDS from Open@Adobe"> |
| |
| <echo file="${basedir}/blaze.properties">blaze.echo=${INFO_DOWNLOADING_FILE_FROM}</echo> |
| <replace file="${basedir}/blaze.properties" token="{0}" value="flex-messaging-common.jar" /> |
| <replace file="${basedir}/blaze.properties" token="{1}" value="http://opensource.adobe.com/svn/opensource/flex/sdk/branches/4.y/lib" /> |
| <property file="${basedir}/blaze.properties" /> |
| <delete file="${basedir}/blaze.properties" /> |
| <echo>${blaze.echo}</echo> |
| |
| <mkdir dir="${basedir}/lib/external/optional"/> |
| <get src="http://opensource.adobe.com/svn/opensource/flex/sdk/branches/4.y/lib/flex-messaging-common.jar" |
| dest="${basedir}/lib/external/optional/flex-messaging-common.jar" |
| verbose="false"/> |
| </target> |
| |
| |
| <target name="fixup-config-files" depends="flex-sdk-description-flash,flex-sdk-description-air"> |
| <echo>${INFO_INSTALLING_CONFIG_FILES}</echo> |
| <antcall target="fixup-config-files-version" /> |
| <antcall target="fixup-config-files-swfversion" /> |
| <replace file="${FLEX_HOME}/frameworks/flex-config.xml"> |
| <replacefilter token="{playerglobalHome}" |
| value="libs/player"/> |
| </replace> |
| <replace file="${FLEX_HOME}/frameworks/air-config.xml"> |
| <replacefilter token="{airHome}/frameworks/libs" |
| value="libs"/> |
| </replace> |
| <replace file="${FLEX_HOME}/frameworks/airmobile-config.xml"> |
| <replacefilter token="{airHome}/frameworks/libs" |
| value="libs"/> |
| </replace> |
| </target> |
| |
| <target name="fixup-config-files-version" if="flash.version.changed"> |
| <replace file="${FLEX_HOME}/frameworks/flex-config.xml"> |
| <replacefilter token="<target-player>${playerglobal.version}</target-player>" |
| value="<target-player>${flash.sdk.version}</target-player>"/> |
| </replace> |
| <replace file="${FLEX_HOME}/frameworks/air-config.xml"> |
| <replacefilter token="<target-player>${playerglobal.version}</target-player>" |
| value="<target-player>${flash.sdk.version}</target-player>"/> |
| </replace> |
| <replace file="${FLEX_HOME}/frameworks/airmobile-config.xml"> |
| <replacefilter token="<target-player>${playerglobal.version}</target-player>" |
| value="<target-player>${flash.sdk.version}</target-player>"/> |
| </replace> |
| </target> |
| |
| <target name="fixup-config-files-swfversion" if="flash.swfversion.changed"> |
| <replace file="${FLEX_HOME}/frameworks/flex-config.xml"> |
| <replacefilter token="<swf-version>${flash.sdk.default.swfversion}</swf-version>" |
| value="<swf-version>${flash.sdk.swfversion}</swf-version>"/> |
| </replace> |
| <replace file="${FLEX_HOME}/frameworks/air-config.xml"> |
| <replacefilter token="<swf-version>${flash.sdk.default.swfversion}</swf-version>" |
| value="<swf-version>${flash.sdk.swfversion}</swf-version>"/> |
| </replace> |
| <replace file="${FLEX_HOME}/frameworks/airmobile-config.xml"> |
| <replacefilter token="<swf-version>${flash.sdk.default.swfversion}</swf-version>" |
| value="<swf-version>${flash.sdk.swfversion}</swf-version>"/> |
| </replace> |
| </target> |
| |
| <target name="flex-sdk-description-flash" if="flash.version.changed"> |
| <replace file="${FLEX_HOME}/flex-sdk-description.xml"> |
| <replacefilter token="FP${playerglobal.version}" |
| value="FP${flash.sdk.version}"/> |
| </replace> |
| </target> |
| <target name="flex-sdk-description-air" if="air.version.changed"> |
| <replace file="${FLEX_HOME}/flex-sdk-description.xml"> |
| <replacefilter token="AIR${air.version}" |
| value="AIR${air.sdk.version}"/> |
| </replace> |
| </target> |
| |
| </project> |