Source code

CERNY.ant.mergejs

This file implements an Ant script definition for merging JavaScript files. The task takes an expression for a catalog and creates the dependency sequence of all file that are required to run provide the functionality of the expression. It is mandatory that the file which contains the expression has a require statement.

The task mergejs has the following mandatory attributes: expression - the expression to merge functionality in one file dest-file - the destination file, a JavaScript file catalog-file - the catalog to resolve expressions with base-dir - the base dir to successfully concatenate files

This procedure does not evaluate all source code. It loads only the first 200 lines of a script and looks for a require statement, which will be execute and connect the dependency chain.

Used by

None

History

2007-11-19 : Created.

API Documentation for version

Support

If you have any question or suggestions regarding Cerny.js, do not hesitate to contact me. Your input is always welcome.