...
- Install Java from: http://www.oracle.com/technetwork/java/javase/downloads/index.html
- Install Maven 3.3.1 or greater from: http://maven.apache.org/download.cgi (I used 3.3.9)
- Download the archive
- Unpack the archive
- Set your systems PATH to the bin directory (I usually define a MAVEN_HOME to the unpacked directory and then add $MAVEN_HOME/bin to the PATH)
- Download the "Flash Player projector content debugger" for your system from: https://www.adobe.com/support/flashplayer/debug_downloads.html (The Browser plugin or ActiveX component will not work)
- Set an environment variable called FLASHPLAYER_DEBUGGER and set it to the path of the Flash Debug Player executable (On windows and Linux machined this is trivial as you simply provide the full path (including the executable name), on Mac's this will look something like this: {Place the Player is installed to}/Flash Player.app/Contents/MacOS/Flash Player Debugger)
Example for Windows:
Code Block FLASHPLAYER_DEBUGGER=C:\Program Files\Adobe\Flash\flashplayer_22_sa_debug.exe
Example for Linux:
Code Block FLASHPLAYER_DEBUGGER=/opt/adobe/flash/flashplayer_11_sa_debug.i386/flashplayerdebugger
Example for Mac:
Code Block FLASHPLAYER_DEBUGGER=/Applications/Adobe/Flash/22.0/Flash Player.app/Contents/MacOS/Flash Player Debugger
- Build Compiler (flex-falcon)
Clone:
Code Block
language bash git clone https://git-wip-us.apache.org/repos/asf/flex-falcon.git flex-falconGo into the new directory:
Code Block
language bash cd flex-falcon git checkout developBuild the utils: (This is optional as the build can also fetch the artifacts from Apache Snapshot Maven Repo)
Code Block
language bash mvn -s settings-template.xml -P utils clean install
Build the compiler:
Code Block
language bash mvn -s settings-template.xml clean installThis will execute all unit-tests and integration-tests. You can however run the build without any tests:
Code Block
language bash mvn -s settings-template.xml -DskipTests -P utils clean install
And if you just want to run the unit-tests and skip the integration-tests:
Code Block
language bash mvn -s settings-template.xml -DskipITs -P utils clean install
- Build Typedefs (flex-typedefs)
Clone:
Code Block
language bash git clone https://git-wip-us.apache.org/repos/asf/flex-typedefs.git flex-typedefsGo into the new directory:
Code Block
language bash cd flex-typedefs git checkout developBuild the typedefs:
Code Block
language bash mvn -s settings-template.xml clean install- Build the Framework (flex-asjs)
Clone:
Code Block
language bash git clone https://git-wip-us.apache.org/repos/asf/flex-asjs.git flex-asjsGo into the new directory:
Code Block
language bash cd flex-asjs git checkout developBuild the framework libs:
Code Block
language bash mvn -s settings-template.xml clean installoptionally you can also build the distribution binaries:
Code Block
language bash mvn -s settings-template.xml -P build-distribution clean installoptionally you can also build the distribution binaries and a local distribution (including dependencies for Flash, AIR) in a local directory:
Code Block
language bash set distributionTargetFolder={some directory path} mvn -s settings-template.xml -DdistributionTargetFolder={pathToDistributionDirectory} -P build-distribution clean install
...
Info |
---|
The reason for specifying the "-s settings-template.xml" is that we currently are using unreleased artifacts for the mavenizer. If we don't explicitly tell maven to also look in the Apache Snapshot Repo, it will not find these. This option will no longer be needed as soon as we have released the Mavenizer for a first time. |
...