This document explains how to package a release of Capsis that can be distributed to users NOT members of the Capsis community (Developers + Modelers). It was written to help the Capsis modelers distribute their models.
<note> According to the Capsis charter, the whole platform is distributable to anybody thanks to the LGPL free licence, EXCEPTED the modules which are NOT YOURS (growth / dynamics modules in the capsis4/bin/ directory). Those with a free licence can be distributed without asking the author, in any other case, you must ask the permission to the author. </note>
If you want to distribute your models outside the Capsis community, you should choose a distribution licence by copying two files in french and english, named respectively licence_fr.html and licence_en.html, in the main directory of your module (ex: in capsis4/bin/isgm/). We suggest the Lesser General Public Licence (free licence) if you agree with its terms. In this case, you must create a header in every class of your module, you can find details here. You are free to choose another licence.
1. To create an installer containing the modules mountain and fagacees (located in the directory lerfob/fagacees and requiring source files in lerfob/commons) with the sources:
ant clean installer -Dmodules="mountain/**,lerfob/fagacees/**,lerfob/commons/**"
2. To create an installer containing the modules pp3 without the sources:
ant installer -Dincludesrc=false -Dmodules="pp3/**"
It will generate a file named
⇒ Rename the file as you want, e.g.:
You can then distribute this jar file. To use it, please follow the installation instructions.
3. The command to create the downloadable installer on the Capsis web site:
sh ant installer -Dincludesrc=false -Dmodules="lerfob/commons/**, lerfob/abial/**, lerfob/fagacees/**, modispinaster/**, mountain/**, twoe/**, genloader/**, organon/**"
F. de Coligny - 3.4.2009
Here is a the old way to create a distributable version: