#################
Build from source
#################
Requirements
============
* `Ant `_ >= 1.6
* `Git `_
Get source
==========
Read-only::
git clone git://swfm.git.sourceforge.net/gitroot/swfm/swfm
.. note::
For read/write access check the `develop page on Sourceforge
`_.
Build
=====
Go into the swfm source directory and type for ...
... default build
-----------------
This build strips all the comments and all the debug output from the source and
optimizes the source.
::
ant build
... development build
---------------------
This build includes all the debug output and the source isn't optimized.
::
ant build_dev
Build archive
=============
First get the source code for the version of SmartWFM you like to build the
archive for. After that you have to build the default or the development
version. Now you can run commands to build an archive.
Release
-------
The following command will create new archives in the 'dist/' directory.
::
ant -Dswfm_version= archive_all
For example::
ant -Dswfm_version=0.6 archive_all
Snapshot
--------
::
ant archive_all
.. note::
There are also separate commands to build only a .tar.bz2, a .tar.gz or a
.zip package. Just replace *archive_all* with one of the following:
*archive_bz2*, *archive_gz*, *archive_zip*.
Build documentation
===================
This commands creates the API documentation directly from the source code::
ant doc
Now there is a new **doc/api** folder, where the API documentation is located.