Tutorials/howto ant

= Firebase and Ant = Firebase comes with extensive support for building games, services and tournaments with Apache Maven. However, convenient as this is, it is not a requirement. This page describes a build in Apache Ant, but should be useful as a references for any Maven deprived build.

Requirements and Setup
You need a basic understanding of Firebase as well as Apache Ant installed.

The build file used in all examples assumes the following structure:

"/bin" - for compiled classes "/tmp" - temporary work directory "/src" - java sources "/xml" - xml descriptors "/lib" - dependencies

Dependencies are assumed to be JAR files in the "lib/" folder, but in reality a more robust dendency mechanism should be used. The following properties will be assumed:

 

Compilation
Compile as you would normally. For any Firebase archetype you will need the API JAR in the class path. If you don't have it locally you can download it from Cubeia's Maven repository.

 

The above JAR can then be included in the compilation class path. For example:

    

  

Game Archive
The packaging of a GAR file would look like this:

    <zipfileset file="xml/game.xml" prefix="GAME-INF" /> <zipfileset dir="lib/" prefix="GAME-INF/lib" />

Examples

 * Game: ant-game-example.zip.