Development: SetupThis document describes how to set up a local development copy of the project directory. Starting OutDevelopment setup is a three step process: Repository Check OutFirst, check out the sources from the CVS repository. E.g. on Unix/Mac OS X: cvs -d :pserver:anonymous@cvs.sourceforge.net:/cvsroot/taglets checkout taglets Alternatively you may of course also use a graphical CVS client or use the CVS repository browser of your favourite IDE. Make sure that you use the following connection parameters: Repository Host: cvs.sourceforge.net Repository Path: /cvsroot/taglets Connection Type: pserver Connection Port: 2401 (default) Checkout Module: taglets Build Environment ConfigurationIn the following all files mentioned are listed relative to the toplevel directory of the project directory. Also, all build commands should be executed from the toplevel directory of the master module. Site and User Specific Configuration FilesTo keep site and user specific information out of the build process the build tools use the following configuration files:
The build script first imports the site specific configuration file and then launches ANT which in turn imports the following files: >
env/user.xml >
env/site.xml >
env/defaults.xml
Thus, the user configuration overrides the site configuration which in turn overrides the default values. To create and/or configure the site and user specific configuration files refer to the sections Semi-automated Setup or Manual Setup below. Semi-automated SetupThere is a small setup script which will help you conduct the steps outlined in the manual setup section below. In the toplevel directory execute: On Unix/Mac OS X $ ./build.sh setup ${USER} ${SITE} or on Windows > build setup ${USER} ${SITE} Where ${USER} is your username and ${SITE} is your sitename. Once the configuration files are in place and the site specific path to the J2SE is set proceed to perform the Initial Build. Manual SetupIf you want to prepare the setup manually perform the following steps:
If your target is a new site, you may have to create your own site specific include file. In the env/templates directory are templates that should give you an idea of the parameters. Initial BuildSome portions of the documentation (API documentation and some other HTML pages) are generated automatically. So your initial setup process should build this documentation in the next step. But also after a later update it is good practice to proceed with the next step to ensure that everything is correctly (re-)built. To create all generated sources and documentations and to compile all parts of the project the build tool build.sh (Unix/Mac OS X) or build.cmd (Windows) has to be started with the target world. E.g. on Unix/Mac OS X $ ./build.sh world or on Windows > build world After all these steps all parts of the whole project is built and the documentation should be complete. The targets of the master build file are listed on the Build Environment page (this page is only avaible once build world has been run). |