incubator-flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cframp...@apache.org
Subject svn commit: r1337404 - in /incubator/flex/trunk: build.xml ide/flashbuilder/ ide/flashbuilder/makeApacheFlexForFlashBuilder.sh
Date Fri, 11 May 2012 22:45:03 GMT
Author: cframpton
Date: Fri May 11 22:45:03 2012
New Revision: 1337404

URL: http://svn.apache.org/viewvc?rev=1337404&view=rev
Log:
First crack at a script for mac which will combine the Apache Flex SDK with the AIR SDK, playerglobal.swc
and preconfigured frameworks config files.

Added:
    incubator/flex/trunk/ide/flashbuilder/makeApacheFlexForFlashBuilder.sh   (with props)
Modified:
    incubator/flex/trunk/build.xml
    incubator/flex/trunk/ide/flashbuilder/   (props changed)

Modified: incubator/flex/trunk/build.xml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/build.xml?rev=1337404&r1=1337403&r2=1337404&view=diff
==============================================================================
--- incubator/flex/trunk/build.xml (original)
+++ incubator/flex/trunk/build.xml Fri May 11 22:45:03 2012
@@ -400,7 +400,7 @@
         <!-- ide -->
         <copy todir="${basedir}/temp/ide">
             <fileset dir="${basedir}/ide" >
-                <include name="flashbuilder/build.xml"/>
+                <include name="flashbuilder/**"/>
             </fileset>
         </copy>
 
@@ -665,7 +665,7 @@
         <!-- ide -->
         <copy todir="${basedir}/temp/ide">
             <fileset dir="${basedir}/ide" >
-                <include name="flashbuilder/frameworks/*-config.xml"/>
+                <include name="flashbuilder/config"/>
             </fileset>
         </copy>
 

Propchange: incubator/flex/trunk/ide/flashbuilder/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Fri May 11 22:45:03 2012
@@ -1 +1 @@
-frameworks
+config

Added: incubator/flex/trunk/ide/flashbuilder/makeApacheFlexForFlashBuilder.sh
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/ide/flashbuilder/makeApacheFlexForFlashBuilder.sh?rev=1337404&view=auto
==============================================================================
--- incubator/flex/trunk/ide/flashbuilder/makeApacheFlexForFlashBuilder.sh (added)
+++ incubator/flex/trunk/ide/flashbuilder/makeApacheFlexForFlashBuilder.sh Fri May 11 22:45:03
2012
@@ -0,0 +1,89 @@
+#!/bin/sh -e
+
+################################################################################
+##
+##  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.
+##
+################################################################################
+
+# This script should be used to create an Apache Flex SDK that has the
+# directory structure that the Adobe Flash Player IDE expects.
+#
+# The Adobe AIR SDK and the Adobe Flash Player playerglobal.swc are integrated
+# into the directory structure.  The paths in the framework configuration files are 
+# modified to reflect this.  The AIR_HOME and PLAYERGLOBAL_HOME environment variables are

+# not required because the locations of these pieces are known.
+#
+# Usage: makeApacheFlexForFlashBuilder [sdk directory]
+#
+
+# Edit these constants if you would like to download from alternative locations.
+
+# Apache Flex binary distribution
+APACHE_FLEX_BIN_DISTRO_URL=http://people.apache.org/~cframpton/ApacheFlexRC/current/apache-flex-sdk-4.8.0-incubating-bin.zip
+
+# Adobe AIR SDK Version 3.1
+ADOBE_AIR_SDK_MAC_URL=http://airdownload.adobe.com/air/mac/download/3.1/AdobeAIRSDK.tbz2
+ADOBE_AIR_SDK_WIN_URL=http://airdownload.adobe.com/air/win/download/3.1/AdobeAIRSDK.zip
+
+# Adobe Flash Player Version 11.1
+ADOBE_FLASHPLAYER_GLOBALPLAYER_SWC_URL=http://fpdownload.macromedia.com/get/flashplayer/updaters/11/playerglobal11_1.swc
+
+FLEX_HOME="$1"
+
+if [ "$FLEX_HOME" = "" ] ; then
+    echo "Usage: $0 [directory to build the Apache Flex SDK for Adobe Flash Builder]"
+    exit 1;
+fi
+
+# make sure the directory for the Apache Flex SDK exists
+mkdir -p "$FLEX_HOME"
+
+# put the downloads here
+tempDir="$FLEX_HOME"/temp
+mkdir -p "$tempDir"
+
+# the names of the tar/zip files
+APACHE_FLEX_BIN_DISTRO_FILE=`basename "${APACHE_FLEX_BIN_DISTRO_URL}"`
+ADOBE_AIR_SDK_MAC_FILE=`basename "${ADOBE_AIR_SDK_MAC_URL}"`
+ADOBE_AIR_SDK_WIN_FILE=`basename "${ADOBE_AIR_SDK_WIN_URL}"`
+
+# 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 the AIR Integration Kit for Mac
+echo "Downloading the Adobe AIR Integration Kit for Mac from $ADOBE_AIR_SDK_MAC_URL"
+curl "$ADOBE_AIR_SDK_MAC_URL" --output "$tempDir/$ADOBE_AIR_SDK_MAC_FILE"
+tar xf "$tempDir/$ADOBE_AIR_SDK_MAC_FILE" -C "$FLEX_HOME"
+
+# download the AIR Integration Kit for Windows
+echo "Downloading the Adobe AIR Integration Kit for Windows from $ADOBE_AIR_SDK_WIN_URL"
+curl "$ADOBE_AIR_SDK_WIN_URL" --output "$tempDir/$ADOBE_AIR_SDK_WIN_FILE"
+tar xf "$tempDir/$ADOBE_AIR_SDK_WIN_FILE" -C "$FLEX_HOME"
+
+# download playerglobal.swc
+echo "Downloading Adobe Flash Player playerglobal.swc from $ADOBE_FLASHPLAYER_GLOBALPLAYER_SWC_URL"
+mkdir -p "$FLEX_HOME/frameworks/libs/player/11.1"
+curl "$ADOBE_FLASHPLAYER_GLOBALPLAYER_SWC_URL" --output "$FLEX_HOME/frameworks/libs/player/11.1/playerglobal.swc"
--silent
+
+# copy the config files formatted for Flash Builder to frameworks 
+#echo "Install the frameworks config file configured for use with Adobe Flash Builder"
+cp -p -v "$FLEX_HOME"/ide/flashbuilder/config/*-config.xml "$FLEX_HOME/frameworks"
+
+# remove the zipped kits
+rm -rf "$tempDir"
\ No newline at end of file

Propchange: incubator/flex/trunk/ide/flashbuilder/makeApacheFlexForFlashBuilder.sh
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/flex/trunk/ide/flashbuilder/makeApacheFlexForFlashBuilder.sh
------------------------------------------------------------------------------
    svn:executable = *



Mime
View raw message