2009-06-03 06:23:56 +08:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2009-12-20 02:01:09 +08:00
|
|
|
<!-- BigBlueButton Client build.xml for use by Hudson builds. -->
|
2009-11-04 11:37:27 +08:00
|
|
|
<project name="BigBlueButton Client" basedir="." default="cleanandmake" >
|
2009-06-03 06:23:56 +08:00
|
|
|
<property environment="env" />
|
|
|
|
<property name="FLEX_HOME" value="${env.FLEX_HOME}" />
|
|
|
|
<property name="APP_ROOT" value="./src" />
|
|
|
|
<property name="ROOT_DIR" value="." />
|
2009-11-04 09:17:28 +08:00
|
|
|
<property name="OUTPUT_DIR" value="./bin" />
|
2009-06-03 06:23:56 +08:00
|
|
|
<taskdef resource="flexTasks.tasks" classpath="${FLEX_HOME}/ant/lib/flexTasks.jar" />
|
|
|
|
|
2009-11-04 11:52:17 +08:00
|
|
|
<target name="mxmlc-component" depends="copy-config-xml" description="Compiling the BBB mxml files">
|
2009-06-03 06:23:56 +08:00
|
|
|
<mxmlc-compile target="${APP_ROOT}/BigBlueButton" />
|
|
|
|
<mxmlc-compile target="${APP_ROOT}/ChatModule" />
|
|
|
|
<mxmlc-compile target="${APP_ROOT}/ViewersModule" />
|
|
|
|
<mxmlc-compile target="${APP_ROOT}/ListenersModule" />
|
2009-12-10 04:57:45 +08:00
|
|
|
<mxmlc-compile target="${APP_ROOT}/PresentModule" />
|
2009-06-26 02:39:10 +08:00
|
|
|
<mxmlc-compile target="${APP_ROOT}/DeskShareModule" />
|
2009-06-26 02:56:24 +08:00
|
|
|
<mxmlc-compile target="${APP_ROOT}/PhoneModule" />
|
2009-08-26 23:17:30 +08:00
|
|
|
<mxmlc-compile target="${APP_ROOT}/AutotestModule" />
|
2009-09-04 22:18:51 +08:00
|
|
|
<mxmlc-compile target="${APP_ROOT}/VideoconfModule" />
|
2009-08-04 22:04:06 +08:00
|
|
|
|
|
|
|
<!-- REMOVE FOR NOW (RALAM AUG 3, 2009)
|
|
|
|
<mxmlc-compile target="${APP_ROOT}/LoginModule" />
|
2009-07-29 01:19:32 +08:00
|
|
|
<mxmlc-compile target="${APP_ROOT}/NotesModule" />
|
2009-08-01 01:28:09 +08:00
|
|
|
<mxmlc-compile target="${APP_ROOT}/HighlighterModule" />
|
2009-08-04 22:04:06 +08:00
|
|
|
-->
|
2009-06-03 06:23:56 +08:00
|
|
|
|
|
|
|
<copy todir="${OUTPUT_DIR}/conf" >
|
|
|
|
<fileset dir="./src/conf" />
|
|
|
|
</copy>
|
|
|
|
|
|
|
|
<copy todir="${OUTPUT_DIR}/swfobject/" >
|
|
|
|
<fileset dir="./src/swfobject/" />
|
|
|
|
</copy>
|
|
|
|
|
|
|
|
<copy todir="${OUTPUT_DIR}/org/bigbluebutton/common/assets/images" >
|
|
|
|
<fileset dir="./src/org/bigbluebutton/common/assets/images/" />
|
|
|
|
</copy>
|
2009-10-23 22:31:32 +08:00
|
|
|
<!--
|
2009-06-03 06:23:56 +08:00
|
|
|
<copy todir="${OUTPUT_DIR}/org/bigbluebutton/main/view/assets/images" >
|
|
|
|
<fileset dir="./src/org/bigbluebutton/main/view/assets/images" />
|
|
|
|
</copy>
|
2009-10-23 22:31:32 +08:00
|
|
|
-->
|
2009-06-03 06:23:56 +08:00
|
|
|
<copy todir="${OUTPUT_DIR}/org/bigbluebutton/modules/listeners/view/assets/images/" >
|
|
|
|
<fileset dir="./src/org/bigbluebutton/modules/listeners/view/assets/images/" />
|
|
|
|
</copy>
|
2009-12-10 04:57:45 +08:00
|
|
|
|
2009-08-07 04:33:03 +08:00
|
|
|
<copy todir="${OUTPUT_DIR}/org/bigbluebutton/modules/phone/views/assets/images/" >
|
|
|
|
<fileset dir="./src/org/bigbluebutton/modules/phone/views/assets/images/" />
|
2009-06-26 02:52:04 +08:00
|
|
|
</copy>
|
|
|
|
|
2009-09-07 01:10:10 +08:00
|
|
|
<copy todir="${OUTPUT_DIR}/org/bigbluebutton/modules/videoconf/views/assets/images/" >
|
|
|
|
<fileset dir="./src/org/bigbluebutton/modules/videoconf/views/assets/images/" />
|
|
|
|
</copy>
|
|
|
|
|
2009-10-24 01:06:46 +08:00
|
|
|
<copy file="./html-template/bbb-deskshare-applet-0.62.jar" todir="${OUTPUT_DIR}"/>
|
2009-06-26 03:22:00 +08:00
|
|
|
|
2009-06-03 06:23:56 +08:00
|
|
|
<move todir="${OUTPUT_DIR}" >
|
|
|
|
<fileset dir="${OUTPUT_DIR}/src" />
|
|
|
|
</move>
|
|
|
|
</target>
|
2009-11-04 11:52:17 +08:00
|
|
|
|
|
|
|
<target name="check-config-xml">
|
|
|
|
<available file="/var/www/bigbluebutton/client/conf/config.xml" property="config-xml.present"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="copy-config-xml" depends="check-config-xml" if="config-xml.present">
|
|
|
|
<echo message="Updating config.xml from /var/www/bigbluebutton/client/conf/config.xml" />
|
|
|
|
<copy file="/var/www/bigbluebutton/client/conf/config.xml" todir="${OUTPUT_DIR}/conf" />
|
|
|
|
</target>
|
2009-06-03 06:23:56 +08:00
|
|
|
|
2009-12-15 03:51:24 +08:00
|
|
|
<target name="generate-wrapper" depends="mxmlc-component">
|
2009-06-03 06:23:56 +08:00
|
|
|
<html-wrapper
|
|
|
|
title="BigBlueButton"
|
|
|
|
file="BigBlueButton.html"
|
|
|
|
height="100%"
|
|
|
|
width="100%"
|
|
|
|
bgcolor="grey"
|
|
|
|
application="BBB"
|
|
|
|
swf="BigBlueButton"
|
|
|
|
version-major="9"
|
|
|
|
version-minor="0"
|
|
|
|
version-revision="0"
|
|
|
|
history="true"
|
|
|
|
template="express-installation"
|
|
|
|
output="${OUTPUT_DIR}"
|
|
|
|
/>
|
2009-06-27 23:12:20 +08:00
|
|
|
<copy file="./html-template/BigBlueButton.html" todir="${OUTPUT_DIR}" overwrite="true"/>
|
2009-06-03 06:23:56 +08:00
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="clean">
|
|
|
|
<delete dir="${OUTPUT_DIR}" />
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="cleanandmake" depends="clean, generate-wrapper"></target>
|
|
|
|
|
|
|
|
<macrodef name="mxmlc-compile">
|
|
|
|
<attribute name="target" description="Path to the file being compiled." />
|
|
|
|
<attribute name="flex" default="${env.FLEX_HOME}" description="Location of the Flex install." />
|
|
|
|
<attribute name="app" default="."/>
|
|
|
|
<attribute name="output" default="./output" description="" />
|
|
|
|
<sequential>
|
|
|
|
<mxmlc
|
|
|
|
file="@{target}.mxml"
|
|
|
|
output="${OUTPUT_DIR}/@{target}.swf"
|
|
|
|
debug="false"
|
|
|
|
>
|
|
|
|
<load-config filename="@{flex}/frameworks/flex-config.xml" />
|
|
|
|
<source-path path-element="@{flex}/frameworks" />
|
|
|
|
<compiler.library-path dir="@{flex}/frameworks" append="true">
|
|
|
|
<include name="libs" />
|
|
|
|
<include name="../bundles/{locale}" />
|
|
|
|
</compiler.library-path>
|
|
|
|
|
|
|
|
<compiler.library-path dir="@{app}" append="true">
|
|
|
|
<include name="libs" />
|
|
|
|
<include name="libs/generated" />
|
|
|
|
</compiler.library-path>
|
|
|
|
|
|
|
|
<default-size width="500" height="600" />
|
|
|
|
</mxmlc>
|
|
|
|
</sequential>
|
|
|
|
</macrodef>
|
2009-11-21 03:03:13 +08:00
|
|
|
|
2009-11-21 09:39:39 +08:00
|
|
|
<target name="localization" description="Builds BigBlueButton localization files">
|
2009-11-21 03:03:13 +08:00
|
|
|
<echo>Building Localization .swf's</echo>
|
|
|
|
<compileLocale locale="en_US" />
|
|
|
|
<compileLocale locale="zh_CN" />
|
|
|
|
<compileLocale locale="fr_FR" />
|
2010-01-13 10:07:00 +08:00
|
|
|
<compileLocale locale="nl_NL" />
|
2009-11-21 03:03:13 +08:00
|
|
|
</target>
|
|
|
|
|
|
|
|
<!-- Compiles Localization Resource Bundle. -->
|
|
|
|
<macrodef name="compileLocale" description="Compiles the Resource package for the given locale">
|
|
|
|
<attribute name="locale" default="en_US"/>
|
|
|
|
<sequential>
|
|
|
|
<!--
|
|
|
|
Create the Flex Home directory for the language in question.
|
|
|
|
This is necessary to compensate for a bug in pre-3.2 releases of
|
|
|
|
mxmlc.
|
|
|
|
|
|
|
|
<mkdir dir="${FLEX_HOME}/frameworks/locale/@{locale}"/>-->
|
|
|
|
|
|
|
|
<!-- Invoke MXMLC -->
|
|
|
|
<mxmlc output="${OUTPUT_DIR}/locale/@{locale}_resources.swf">
|
|
|
|
<locale>@{locale}</locale>
|
|
|
|
<source-path path-element="locale/{locale}"/>
|
|
|
|
<include-resource-bundles>bbbResources</include-resource-bundles>
|
|
|
|
<source-path path-element="${FLEX_HOME}/frameworks"/>
|
|
|
|
</mxmlc>
|
|
|
|
</sequential>
|
|
|
|
</macrodef>
|
2009-06-03 06:23:56 +08:00
|
|
|
</project>
|