wiki:ANTBuildSystem

Version 2 (modified by pagameba, 16 years ago) ( diff )

--

Apache Ant Build System

Apache Ant is a Java-based build tool. In theory, it is kind of like make, without its wrinkles. Ant uses an XML file called, by convention, build.xml to control the build process. The basic use of Ant is to run the following command in a shell in the root of the fusion directory structure:

ant [target]

The optional target specifies one of the build targets, described below.

Fusion Build Targets

prepare:

The "prepare" target is used to create the "build" destination directory, and copy the static contents of your web application to it. Normally, this task is executed indirectly when needed.

docs:

The "docs" target runs NaturalDocs on the code base to create API documentation.

compress:

The compress target combines various javascript source files into a single file and runs the jsmin tool on it to create a minimized file for use in production applications.

deploy:

The "deploy" target synchronizes the build directory with an external directory. This can be used to move a fusion build into a web accessible location for instance.

dist:

The "dist" target creates a binary distribution of your application in a directory structure ready to be archived in a tar.gz or zip file.

clean:

The "clean" target removes previous build and dist directories to ensure that a newly built version of Fusion doesn't contain extra stuff.

clean-all:

The "clean-all" target runs the "clean" target and removes anything from the deployment location.

Customizing the Build Process

You can customize the build process. coming soon.

Note: See TracWiki for help on using the wiki.