My favorites | Sign in
Project Logo
                
Search
for
Updated Dec 02, 2008 by darshan.sawardekar
Labels: Featured
BuildingFabrication  
Building Fabrication


Requirements

Fabrication uses Ant build files to build itself. To run the build files you need Apache Ant version 1.6.5+.

Checking out the sources

To build Fabrication you need the main frameworks branch of the repository. The checkout url is below,

http://fabrication.googlecode.com/svn/framework/trunk/

Once you have checked out the framework repository, you need to provide it the path to your flex sdk. To do this create a file user.properties in the directory that you checked out fabrication, along side the build.properties. Then add a property flex.dir pointing to the directory of your flex sdk. For instance, if you flex sdk was in C:\flex\sdk\3.0, your user.properties would look like,

flex.dir = C:/flex/sdk/3.0

Now you can build the Fabrication swcs. To do this, run the following command from the directory that you checked out the repository.

ant swc

This will create the swcs for the current version of Fabrication in the dist directory. To create the swc for just the flex platform use,

ant swc-flex

Main Targets

The main targets in the Fabrication build file are described below.

all Removes previous compiled files and rebuilds the main application and generates asdocs
asdoc Generates asdocs
asdoc-full Generates asdocs for all classes
asdoc-public Generates public asdocs
build Builds runner, modules and resolver layouts
build-layout-modules Compiles all the resolver layout modules
build-modules Compiles the modules used in the unit tests
build-test-runner Compiles the Fabrication test runner
clean Removes all build generated files
clean-coverage Removes all files generated by flexcover
clean-generated Removed files generated with the keep-generated-actionscript switch
dist Builds swcs and zip for distribution
main Default target, build
publish-asdoc Publishes all asdocs to the svn
publish-asdoc-full Publishes full asdocs to the svn
publish-asdoc-manual The svntask takes more time than a tsvn commit. This target does prep work to commit manually
publish-asdoc-public Publishes public asdocs to the svn
publish-to-googlecode Publishes the current source to the google code downloads
run Launches the test runner
scaffold-build Generates the ant build for a project
swc Compiles the Fabrication swc for multiple platforms
swc-air Compiles the Fabrication swc for air
swc-dependencies Create swcs for all Fabrication dependencies
swc-flash Compiles the Fabrication swc for flash
swc-flex Compiles the Fabrication swc for flex
swc-main-dependencies Creates a common swcs of all the main line dependencies
swc-test Creates an swc out of the test line
swc-test-dependencies Creates a common swc of all the test line dependencies
test Builds test runner, modules, and launches the runner
test-layout-module Builds the module specified by layout.module.src and launches the runner
upgrade-app Freezes the current Fabrication swc into a project
upgrade-example Upgrades the specified example
upgrade-examples Upgrades all examples
zip Generates a zip file from the trunk

Examples

Most of the Fabrication example applications can be build using ant. If you have checked out only specific examples you will need to add/modify the fabrication.dir property in the build.properties to the directory where Fabrication is checked out or where the Fabrication source zip was extracted. Then to build and run the application you can run the following command in the directory of the application example.

ant

Sign in to add a comment
Hosted by Google Code