If you are beginning a Web Space Server-based project, you will probably need to get your developers up and running before your production systems are ready. In order for a developer to do his or her work, an instance of Web Space Server needs to be running on his or her machines. Additionally, to prevent file-locking issues, a developer's version of Web Space Server should not use the embedded database, so a separate database will need to be installed.
Web Space Server uses many open source tools for development which means there are no expensive tools to purchase. Also, developers can choose the tools they are most comfortable with to write code on Web Space Server platform.
Some tools are required in order to develop with Web Space Server:
Apache Ant 1.7.0 or later.
A Java Development Kit.
A Web Space Server-supported database. (MySQL is recommended for a developer machine.)
The IDE or development environment of your choice.
If you are customizing Web Space Server through the extension environment, you might need a subversion client, or you can also download the Web Space Server source from the web site. See the Web Space Server Developer's Guide for further details.
Apache Ant is a build tool that is used extensively by both the Web Space Server source and the extension environment. You can download the latest version of Ant from http://ant.apache.org. After downloading, uncompress the archive into a folder. You then need to set the ANT_HOME environment variable to add binaries to your PATH.
Choose Start -> Control Panel, and double-click the System icon.
Click the Advanced tab, and then click the Environment Variables button.
Under System Variables, select New to create the ANT_HOME environment variable.
Set the variable name to ANT_HOME and the variable value to apache-install-dir\apache-ant-version and click OK.
For example, the installation directory might be C:\Java\apache-ant-1.7.0.
Select New again to create the ANT_OPTS environment variable.
Set the variable name to ANT_OPTS and the variable value to -Xms256M -Xmx512M and click OK.
Select the PATH environment variable and select Edit.
Add %ANT_HOME%\bin to the end or beginning of the PATH.
Click OK and then click OK again.
To test the setting, type ant at a command prompt and press Return.
In your home folder, open the .bash_profile file in the root directory.
Add the following lines to the file, substituting the directory where you installed Ant:
ANT_HOME=/apache-install-dir/apache-ant-version ANT_OPTS="-Xms256M -Xmx512M" PATH=$PATH:$HOME/bin:$ANT_HOME/bin export ANT_HOME ANT_OPTS PATH
To test the setting, type ant at a command prompt and press Return.