diff --git a/src/messenger/build.xml b/src/messenger/build.xml
new file mode 100644
index 00000000..7ec9ec8d
--- /dev/null
+++ b/src/messenger/build.xml
@@ -0,0 +1,260 @@
+
+
+
+
+
+
+
+
+
+
+
+ Available targets:
+ styles_handlebars - Compile Handlebars templates for dialogs styles
+ styles_js - Compile JavaScript files for all dialogs styles
+ styles_all - Run styles_handlebars and styles_js tasks
+ chat_app_js - Build JavaScript files related to chat application
+ default_app_js - Build JavaScript files related to default application
+ core_handlebars - Compile Handlebars templates of the Core
+ all - Build everything
+
+
+
+
+
+ Compile Handlebars templates for dialogs styles
+
+
+
+
+
+
+
+
+
+ Done
+
+
+
+
+
+ Compile and concatenate JavaScript files for dialogs styles:
+
+
+ Create temporary directories
+
+
+
+
+
+
+
+
+
+ Compile JavaScript files
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Concatenate JavaScript files
+
+
+
+
+
+
+
+
+
+
+ Remove temporary directories
+
+
+
+
+
+
+
+
+ Done
+
+
+
+
+
+ Dialogs styles built.
+
+
+
+
+
+ Compile JavaScript files of the Mibew Core
+
+
+ Copy directory tree
+
+
+
+
+
+
+
+ Compile JavaScript files
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Done
+
+
+
+
+
+ Build "${app_name}" JavaScript application
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Done
+
+
+
+
+
+
+
+
+ Default JavaScript application built.
+
+
+
+
+
+
+
+
+ Chat JavaScript application built.
+
+
+
+
+ Compile Handlebars templates of the Core
+
+
+
+
+
+
+
+
+
+ Done
+
+
+
+
+ Mibew Messenger built.
+
+
+
+
\ No newline at end of file
diff --git a/src/messenger/build_scripts/cat b/src/messenger/build_scripts/cat
new file mode 100755
index 00000000..f91d408c
--- /dev/null
+++ b/src/messenger/build_scripts/cat
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+files=$1
+
+if [ -e $files ]
+then
+ cat /dev/null > $2
+ for file in $files
+ do
+ cat $file >> $2
+ done
+fi
\ No newline at end of file
diff --git a/src/messenger/webim/js/source/build.xml b/src/messenger/webim/js/source/build.xml
deleted file mode 100644
index 3c1f8fe4..00000000
--- a/src/messenger/webim/js/source/build.xml
+++ /dev/null
@@ -1,66 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-