Build

Top  Previous  Next

Building a Web Application means;

1.Initializing the build directory of the web application by copying MoreMotion AF files in it.
2.Compiling all the pages of the project. The static pages are compiled as HTML and dynamic pages are compiled as XSL.
3.Copying all the files (images, videos, scripts, executables, etc) used in the pages from the library directories to the Build Directory.
4.Setting up the MoreMotion AF configuration (/WEB-INF/MM-INF/config/*.xm files) files for test run

 

All the files processed by the build are registered in Dependency List (@.dep file located at the root of the build directory). Dependency List helps the Application Studio to remember which pages were already compiled and which files are copied to build directory by the previous builds.

Build Types
 

Full Build

All the pages will be compiled and all the used files will be copied from source directories to the build directory without checking their previous status.

It is not recommended to use "Full Build" unless it is really necessary because the full build resets the dependency list which means by the next publish all the files will be seen as brand new and therefore will be put into the publish list.

Build

Only updated pages are compiled and updated files are copied to the build directory.

A page is accepted as updated if:

1.It is open and modified
2.It was open and modified and therefore compiled but closed without saving
3.The date of the page file (.mmpa) is newer than the date of the compiled file (.html  or .xsl)
4.Any of its template pages is newer than the compiled file
5.Any of the library elements used in it is newer than the compiled file

 

See Conditional Building of a Project