Return-Path: X-Original-To: apmail-incubator-flex-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-flex-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8628ABA4F for ; Sun, 22 Jan 2012 15:20:00 +0000 (UTC) Received: (qmail 25022 invoked by uid 500); 22 Jan 2012 15:20:00 -0000 Delivered-To: apmail-incubator-flex-dev-archive@incubator.apache.org Received: (qmail 24958 invoked by uid 500); 22 Jan 2012 15:20:00 -0000 Mailing-List: contact flex-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: flex-dev@incubator.apache.org Delivered-To: mailing list flex-dev@incubator.apache.org Received: (qmail 24950 invoked by uid 99); 22 Jan 2012 15:20:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 22 Jan 2012 15:20:00 +0000 X-ASF-Spam-Status: No, hits=1.8 required=5.0 tests=HTML_FONT_FACE_BAD,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of joan.llenas.maso@gmail.com designates 74.125.82.43 as permitted sender) Received: from [74.125.82.43] (HELO mail-ww0-f43.google.com) (74.125.82.43) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 22 Jan 2012 15:19:53 +0000 Received: by wgbdt11 with SMTP id dt11so6478936wgb.0 for ; Sun, 22 Jan 2012 07:19:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=AoDyfl8PUl9OnUuFWCQUVLUFv6XILR4anCVM6it37D0=; b=XSzmU3PLbtxhHKmPACQuUadaQP43J0VXYp7DHQbb+/a86wHqJ8/shUz0lOoo3MUcNP qh8rvhTkg9Pt+xIl9VIzzoLsC+t44ShZrgRMxFaqb/lfKLDMqFCjbA47m37VGKmCnnm6 KTrgSpa44nEqmX0Aw7HlKujpCREGPZQFmWfrk= Received: by 10.181.13.208 with SMTP id fa16mr7964081wid.12.1327245573201; Sun, 22 Jan 2012 07:19:33 -0800 (PST) MIME-Version: 1.0 Received: by 10.227.32.133 with HTTP; Sun, 22 Jan 2012 07:19:12 -0800 (PST) In-Reply-To: References: From: =?UTF-8?Q?Joan_Llenas_Mas=C3=B3?= Date: Sun, 22 Jan 2012 16:19:12 +0100 Message-ID: Subject: Re: A newbie's guide to building the SDK (and a question) To: flex-dev@incubator.apache.org Content-Type: multipart/alternative; boundary=f46d043c7de4eb9d7304b71f7014 X-Virus-Checked: Checked by ClamAV on apache.org --f46d043c7de4eb9d7304b71f7014 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I'm hoping to see these contribuitions in the wiki as soon as it is ready ;= ) -- Joan Llenas Mas=C3=B3 http://joan.garnet.io @joangarnet (es) @joanllenas (en) On Sun, Jan 22, 2012 at 11:35, Fr=C3=A9d=C3=A9ric Thomas wrote: > Hi, > > > Due to my bad mailer and some erratum, I post here a corrected and cleare= r > version, I hope. > > > > I just built and installed the current ApacheFlex SDK in my Maven Local > Repository on Windows 7, here are the instructions to reproduce. > > (Note : I was able to successfully run it against a modular Java/Flex > application using FlexBuilder 4.6 and Maven 3.0.3.The convention for the > version has not been established yet, some have been proposed, I gonna > follow one of them '2012.0.1') > > > It's based on the Erik instructions from the previous post with some > adaptations and the Conrad blog post at http://www.dz015.com/?p=3D346 for > Maven > > > I assume these softwares are installed and well configured: > > - The Subversion software of your choice (I use TortoiseSVN) > > - Java: 1.6.0_25-b06, but I guess you can use the one you like >=3D 1.5 > > - Ant: I used the 1.8.2 (http://ant.apache.org/**bindownload.cgi).-7-zip ( > http://www.7-zip.org/)- vanilla Flash Builder 4.6 > > > And then : > > - Open Source Flex SDK. I downloaded it from http://opensource.adobe.com/= * > *wiki/display/flexsdk/Download+**Flex+4.6and unpackaged it to 'ApacheFlexSDK/201= 2.0.1' in the temporary folder of > your choise. > > - copy "flexTasks.JAR" from 'ApacheFlexSDK/2012.0.1/ant/**lib' to the > 'libs' folder of your 'apache-ant-1.8.2' instalation folder. > > - copy the content of this file 'https://github.com/piercer/** > flex_sdk_maven_install/blob/**master/flex4.5.1.21328_** > molehill.compiler.descriptors.**xml= ' > to 'ApacheFlexSDK/apache_flex_**2012.0.1.compiler.descriptors.**xml' > > - copy the content of this file 'https://github.com/piercer/** > flex_sdk_maven_install/blob/**master/flex4.5.1.21328_**molehill.framework= . > **descriptors.xml' > to 'ApacheFlexSDK/apache_flex_**2012.0.1.framework.**descriptors.xml' > > > On to the configuration: > > - environment variables (run 'C:\Windows\System32\** > SystemPropertiesAdvanced.exe') > > - click on 'Environment variables...' and under 'System variables' > > # Flex SDK build variables > > add: FLEX_HOME=3DpathToYour\**ApacheFlexSDK\2012.0.1 > > > # bin directory of Flex SDK > > In the 'path' variable add '%FLEX_SDK%/bin' > > > - empty the 'ApacheFlexSDK\2012.0.1\**frameworks' folder except the > 'frameworks\locale' and the 'frameworks\libs\automation' > > > Get the source: > > - grab a working copy of the 'http://svn.apache.org/repos/** > asf/incubator/flex/whiteboard/**frameworks/'repoand put it in your local= (just emptied) 'frameworks' folder, accept the > replacememnt of files if asked. > > > Now for the fun part: > > - open a DOS Console as Administrator, cd to the 'ApacheFlexSDK\2012.0.1' > folder and enter the followingcommand: "ant -f build_framework.xml". This > will download some thirdparty code (this takes a couple of minutes) and > then builds the SDK.When done, you see the lovely words "BUILD SUCCESSFUL= ". > > - rename 'ApacheFlexSDK/2012.0.1/**frameworks/libs/player/11.0' > to'ApacheFlexSDK/2012.0.1/**frameworks/libs/player/11.1' (yes, from 11.0 > to 11.1, in short). > > - remove the 'ApacheFlexSDK\2012.0.1\**frameworks\svn' folder > > - copy 'ApacheFlexSDK\2012.0.1' to 'C:\Program Files (x86)\Adobe\Adobe > Flash Builder 4.6\sdks\2012.0.1' > > - Go into the Flash Builder preferences and add the new SDK, you can even > create a project to play with and check it works (thank you to report in > case it doesn't). > > > > > The Maven part : > > > - Create an empty zip file in 'ApacheFlexSDK\2012.0.1' and rename it > 'empty.swc'- Zip with 7-zip the content of 'ApacheFlexSDK\2012.0.1\' to > 'ApacheFlexSDK\apache_flex_**sdk_2012.0.1.zip' > > > - in 'ApacheFlexSDK/apache_flex_**2012.0.1.framework.**descriptors.xml' : > > change '4.5.1.21328-**MOLEHILL-11.0' to > '2012.0.1' > > change '11' to '11.1**' > > change 'frameworks/libs/**player/11.0/playerglobal.swc' > to 'frameworks/libs/**player/11.1/playerglobal.swc= ' > > > - in 'ApacheFlexSDK/apache_flex_**2012.0.1.compiler.descriptors.**xml' > :change '4.5.1.21328-**MOLEHILL-11.0' to > '2012.0.1' > > > - in the previously opened DOS Console, in 'ApacheFlexSDK', run : > > > mvn org.sonatype.plugins:bundle-**publisher-maven-plugin:1.1:**install-bu= ndle > -Dbundle=3Dapache_flex_sdk_2012.**0.1.zip -Ddescriptor=3Dapache_flex_2012= .** > 0.1.framework.descriptors.xml > > mvn org.sonatype.plugins:bundle-**publisher-maven-plugin:1.1:**install-bu= ndle > -Dbundle=3Dapache_flex_sdk_2012.**0.1.zip -Ddescriptor=3Dapache_flex_2012= .** > 0.1.compiler.descriptors.xml > > > You can now enjoy playing with Maven ApacheFlex Maven projects.(Note: > because you can't use RSL caching in this version, use 'rsl' as scope > instead in your POMs) > > > Fr=C3=A9d=C3=A9ric Thomas > --f46d043c7de4eb9d7304b71f7014--