/**
  * Builds everything, initiated from ant
  */
 public static function build()
 {
     echo "\nStarting build " . ModulaiseController::$buildTag . "\n--------------------------------------------------------------------------------\n\n";
     // time the build
     $timeparts = explode(' ', microtime());
     $starttime = $timeparts[1] . substr($timeparts[0], 1);
     $timeparts = explode(' ', microtime());
     // build the pages
     ModulaiseBuild::buildPages();
     // build css and javascript
     ModulaiseBuild::buildCompiled();
     // show total time elapsed
     $endtime = $timeparts[1] . substr($timeparts[0], 1);
     echo "\nBuild completed\n--------------------------------------------------------------------------------\nBuild script time       : " . bcsub($endtime, $starttime, 6) . " seconds\n\n";
 }