You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openmeetings.apache.org by gg...@apache.org on 2012/07/09 05:59:36 UTC

svn commit: r1358904 [2/25] - in /incubator/openmeetings/trunk/plugins/jitsi/main: ./ java/ lib/ resources/ resources/languages/ src/

Added: incubator/openmeetings/trunk/plugins/jitsi/main/build.xml
URL: http://svn.apache.org/viewvc/incubator/openmeetings/trunk/plugins/jitsi/main/build.xml?rev=1358904&view=auto
==============================================================================
--- incubator/openmeetings/trunk/plugins/jitsi/main/build.xml (added)
+++ incubator/openmeetings/trunk/plugins/jitsi/main/build.xml Mon Jul  9 03:59:34 2012
@@ -0,0 +1,2748 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Created by Emil Ivov on Jul 6, 2005 8:30:22 PM-->
+
+<project default="ant-usage" name="jitsi">
+
+    <dirname property="sc.basedir" file="${ant.file.jitsi}"/>
+    <property environment="system"/>
+    <property name="jdk.home" value="/usr/java/java"/>
+    <property name="dest" value="classes"/>
+    <property name="bundles.dest" value="sc-bundles"/>
+    <property name="bundles.dest.mac" value="${bundles.dest}/os-specific/macosx"/>
+    <property name="bundles.dest.win" value="${bundles.dest}/os-specific/windows"/>
+    <property name="bundles.dest.lin" value="${bundles.dest}/os-specific/linux"/>
+    <property name="bundles.dest.sol" value="${bundles.dest}/os-specific/solaris"/>
+    <property name="bundles.dest.freebsd" value="${bundles.dest}/os-specific/freebsd"/>
+    <property name="doc" value="doc"/>
+    <property name="java.doc" value="${doc}/api"/>
+    <property name="lib" value="${sc.basedir}/lib"/>
+    <property name="lib.win" value="${lib}/os-specific/windows"/>
+    <property name="lib.win.noinst" value="${lib}/os-specific/windows/installer-exclude"/>
+    <property name="lib.lin" value="${lib}/os-specific/linux"/>
+    <property name="lib.lin.noinst" value="${lib}/os-specific/linux/installer-exclude"/>
+    <property name="lib.mac" value="${lib}/os-specific/mac"/>
+    <property name="lib.mac.noinst" value="${lib}/os-specific/mac/installer-exclude"/>
+    <property name="lib.sol" value="${lib}/os-specific/solaris"/>
+    <property name="lib.sol.noinst" value="${lib}/os-specific/solaris/installer-exclude"/>
+    <property name="lib.freebsd" value="${lib}/os-specific/freebsd"/>
+    <property name="lib.freebsd.noinst" value="${lib}/os-specific/freebsd/installer-exclude"/>
+    <property name="lib.noinst" value="${lib}/installer-exclude"/>
+    <property name="native.libs" value="${lib}/native"/>
+    <property name="src" value="${sc.basedir}/src"/>
+    <property name="src2" value="${sc.basedir}/test"/>
+    <property name="testsrc" value="${src2}"/>
+    <property name="home" value="${system.HOME}"/>
+    <property name="bin" value="sip-communicator.bin"/>
+    <property name="utest.bin" value="sip-communicator.utest.bin"/>
+    <property name="test.reports.dir" value="test-reports"/>
+    <property name="test.html.reports.dir" value="${test.reports.dir}/html"/>
+    <property name="test.local.properties.file" value="${lib}/testing.properties"/>
+    <property name="test.accounts.properties.file" value="${lib}/accounts.properties"/>
+    <property name="release" value="release"/>
+    <property name="log" value="log"/>
+    <property name="release.src" value="${release}/install"/>
+    <property name="resources" value="${dest}/resources"/>
+    <property name="inst.resrc" value="${sc.basedir}/resources/install"/>
+    <property name='j2se_api' value='http://java.sun.com/j2se/1.5/docs/api' />
+    <property name='maxwarns' value='10000' />
+    <property name='java.net.preferIPv6Addresses' value='true' />
+
+    <!-- set the build label property and make it take the cc bild into account -->
+    <condition property="build.label"
+               value="${label}">
+        <isset property="label"/>
+    </condition>
+
+    <!-- windows specific properties -->
+    <condition property="is.running.windows" value="${os.name}">
+        <os family="windows"/>
+    </condition>
+
+    <condition property="os.lib.home" value="${lib.win}">
+        <isset property="is.running.windows"/>
+    </condition>
+
+    <!-- Make sure we use the windows-64 natives if this is 64-bit Windows -->
+    <condition property="path"
+            value="${lib}/native/windows-64:${system.PATH}">
+        <and>
+            <isset property="is.running.windows"/>
+            <os arch="amd64" />
+        </and>
+    </condition>
+    <!-- Otherwise and if this is still Windows, go for the windows natives
+         (i.e. os.arch==i386) -->
+    <condition property="path"
+            value="${lib}/native/windows:${system.PATH}">
+        <isset property="is.running.windows"/>
+    </condition>
+    <!-- At last i.e. if this is not Windows, use the system PATH environment
+         variable -->
+    <property name="path" value="${system.PATH}"/>
+
+    <condition property="bundles.dest.os" value="${bundles.dest.win}">
+        <isset property="is.running.windows"/>
+    </condition>
+
+    <!-- linux specific properties -->
+    <condition property="is.running.linux" value="${os.name}">
+        <equals arg1="${os.name}" arg2="linux" casesensitive="false" trim="true"/>
+    </condition>
+
+    <condition property="os.lib.home" value="${lib.lin}">
+        <isset property="is.running.linux"/>
+    </condition>
+
+    <!-- make sure we use the linux-64 natives if this is a 64 bit system-->
+    <condition property="ld.library.path"
+            value="${lib}/native/linux-64:${system.LD_LIBRARY_PATH}">
+        <and>
+            <isset property="is.running.linux"/>
+            <os arch="amd64" />
+        </and>
+    </condition>
+    <!-- otherwise we go for the normal linuxnatives (i.e. os.arch==i386)-->
+    <condition property="ld.library.path"
+            value="${lib}/native/linux:${system.LD_LIBRARY_PATH}">
+        <isset property="is.running.linux"/>
+    </condition>
+
+    <condition property="bundles.dest.os" value="${bundles.dest.lin}">
+        <isset property="is.running.linux"/>
+    </condition>
+
+    <!-- solaris specific properties -->
+    <condition property="is.running.solaris" value="${os.name}">
+        <equals arg1="${os.name}" arg2="solaris" casesensitive="false" trim="true"/>
+    </condition>
+
+    <condition property="is.running.solaris" value="${os.name}">
+        <equals arg1="${os.name}" arg2="SunOS" casesensitive="false" trim="true"/>
+    </condition>
+
+    <condition property="os.lib.home" value="${lib}/os-specific/solaris">
+        <isset property="is.running.solaris"/>
+    </condition>
+
+    <condition property="ld.library.path"
+              value="${lib}/native/solaris:${system.LD_LIBRARY_PATH}">
+        <isset property="is.running.solaris"/>
+    </condition>
+
+    <condition property="bundles.dest.os" value="${bundles.dest.sol}">
+        <isset property="is.running.solaris"/>
+    </condition>
+
+    <!-- mac specific properties -->
+    <condition property="is.running.macos" value="${os.name}">
+        <os family="mac"/>
+    </condition>
+
+    <condition property="os.lib.home" value="${lib}/os-specific/mac">
+        <isset property="is.running.macos"/>
+    </condition>
+
+    <condition property="dyld.library.path"
+        value="${lib}/native/mac:${system.DYLD_LIBRARY_PATH}">
+        <isset property="is.running.macos"/>
+    </condition>
+
+    <condition property="bundles.dest.os" value="${bundles.dest.mac}">
+        <isset property="is.running.macos"/>
+    </condition>
+
+    <!-- FreeBSD specific properties -->
+    <condition property="is.running.freebsd" value="${os.name}">
+        <equals arg1="${os.name}" arg2="freebsd" casesensitive="false" trim="true"/>
+    </condition>
+
+    <!-- make sure we use the freebsd-64 natives if this is a 64 bit system-->
+    <condition property="ld.library.path"
+            value="${lib}/native/freebsd-64:${system.LD_LIBRARY_PATH}">
+        <and>
+            <isset property="is.running.freebsd"/>
+            <os arch="amd64" />
+        </and>
+    </condition>
+    <!-- otherwise we go for the normal freebsd natives (i.e. os.arch==i386)-->
+    <condition property="ld.library.path"
+            value="${lib}/native/freebsd:${system.LD_LIBRARY_PATH}">
+        <isset property="is.running.freebsd"/>
+    </condition>
+
+    <condition property="os.lib.home" value="${lib}/os-specific/freebsd">
+        <isset property="is.running.freebsd"/>
+    </condition>
+
+    <condition property="ld.library.path"
+              value="${lib}/native/freebsd:${system.LD_LIBRARY_PATH}">
+        <isset property="is.running.freebsd"/>
+    </condition>
+
+    <condition property="bundles.dest.os" value="${bundles.dest.freebsd}">
+        <isset property="is.running.freebsd"/>
+    </condition>
+
+    <!-- set the os.lib.home here in case it was not set before -->
+    <property name="os.lib.home" value="${lib}"/>
+
+    <property name="jdic_stub.jar" value="${os.lib.home}/jdic_stub.jar"/>
+
+    <property name="profiler.args" value="" />
+    <property name="profiler.bootdelegation" value="" />
+    <property name="profiler.autostart" value="" />
+
+    <tstamp>
+        <format property="build.date" pattern="dd-MM-yyyy"/>
+    </tstamp>
+
+    <path id="project.source.path">
+        <!-- refer to both main and test source files. -->
+        <pathelement location="${src}"/>
+        <pathelement location="${src2}"/>
+    </path>
+
+    <path id="project.class.path">
+        <pathelement location="${lib}"/>
+
+        <pathelement location="${bundles.dest}/sc-launcher.jar"/>
+        <!-- Add this bundle to the global class path as we need
+             the ScLogFormatter there-->
+        <pathelement location="${bundles.dest}/util.jar"/>
+        <!-- for mac specific plugins -->
+        <pathelement location="/System/Library/Java"/>
+
+        <!-- Include all JAR files found in lib and any of its subdirectories. -->
+        <fileset dir="${lib}">
+            <include name="*.jar"/>
+            <include name="installer-exclude/*.jar"/>
+            <include name="bundle/*.jar"/>
+        </fileset>
+
+        <fileset dir="${os.lib.home}">
+            <include name="**/*.jar"/>
+        </fileset>
+    </path>
+
+    <path id="compile.class.path">
+        <path refid="project.class.path"/>
+        <pathelement location="${dest}"/>
+        <!-- Add all jmf's and jdic's to the compile class path to enable
+             cross compilation. -->
+        <fileset dir="${lib}">
+            <include name="os-specific/**/*.jar"/>
+        </fileset>
+    </path>
+
+    <path id="debug.class.path">
+        <!-- used by netbeans but might be useful elsewhere. -->
+        <path refid="project.class.path"/>
+
+        <!-- Include all test JAR files . -->
+        <fileset dir="${bundles.dest}">
+            <include name="**/*.jar"/>
+        </fileset>
+    </path>
+
+    <path id="simple.test.class.path">
+        <!-- used for testing classes outside felix -->
+        <path refid="debug.class.path"/>
+        <!-- Include all test class files, even if they exist
+             in a jar file already. -->
+        <pathelement location="${dest}" />
+    </path>
+
+    <!-- Import installation build xml -->
+    <import file="${inst.resrc}/build.xml"/>
+
+    <!-- Import JNI build xml -->
+    <import file="${src}/native/build.xml"/>
+
+    <!-- default Ant target does nothing except print helpful options -->
+    <!-- Ant-external target will appear in -projecthelp output       -->
+    <target name="ant-usage"
+       description="simply execute 'ant' to discover the most useful targets.">
+       <echo message="Useful ant commands for the Jitsi Project..." />
+       <echo message="'ant rebuild' for a safe clean/build sequence" />
+       <echo message="'ant rebuild run' for a safe clean/build/run" />
+       <echo message="'ant make run' for incremental build/run" />
+       <echo message="'ant run' to run the last build (use with care!)" />
+       <echo message="'ant test' to run the tests over the last build" />
+       <echo message="'ant rebuild test' for safe clean/build/test sequence" />
+       <echo message="'ant make test' for incremental build/test sequence" />
+       <echo message="'ant -projecthelp' for other useful build targets" />
+       <echo message="'ant -help' for Ant help" />
+    </target>
+
+    <!-- java compile -->
+    <target name="compile" depends="init,version">
+        <!--internal-target- compiles the entire project source tree -->
+        <javac classpathref="compile.class.path" debug="true"
+            deprecation="true" destdir="${dest}" nowarn="false"
+            source="1.5" target="1.5" memoryMaximumSize="400M" fork="true">
+                <src path="${src}"/>
+                <src path="${src2}"/>
+                <include name="**/*.java" />
+                <exclude name="net/java/sip/communicator/launcher/*.java" />
+                <compilerarg line="-Xlint -Xlint:-serial -Xmaxwarns ${maxwarns}"/>
+        </javac>
+        <!--
+            sc-launcher.jar needs to be compatible with 1.4 in order to enable
+            notifying the user that a higher version of the jre is necessary.
+        -->
+        <javac classpathref="compile.class.path" debug="true"
+            deprecation="true" destdir="${dest}" nowarn="false"
+            source="1.4" target="1.4" memoryMaximumSize="400M" fork="true">
+                <src path="${src}"/>
+                <src path="${src2}"/>
+                <include name="net/java/sip/communicator/launcher/*.java" />
+                <compilerarg line="-Xlint -Xmaxwarns ${maxwarns}"/>
+        </javac>
+    </target>
+
+    <!-- clean -->
+    <target name="clean" depends="clean-bundle-repositories,clean-test-reports,clean-macosx"
+        description="Remove all generated files and prepare for a clean build.">
+        <delete failonerror="false" includeemptydirs="true">
+            <fileset dir="${dest}"/>
+            <fileset dir="${bundles.dest}"/>
+            <fileset dir="${java.doc}"/>
+            <fileset dir="${release}"/>
+            <fileset dir="${log}"/>
+        </delete>
+    </target>
+
+    <!-- clean-bundles -->
+    <target name="clean-bundles"
+        description="Remove all existing bundles">
+        <delete failonerror="false" includeemptydirs="true">
+            <fileset dir="${bundles.dest}"/>
+        </delete>
+    </target>
+
+    <!-- internal target - removes the current set of test reports, so
+         residual data is not left to confuse a cached browser -->
+    <target name="clean-test-reports">
+        <delete failonerror="false" includeemptydirs="true">
+            <fileset dir="${test.reports.dir}"/>
+        </delete>
+    </target>
+
+    <!-- internal target - removes the OSGI repositories, so that next run
+         recreates them -->
+    <target name="clean-bundle-repositories">
+        <delete failonerror="false" includeemptydirs="true">
+            <fileset dir="${bin}"/>
+            <fileset dir="${utest.bin}"/>
+        </delete>
+    </target>
+
+    <!-- resource -->
+    <target name="resource">
+        <!--internal-target- Copies all resource file to the ${dest} dir -->
+        <copy todir="${dest}">
+            <fileset dir="${src}">
+                <include name="**/*.jpeg"/>
+                <include name="**/*.wav"/>
+                <include name="**/*.au"/>
+                <include name="**/*.gif"/>
+                <include name="**/*.png"/>
+                <include name="**/*.PNG"/>
+                <include name="**/*.jpg"/>
+                <include name="**/*.xml"/>
+                <include name="**/*.themerc"/>
+                <include name="**/gtkrc"/>
+                <include name="**/*.css"/>
+                <include name="**/*.properties"/>
+            </fileset>
+            <fileset dir="${src2}">
+                <include name="**/*.jpeg"/>
+                <include name="**/*.wav"/>
+                <include name="**/*.au"/>
+                <include name="**/*.gif"/>
+                <include name="**/*.png"/>
+                <include name="**/*.jpg"/>
+                <include name="**/*.xml"/>
+                <include name="**/*.properties"/>
+            </fileset>
+        </copy>
+        <copy todir="${resources}">
+           <fileset dir="${sc.basedir}/resources">
+                <include name="**/*"/>
+                <exclude name="**/languages/**"/>
+                <exclude name="**/*.svg"/>
+           </fileset>
+        </copy>
+    </target>
+
+    <target name="native2ascii">
+        <!-- internal target -
+             convert language property files encoding from UTF-8 to ASCII,
+             save converted files in ${resources}/languages dir -->
+        <native2ascii
+            src="${sc.basedir}/resources/languages"
+            dest="${resources}/languages"
+            encoding="UTF-8"
+            includes="**/*.properties"/>
+    </target>
+
+    <!-- JAVADOC -->
+    <target name="javadoc"
+        description="Generates project javadoc.">
+        <javadoc author="true" destdir="${java.doc}" package="true"
+            version="true" use="true" windowtitle="Jitsi API"
+            classpathref="compile.class.path" source="1.5+" maxmemory="256m">
+            <packageset dir="${src}">
+                <exclude name="net/java/sip/communicator/impl/version/**"/>
+                <include name="**"/>
+            </packageset>
+            <tag name="todo" description="To do:"/>
+            <tag name="note" description="Note:"/>
+            <link href="${j2se_api}" />
+            <header>
+                <![CDATA[
+                <b> Jitsi: the OpenSource Java VoIP and Instant Messaging client. </b>
+                ]]>
+            </header>
+            <bottom>
+                <![CDATA[
+                <font size="-1">
+                    <a href="http://jitsi.org"> Jitsi, the OpenSource Java VoIP and Instant Messaging client. </a>
+                    <br>
+                    <a href="http://gnu.org"> Distributable under LGPL license. </a>
+                    <br>
+                    </font>
+                 ]]>
+             </bottom>
+        </javadoc>
+    </target>
+
+    <!--PACKAGE-->
+    <!--Copy resource files and update bundles jars. -->
+    <target name="package" depends="resource,native2ascii,bundles"/>
+
+    <!--MAKE-->
+    <target name="make" depends="clean-bundle-repositories,compile,package"
+        description="Incremental compile and package the project."/>
+
+    <!--REBUILD-->
+    <target name="rebuild" depends="clean,make"
+        description="Clean and make the project (including bundles).">
+        <echo message="ver=${sip-communicator.version}"/>
+    </target>
+
+    <!-- make and deploy target used in intellij idea -->
+    <target name="make-and-deploy"
+            depends="make,deploy-os-specific-bundles"
+            description="make and deploy target used in intellij idea"/>
+
+    <!-- Determines the Jitsi version if any-->
+    <target name="-pre-version" if="build.label" >
+        <!-- create a class that would contain our nightly build.id if any -->
+        <copy file="${src}/net/java/sip/communicator/impl/version/NightlyBuildID.java.tmpl"
+              tofile="${src}/net/java/sip/communicator/impl/version/NightlyBuildID.java"
+              overwrite="true"/>
+
+        <!-- set the build id according to the cruisecontrol property -->
+        <replace file="${src}/net/java/sip/communicator/impl/version/NightlyBuildID.java"
+            token="build.id" value="${build.label}"/>
+
+        <!-- create a class that would contain our nightly revision.id if any -->
+        <copy file="${src}/net/java/sip/communicator/impl/version/RevisionID.java.tmpl"
+              tofile="${src}/net/java/sip/communicator/impl/version/RevisionID.java"
+              overwrite="true"/>
+
+        <!-- set the build id according to the cruisecontrol property -->
+        <replace file="${src}/net/java/sip/communicator/impl/version/RevisionID.java"
+            token="revision.id" value="${build.label}"/>
+    </target>
+
+    <!-- Jitsi Version -->
+    <target name="version" depends="-pre-version">
+        <!-- Recompile ant task classes-->
+        <delete failonerror="false">
+            <fileset dir="${dest}" includes="net/java/sip/communicator/impl/version/*.class"/>
+        </delete>
+        <javac classpathref="compile.class.path" destdir="${dest}" source="1.5" target="1.5">
+            <src path="${src}"/>
+            <include name="net/java/sip/communicator/impl/version/NightlyBuildID.java" />
+            <include name="net/java/sip/communicator/impl/version/VersionImpl.java" />
+            <include name="net/java/sip/communicator/impl/version/SipCommunicatorVersionTask.java" />
+        </javac>
+
+
+        <taskdef name="sip-communicator-version" classpath="${dest}"
+                 classname="net.java.sip.communicator.impl.version.SipCommunicatorVersionTask"/>
+
+        <sip-communicator-version property="sip-communicator.version" />
+
+        <echo message="Jitsi version ${sip-communicator.version}" />
+    </target>
+
+    <!--INIT-->
+    <target name="init" >
+        <mkdir dir="${dest}"/>
+        <mkdir dir="${doc}"/>
+        <mkdir dir="${java.doc}"/>
+        <mkdir dir="${bundles.dest}"/>
+
+        <!-- create dirs for os specific bundles -->
+        <mkdir dir="${bundles.dest}/os-specific"/>
+        <mkdir dir="${bundles.dest.mac}"/>
+        <mkdir dir="${bundles.dest.lin}"/>
+        <mkdir dir="${bundles.dest.win}"/>
+        <mkdir dir="${bundles.dest.freebsd}"/>
+        <mkdir dir="${bundles.dest.sol}"/>
+
+        <mkdir dir="${test.reports.dir}"/>
+        <mkdir dir="${test.reports.dir}/html"/>
+        <mkdir dir="${release}"/>
+        <mkdir dir="${log}"/>
+    </target>
+
+
+    <!-- - - - - - - - - - - - - - UNIT TESTING - - - - - - - - - - - - - - -->
+
+    <!--PREPARE-TESTING-ACCOUNTS-->
+    <target name="prepare-local-accounts">
+        <!--internal-target- setup testing accounts properties -->
+        <!-- The following local file should contain a list of protocol
+             account initialization properties, such as SIP server addresses
+             and usernames, ICQ uin-s and passwords, AIM screennames and etc.
+             You should create the file based on lib/account.properties.template
+             and set all the empty fields as indicated. -->
+        <available property="accounts.properties.present"
+                   file="${test.accounts.properties.file}"/>
+        <fail unless="accounts.properties.present"
+              message="${test.accounts.properties.file} not found - did you copy the template?"/>
+        <property file="${test.accounts.properties.file}"/>
+    </target>
+
+    <!--PREPARE-TESTS-TO-BE-RUN-->
+    <target name="identify-test">
+        <!--internal-target- is a single slick defined to be run alone? -->
+        <condition property="test.name.known">
+            <!-- has a single test class has been defined?    -->
+            <!-- e.g. ant test -Dtest.name=SlickName    -->
+            <isset property="test.name"/>
+        </condition>
+    </target>
+
+    <target name="prepare-single-test"
+      depends="identify-test"
+            if="test.name.known">
+        <!--internal-target- prepare to run a single Service Impl Compatibility Kit -->
+        <!-- extract the simple Test class name...
+             Command prompt ant calls should define the property as the
+             simple name (without the package hierarchy),
+             e.g. -Dtest.name=GibberishProtocolProviderServiceLick
+             netbeans must format the property using the relative-path-noext
+             rule so that we can extract the simple name. The Felix
+             slick runner ONLY works with unqualified class names. -->
+        <basename property="short.test.name" file="${test.name}"/>
+        <!-- Tell the slick runner which Test class to run. (This will prevent
+             the default external list from being defined.) At this
+             stage we don't know if it will run under felix or standalone-->
+        <property name="net.java.sip.communicator.slick.runner.TEST_LIST"
+                     value="${short.test.name}"/>
+        <property name="net.java.sip.communicator.slick.runner.SLICKLESS_TEST_LIST"
+                     value="${short.test.name}"/>
+    </target>
+
+    <target name="prepare-all-tests"
+            depends="clean-test-reports,prepare-single-test">
+        <!--internal-target- prepare to run all selected Service Impl Compatibility Kits -->
+        <!-- load properties needed for running any/all automated tests.
+             n.b. the local file will select what is meant on this system by
+             "all tests" UNLESS a single test has already been selected. (This
+             is because ant will not replace a property value once set.) -->
+        <available property="test.properties.present"
+                   file="${test.local.properties.file}"/>
+        <fail unless="test.properties.present"
+              message="${test.local.properties.file} not found - did you copy the template?"/>
+        <property file="${test.local.properties.file}"/>
+        <echo message="tests prepared: ${net.java.sip.communicator.slick.runner.TEST_LIST}" />
+        <echo message="slickless tests prepared: ${net.java.sip.communicator.slick.runner.SLICKLESS_TEST_LIST}" />
+    </target>
+
+    <!--RUN-TESTS-->
+    <target name="test"
+        depends="prepare-all-tests,prepare-local-accounts,deploy-os-specific-bundles"
+        description="Starts felix and runs selected Service Impl Compatibility Kits.">
+
+        <!-- Do the testing itself. Note that we don't fail on error as we need
+             to generate an html report before leaving this target.-->
+        <java classname="org.apache.felix.main.Main"
+            fork="true"
+            failonerror="false"
+            resultproperty="test.result.code"
+            classpathref="project.class.path">
+
+            <!-- Tell felix to run as a test environment-->
+            <sysproperty key="felix.config.properties"
+                         value="file:${lib}/felix.unit.test.properties"/>
+
+            <!-- Tell the slick runner where to store test results. -->
+            <sysproperty key="net.java.sip.communicator.slick.runner.OUTPUT_DIR"
+                         value="${test.reports.dir}"/>
+
+            <!-- Tell the slick runner which Test classes to run. -->
+            <sysproperty key="net.java.sip.communicator.slick.runner.TEST_LIST"
+                         value="${net.java.sip.communicator.slick.runner.TEST_LIST}"/>
+
+            <!-- Tell the slickless runner which Test classes to run. -->
+            <sysproperty key="net.java.sip.communicator.slick.runner.SLICKLESS_TEST_LIST"
+                         value="${net.java.sip.communicator.slick.runner.SLICKLESS_TEST_LIST}"/>
+
+            <!-- use a meta contact list file different to normal client. -->
+            <sysproperty key="net.java.sip.communicator.CONTACTLIST_FILE_NAME"
+                         value="net.java.sip.communicator.CONTACTLIST_FILE_NAME"/>
+            <!-- use a configuration file different to normal client. -->
+            <sysproperty key="net.java.sip.communicator.CONFIGURATION_FILE_NAME"
+                         value="net.java.sip.communicator.CONFIGURATION_FILE_NAME"/>
+
+            <!-- Tell java.util.logging about our logging preferences -->
+            <sysproperty key="java.util.logging.config.file"
+                value="${lib}/logging.properties"/>
+
+            <!-- Tell all protocol testers their account details. -->
+            <syspropertyset id="accounts">
+              <propertyref prefix="accounts"/>
+              <propertyref prefix="net"/>
+            </syspropertyset>
+
+            <!-- Setting properties necessary for dependencies on native libs.-->
+            <sysproperty key="java.library.path"
+                path="${ld.library.path}:${path}:${dyld.library.path}"/>
+            <sysproperty key="jna.library.path"
+                path="${ld.library.path}:${path}:${dyld.library.path}"/>
+
+            <env key="LD_LIBRARY_PATH" path="${ld.library.path}"/>
+            <env key="PATH" path="${path}"/>
+            <env key="DYLD_LIBRARY_PATH" path="${dyld.library.path}"/>
+            <env key="DISPLAY" path=":0"/>
+
+        </java>
+
+        <!-- Generate the html report.
+             Run it quietly (i.e. redirect the output) because we don't won't to
+             see its "Build Successful" output line as users might confuse it
+             for a general build success while this might not be the case.-->
+        <echo message="Generating HTML test reports ..."/>
+        <java fork="true"
+              classname="org.apache.tools.ant.launch.Launcher"
+              classpath="${java.class.path}:${lib.noinst}/xalan-2.6.0.jar.ant"
+              failonerror="true"
+              output="${test.html.reports.dir}/output.txt">
+            <arg value="htmlreport"/>
+        </java>
+        <echo message="Done."/>
+        <echo/><echo/>
+        <echo message="Test results available in ./test-reports/html/index.html "/>
+        <echo/>
+
+        <!-- Check whether testing went alright and fail if not.-->
+        <condition property="testing.failed">
+          <not>
+            <equals arg1="0"
+            arg2="${test.result.code}"
+            casesensitive="false" trim="true"/>
+          </not>
+        </condition>
+        <fail if="testing.failed"/>
+    </target>
+
+    <!-- We use this target from within the test target in order to generate
+         a human readable test report. We do not directly use the htmlreport
+         target because we  need to include xalan in the classpath before we
+         do.-->
+    <target name="htmlreport">
+      <junitreport todir="${test.reports.dir}">
+        <fileset dir="${test.reports.dir}">
+          <include name="SC-TEST-*.xml"/>
+        </fileset>
+        <report format="frames" todir="${test.html.reports.dir}"/>
+      </junitreport>
+    </target>
+
+
+    <target name="run-simple-tests"
+            depends="prepare-all-tests,prepare-local-accounts,deploy-os-specific-bundles"
+            description="runs selected non-felix tests under junit.">
+
+        <junit haltonfailure="true" fork="true">
+            <formatter type="brief" usefile="false"/>
+            <test name="net.java.sip.communicator.slick.slickless.SlicklessTests"/>
+            <classpath refid="simple.test.class.path" />
+
+            <!-- Tell the slickless runner which Test classes to run. -->
+            <sysproperty key="net.java.sip.communicator.slick.runner.SLICKLESS_TEST_LIST"
+                         value="${net.java.sip.communicator.slick.runner.SLICKLESS_TEST_LIST}"/>
+
+            <!-- Tell the slick runner where to store test results. -->
+            <sysproperty key="net.java.sip.communicator.slick.runner.OUTPUT_DIR"
+                         value="${test.reports.dir}"/>
+
+            <!-- use a meta contact list file different to normal client. -->
+            <sysproperty key="net.java.sip.communicator.CONTACTLIST_FILE_NAME"
+                         value="net.java.sip.communicator.CONTACTLIST_FILE_NAME"/>
+            <!-- use a configuration file different to normal client. -->
+            <sysproperty key="net.java.sip.communicator.CONFIGURATION_FILE_NAME"
+                         value="net.java.sip.communicator.CONFIGURATION_FILE_NAME"/>
+
+            <!-- Tell java.util.logging about our logging preferences -->
+            <sysproperty key="java.util.logging.config.file"
+                value="${lib}/logging.properties"/>
+
+            <!-- Tell all protocol testers their account details. -->
+            <syspropertyset id="accounts">
+              <propertyref prefix="accounts"/>
+              <propertyref prefix="net"/>
+            </syspropertyset>
+        </junit>
+    </target>
+
+
+    <!--RUN-JITSI -->
+    <target name="run" depends="deploy-os-specific-bundles"
+        description="Starts felix and runs sip-comunicator gui (use latest build).">
+
+        <!-- we allow users to pass command line args using the "args" system
+             property. However we need to manually set tha prop to an empty
+             string here or otherwise the application would get an argument with
+             the value ${args}-->
+        <property name="args" value=""/>
+
+        <!-- Jitsi on Mac OS X uses a JVMTI agent to handle kAEGetURL
+             AppleScript events. -->
+        <condition property="jvmarg.line"
+                value="-agentlib:AEGetURLEventHandlerAgent -Xdock:name='Jitsi' -Xdock:icon='resources/images/logo/sc_logo_128x128.icns'"
+                else="">
+            <isset property="is.running.macos"/>
+        </condition>
+
+        <condition property="jvm.maxheapsize"
+              value="-Xmx256m"
+              else="" >
+             <os arch="i386" />
+        </condition>
+
+        <!-- forking prevents from debugging -->
+        <java classname="net.java.sip.communicator.launcher.SIPCommunicator"
+            fork="true"
+            failonerror="true"
+            classpathref="project.class.path">
+
+            <!-- Sets the charset for the messages -->
+            <!--sysproperty key="icq.custom.message.charset" value="windows-1252"/-->
+
+            <!-- Tell felix to run Jitsi -->
+            <sysproperty key="felix.config.properties"
+                value="file:${lib}/felix.client.run.properties"/>
+
+            <!-- Tell java.util.logging about our logging preferences -->
+            <sysproperty key="java.util.logging.config.file"
+                value="${lib}/logging.properties"/>
+
+            <sysproperty key="java.net.preferIPv6Addresses"
+                value="${java.net.preferIPv6Addresses}"/>
+
+            <sysproperty key="gtalktesting"
+                value="${gtalktesting}"/>
+
+            <!--sysproperty key="net.java.sip.communicator.SC_HOME_DIR_LOCATION"
+                value="${user.home}"/>
+            <sysproperty key="net.java.sip.communicator.SC_HOME_DIR_NAME"
+                value="schome"/-->
+
+            <sysproperty key="smack.debugEnabled"
+                value="${smack.debugEnabled}"/>
+            <!--sysproperty key="smack.debuggerClass"
+                value="org.jivesoftware.smack.debugger.ConsoleDebugger"/-->
+
+            <!-- Setting properties necessary for dependencies on native libs.-->
+            <sysproperty key="java.library.path"
+                path="${ld.library.path}:${path}:${dyld.library.path}"/>
+            <sysproperty key="jna.library.path"
+                path="${ld.library.path}:${path}:${dyld.library.path}"/>
+
+            <env key="LD_LIBRARY_PATH" path="${ld.library.path}"/>
+            <env key="PATH" path="${path}"/>
+            <env key="DYLD_LIBRARY_PATH" path="${dyld.library.path}"/>
+
+            <!-- pass l10n properties from ant call for
+                 easy translation debugging -->
+            <sysproperty key="user.language" value="${user.language}" />
+            <sysproperty key="user.country" value="${user.country}" />
+            <sysproperty key="user.variant" value="${user.variant}" />
+
+            <!-- make sure that we automatically enable system.out when running
+                 Jitsi from Ant-->
+            <arg line="--debug"/>
+            <!-- pass to SC args that have been specified by the user -->
+            <arg line="${args}"/>
+
+            <sysproperty key="org.osgi.framework.bootdelegation"
+                value="${profiler.bootdelegation}" />
+            <sysproperty key="felix.auto.start.68"
+                value="${profiler.autostart}" />
+
+            <!-- add some eventual profiler args, prevent server-class
+                 detection because -server uses much more memory for 32-bit OS
+                 (64-bit always used -server) -->
+            <jvmarg line="${profiler.args} ${jvmarg.line}
+              -client ${jvm.maxheapsize}"/>
+
+            <sysproperty key="apple.laf.useScreenMenuBar" value="true" />
+        </java>
+    </target>
+
+    <!--RUN-JITSI-WITH-INTEGRATED-PROFILER -->
+    <target name="run-with-profiler"
+        description="Starts felix and runs sip-comunicator gui (use latest build) with the hooked classloader."
+        depends="bundle-plugin-profiler4j">
+
+        <antcall target="run">
+            <param name="profiler.args"
+                value="-Xmx128m -javaagent:${lib.noinst}/profiler4j-1.0-beta3-SC.jar" />
+            <param name="profiler.bootdelegation"
+                value="net.sf.profiler4j.agent.*" />
+            <param name="profiler.autostart"
+                value="reference:file:sc-bundles/profiler4j.jar" />
+        </antcall>
+    </target>
+
+    <target name="run-v4" description="Starts SC with a preference for IPv4.">
+        <ant target="run">
+          <property name="java.net.preferIPv6Addresses" value="false"/>
+        </ant>
+    </target>
+
+    <!--PROFILE-JITSI-IN-NETBEANS-IDE -->
+    <target name="profile" depends="bundle-plugin-profiler4j,deploy-os-specific-bundles"
+        description="Profile Project">
+        <fail unless="netbeans.home">
+            This target can only run inside the NetBeans IDE.
+        </fail>
+
+        <nbprofiledirect>
+            <classpath> <pathelement location="${dest}"/> </classpath>
+        </nbprofiledirect>
+
+        <java classname="net.java.sip.communicator.launcher.SIPCommunicator"
+            fork="true"
+            failonerror="true"
+            classpathref="project.class.path">
+
+            <jvmarg value="${profiler.info.jvmargs.agent}"/>
+
+            <!-- Tell felix to run Jitsi -->
+            <sysproperty key="felix.config.properties"
+                value="file:${lib}/felix.client.run.properties"/>
+
+            <!-- Tell java.util.logging about our logging preferences -->
+            <sysproperty key="java.util.logging.config.file"
+                value="${lib}/logging.properties"/>
+
+            <sysproperty key="java.net.preferIPv6Addresses"
+                value="false"/>
+
+            <sysproperty key="net.java.sip.communicator.SC_HOME_DIR_LOCATION"
+                    value="${user.home}/schome"/>
+
+            <!-- Setting properties necessary for dependencies on native libs-->
+            <sysproperty key="java.library.path"
+                path="${ld.library.path}:${path}:${dyld.library.path}"/>
+
+            <!-- pass l10n properties from ant call for
+                     easy translation debugging -->
+            <sysproperty key="user.language" value="${user.language}" />
+            <sysproperty key="user.country" value="${user.country}" />
+            <sysproperty key="user.variant" value="${user.variant}" />
+
+            <env key="LD_LIBRARY_PATH" path="${ld.library.path}"/>
+            <env key="PATH" path="${path}"/>
+            <env key="DYLD_LIBRARY_PATH" path="${dyld.library.path}"/>
+
+        </java>
+
+        <delete file="${bundles.dest}/profiler4j.jar"/>
+    </target>
+
+    <!-- we run this target before we run SC in order to copy os-specific
+             bundles from sc-bundles/osname to its parent sc-bundles-->
+    <target name="deploy-os-specific-bundles" if="bundles.dest.os">
+        <copy todir="${bundles.dest}">
+            <fileset dir="${bundles.dest.os}">
+                <include name="**/*.jar"/>
+            </fileset>
+        </copy>
+    </target>
+
+    <!--CRUISE CONTROL BUILD LOOP target-->
+    <target name="cc-buildloop" depends="rebuild,test"
+            description="Comprehensive (paranoid) rebuild and test (used by Cruise Control)."/>
+
+
+    <!-- - - - - - - - - - - - - - BUNDLE BUILDING TARGETS - - - - - - - -       -->
+    <!--ALL BUNDLES-->
+    <target name="bundles"
+        depends="bundle-sc-launcher,bundle-util,bundle-util-dns,
+        bundle-configuration,bundle-configuration-slick,
+        bundle-history,bundle-history-slick,bundle-messagehistory, bundle-msghistory-slick,
+        bundle-callhistory, bundle-callhistory-slick, bundle-popupmessagehandler-slick,
+        bundle-netaddr,bundle-netaddr-slick,bundle-slickless,
+        bundle-slick-runner,bundle-sip,bundle-sip-slick,bundle-fileaccess,
+        bundle-fileaccess-slick,bundle-neomedia,bundle-hid,bundle-ldap,bundle-googlecontacts,
+        bundle-resource-manager,bundle-resources-defaultpack,
+        bundle-protocol,bundle-protocol-media,bundle-icq,
+        bundle-icq-slick,bundle-mock,bundle-smacklib,bundle-jmdnslib,
+        bundle-jabber,bundle-jabber-slick,bundle-swing-ui,bundle-ui-service,
+        bundle-jnalib,
+        bundle-msn,bundle-msn-slick,bundle-yahoo,bundle-yahoo-slick,
+        bundle-contactlist,meta-contactlist,meta-contactlist-slick,
+        bundle-plugin-icqaccregwizz,bundle-plugin-jabberaccregwizz,
+        bundle-plugin-msnaccregwizz,bundle-plugin-sipaccregwizz,
+        bundle-plugin-yahooaccregwizz,bundle-plugin-aimaccregwizz,
+        bundle-commons-codec,bundle-httputil,bundle-plugin-spellcheck,
+        bundle-version,bundle-version-impl,bundle-shutdown-timeout,
+        bundle-growlnotification,bundle-swingnotification,bundle-galagonotification,
+        bundle-sparkle, bundle-plugin-branding,
+        bundle-systemactivitynotifications,
+        bundle-osdependent,bundle-browserlauncher,
+        bundle-pluginmanager,bundle-skinmanager,
+        bundle-notification-service,bundle-notification-handlers,
+        bundle-notification-wiring,bundle-notification-config,
+        bundle-contacteventhandler,
+        bundle-plugin-contactinfo,bundle-plugin-chatalerter, bundle-keybindings,
+        bundle-plugin-keybindingChooser,bundle-plugin-globalproxyconfig,
+        bundle-jfontchooserlib,bundle-update,bundle-plugin-update,
+        bundle-plugin-simpleaccreg,bundle-plugin-generalconfig,
+        bundle-plugin-googletalkaccregwizz,bundle-argdelegation-service,
+        bundle-argdelegation,bundle-zrtp4j,bundle-sdes4j,bundle-json,
+        bundle-filehistory,bundle-metahistory,bundle-metahistory-slick,
+        bundle-plugin-facebookaccregwizz,bundle-plugin-ippiaccregwizz,
+        bundle-bouncycastle,bundle-plugin-otr,bundle-plugin-iptelaccregwizz,
+        bundle-contactsource,bundle-plugin-reconnect,bundle-plugin-securityconfig,
+        bundle-plugin-advancedconfig,
+        bundle-credentialsstorage,bundle-credentialsstorage-slick,
+        bundle-plugin-nimbuzzavatar,
+        bundle-replacement,bundle-youtube,bundle-dailymotion,bundle-smiley,
+        bundle-vimeo,bundle-vbox7,bundle-metacafe,bundle-flickr,bundle-hulu,
+        bundle-twitpic,bundle-directimage,bundle-bliptv,bundle-viddler,
+        bundle-plugin-chatconfig,bundle-certificate,bundle-packetlogging,
+        bundle-plugin-loggingutils,bundle-plugin-dnsconfig,
+        bundle-provdisc,bundle-provdisc-dhcp,bundle-provdisc-mdns,
+        bundle-provisioning,bundle-addrbook,bundle-plugin-ldap,
+        bundle-plugin-contactsourceconfig,bundle-plugin-certconfig,
+        bundle-globalshortcut,bundle-openmeetings"/>
+
+    <!--BUNDLE-SC-LAUNCHER-->
+    <target name="bundle-sc-launcher">
+        <jar compress="false" destfile="${bundles.dest}/sc-launcher.jar">
+            <zipfileset dir="${dest}/net/java/sip/communicator/launcher"
+                prefix="net/java/sip/communicator/launcher"/>
+        </jar>
+    </target>
+
+    <!--BUNDLE-HISTORY-->
+    <target name="bundle-history">
+        <jar compress="false" destfile="${bundles.dest}/history.jar"
+            manifest="${src}/net/java/sip/communicator/impl/history/history.manifest.mf">
+
+            <zipfileset dir="${dest}/net/java/sip/communicator/service/history"
+                prefix="net/java/sip/communicator/service/history"/>
+            <zipfileset dir="${dest}/net/java/sip/communicator/impl/history"
+                prefix="net/java/sip/communicator/impl/history" />
+        </jar>
+    </target>
+
+    <!--BUNDLE-HISTORY-SLICK-->
+    <target name="bundle-history-slick">
+        <jar compress="false" destfile="${bundles.dest}/history-slick.jar"
+            manifest="${testsrc}/net/java/sip/communicator/slick/history/history.slick.manifest.mf">
+            <zipfileset dir="${dest}/net/java/sip/communicator/slick/history"
+                prefix="net/java/sip/communicator/slick/history"/>
+        </jar>
+    </target>
+
+    <!--BUNDLE-MESSAGEHISTORY-->
+    <target name="bundle-messagehistory">
+        <jar compress="false" destfile="${bundles.dest}/msghistory.jar"
+            manifest="${src}/net/java/sip/communicator/impl/msghistory/msghistory.manifest.mf">
+
+            <zipfileset dir="${dest}/net/java/sip/communicator/service/msghistory"
+                prefix="net/java/sip/communicator/service/msghistory"/>
+            <zipfileset dir="${dest}/net/java/sip/communicator/impl/msghistory"
+                prefix="net/java/sip/communicator/impl/msghistory" />
+        </jar>
+    </target>
+
+    <!--BUNDLE-MESSAGEHISTORY-SLICK-->
+    <target name="bundle-msghistory-slick">
+        <jar compress="false" destfile="${bundles.dest}/msghistory-slick.jar"
+            manifest="${testsrc}/net/java/sip/communicator/slick/msghistory/msghistory.slick.manifest.mf">
+            <zipfileset dir="${dest}/net/java/sip/communicator/slick/msghistory"
+                prefix="net/java/sip/communicator/slick/msghistory"/>
+        </jar>
+    </target>
+
+    <!--BUNDLE-CALLHISTORY-->
+    <target name="bundle-callhistory">
+        <jar compress="false" destfile="${bundles.dest}/callhistory.jar"
+            manifest="${src}/net/java/sip/communicator/impl/callhistory/callhistory.manifest.mf">
+
+            <zipfileset dir="${dest}/net/java/sip/communicator/service/callhistory"
+                prefix="net/java/sip/communicator/service/callhistory"/>
+            <zipfileset dir="${dest}/net/java/sip/communicator/impl/callhistory"
+                prefix="net/java/sip/communicator/impl/callhistory" />
+        </jar>
+    </target>
+
+    <!--BUNDLE-CALLEHISTORY-SLICK-->
+    <target name="bundle-callhistory-slick">
+        <jar compress="false" destfile="${bundles.dest}/callhistory-slick.jar"
+            manifest="${testsrc}/net/java/sip/communicator/slick/callhistory/callhistory.slick.manifest.mf">
+            <zipfileset dir="${dest}/net/java/sip/communicator/slick/callhistory"
+                prefix="net/java/sip/communicator/slick/callhistory"/>
+        </jar>
+    </target>
+
+    <!--BUNDLE-FILEACCESS-->
+    <target name="bundle-fileaccess">
+        <jar compress="false" destfile="${bundles.dest}/fileaccess.jar"
+            manifest="${src}/net/java/sip/communicator/impl/fileaccess/fileaccess.manifest.mf">
+
+            <zipfileset dir="${dest}/net/java/sip/communicator/service/fileaccess"
+                prefix="net/java/sip/communicator/service/fileaccess"/>
+            <zipfileset dir="${dest}/net/java/sip/communicator/impl/fileaccess"
+                prefix="net/java/sip/communicator/impl/fileaccess" />
+        </jar>
+    </target>
+
+    <!--BUNDLE-FILEACCESS-SLICK-->
+    <target name="bundle-fileaccess-slick">
+        <jar compress="false" destfile="${bundles.dest}/fileaccess-slick.jar"
+            manifest="${testsrc}/net/java/sip/communicator/slick/fileaccess/fileaccess.slick.manifest.mf">
+            <zipfileset dir="${dest}/net/java/sip/communicator/slick/fileaccess"
+                prefix="net/java/sip/communicator/slick/fileaccess"/>
+        </jar>
+    </target>
+
+    <!--BUNDLE-UTIL
+        load-properties target is from resources/install/build.xml
+        loads the application name from the install settings.
+     -->
+    <target name="bundle-util" depends="version,load-properties">
+        <!-- Create a properties file that the arg handler could use
+        to determine SC's version -->
+        <echo file="${dest}/net/java/sip/communicator/util/launchutils/version.properties"
+              message="APPLICATION_NAME=${application.name}${line.separator}" />
+        <echo file="${dest}/net/java/sip/communicator/util/launchutils/version.properties"
+              message="PACKAGE_NAME=${package.name}${line.separator}"
+              append="true"/>
+        <echo file="${dest}/net/java/sip/communicator/util/launchutils/version.properties"
+              message="APPLICATION_VERSION=${sip-communicator.version}${line.separator}"
+              append="true"/>
+        <!-- Create the util.jar-->
+        <jar compress="false" destfile="${bundles.dest}/util.jar"
+            manifest="${src}/net/java/sip/communicator/util/util.manifest.mf">
+            <zipfileset dir="${dest}/net/java/sip/communicator/util"
+                prefix="net/java/sip/communicator/util">
+                <exclude name="dns/**"/>
+            </zipfileset>
+            <zipfileset src="${lib.noinst}/dnsjava.jar" prefix=""/>
+            <zipfileset src="lib/installer-exclude/laf-widget.jar" prefix=""/>
+        </jar>
+    </target>
+
+    <!--BUNDLE-UTIL-DNS-->
+    <target name="bundle-util-dns">
+        <!-- Create the dns.jar-->
+        <jar compress="true" destfile="${bundles.dest}/dns.jar"
+            manifest="${src}/net/java/sip/communicator/util/dns/util.dns.manifest.mf">
+            <zipfileset dir="${dest}/net/java/sip/communicator/util/dns"
+                prefix="net/java/sip/communicator/util/dns"/>
+        </jar>
+    </target>
+
+    <!--BUNDLE-CONFIGURATION-->
+    <target name="bundle-configuration">
+        <jar
+            compress="false"
+            destfile="${bundles.dest}/configuration.jar"
+            manifest="${src}/net/java/sip/communicator/impl/configuration/configuration.manifest.mf" >
+
+            <zipfileset dir="${dest}/net/java/sip/communicator/service/configuration"
+                prefix="net/java/sip/communicator/service/configuration"/>
+            <zipfileset dir="${dest}/net/java/sip/communicator/impl/configuration"
+                prefix="net/java/sip/communicator/impl/configuration" />
+        </jar>
+    </target>
+
+    <!--BUNDLE-CONFIGURATION-SLICK-->
+    <target name="bundle-configuration-slick">
+        <jar compress="false" destfile="${bundles.dest}/configuration-slick.jar"
+            manifest="${testsrc}/net/java/sip/communicator/slick/configuration/configuration.slick.manifest.mf">
+            <zipfileset dir="${dest}/net/java/sip/communicator/slick/configuration"
+                prefix="net/java/sip/communicator/slick/configuration"/>
+        </jar>
+    </target>
+
+    <!--BUNDLE-CREDENTIALSSTORAGE-->
+    <target name="bundle-credentialsstorage">
+        <jar
+            compress="false"
+            destfile="${bundles.dest}/credentialsstorage.jar"
+            manifest="${src}/net/java/sip/communicator/impl/credentialsstorage/credentialsstorage.manifest.mf" >
+
+            <zipfileset dir="${dest}/net/java/sip/communicator/service/credentialsstorage"
+                prefix="net/java/sip/communicator/service/credentialsstorage"/>
+            <zipfileset dir="${dest}/net/java/sip/communicator/impl/credentialsstorage"
+                prefix="net/java/sip/communicator/impl/credentialsstorage" />
+        </jar>
+    </target>
+
+    <!--BUNDLE-CREDENTIALSSTORAGE-SLICK-->
+    <target name="bundle-credentialsstorage-slick">
+        <jar compress="false" destfile="${bundles.dest}/credentialsstorage-slick.jar"
+            manifest="${testsrc}/net/java/sip/communicator/slick/credentialsstorage/credentialsstorage.slick.manifest.mf">
+            <zipfileset dir="${dest}/net/java/sip/communicator/slick/credentialsstorage"
+                prefix="net/java/sip/communicator/slick/credentialsstorage"/>
+        </jar>
+    </target>
+
+    <!--BUNDLE-JUNIT -->
+    <target name="bundle-junit">
+        <jar compress="true" destfile="lib/bundle/junit.jar"
+            manifest="${testsrc}/junit/junit.manifest.mf">
+            <zipfileset src="${lib.noinst}/junit.jar" prefix=""/>
+        </jar>
+    </target>
+
+    <!--BUNDLE-NEOMEDIA-->
+    <target name="bundle-neomedia">
+        <!-- Creates a bundle containing the impl of the neomedia package and
+            FMJ. -->
+        <jar
+            compress="false" destfile="${bundles.dest}/neomedia.jar"
+            manifest="${src}/net/java/sip/communicator/impl/neomedia/neomedia.manifest.mf">
+
+            <zipfileset dir="${dest}/net/java/sip/communicator/service/neomedia"
+                prefix="net/java/sip/communicator/service/neomedia"/>
+            <zipfileset dir="${dest}/net/java/sip/communicator/impl/neomedia"
+                prefix="net/java/sip/communicator/impl/neomedia"/>
+            <zipfileset dir="${dest}/net/java/sip/communicator/service/audionotifier"
+                prefix="net/java/sip/communicator/service/audionotifier"/>
+            <zipfileset dir="${resources}/images/impl/media"
+                prefix="resources/images/impl/media"/>
+            <zipfileset src="${lib.noinst}/fmj.jar" prefix=""/>
+            <zipfileset src="${lib.noinst}/jspeex.jar" prefix=""/>
+        </jar>
+    </target>
+
+    <!--BUNDLE-HID -->
+    <target name="bundle-hid">
+        <jar compress="false" destfile="${bundles.dest}/hid.jar"
+            manifest="${src}/net/java/sip/communicator/impl/hid/hid.manifest.mf">
+
+            <zipfileset dir="${dest}/net/java/sip/communicator/service/hid"
+                prefix="net/java/sip/communicator/service/hid"/>
+            <zipfileset dir="${dest}/net/java/sip/communicator/impl/hid"
+                prefix="net/java/sip/communicator/impl/hid" />
+        </jar>
+    </target>
+
+    <!--BUNDLE-LDAP-->
+    <target name="bundle-ldap">
+        <jar compress="false" destfile="${bundles.dest}/ldap.jar"
+            manifest="${src}/net/java/sip/communicator/impl/ldap/ldap.manifest.mf">
+            <zipfileset dir="${dest}/net/java/sip/communicator/service/ldap"
+                prefix="net/java/sip/communicator/service/ldap"/>
+            <zipfileset dir="${dest}/net/java/sip/communicator/impl/ldap"
+                prefix="net/java/sip/communicator/impl/ldap" />
+        </jar>
+    </target>
+
+    <!--BUNDLE-GOOGLECONTACTS-->
+    <target name="bundle-googlecontacts">
+        <jar compress="false" destfile="${bundles.dest}/googlecontacts.jar"
+            manifest="${src}/net/java/sip/communicator/impl/googlecontacts/googlecontacts.manifest.mf">
+            <zipfileset dir="${dest}/net/java/sip/communicator/service/googlecontacts"
+                prefix="net/java/sip/communicator/service/googlecontacts"/>
+            <zipfileset dir="${dest}/net/java/sip/communicator/impl/googlecontacts"
+                prefix="net/java/sip/communicator/impl/googlecontacts" />
+            <zipfileset src="${lib.noinst}/google-collect-1.0-rc1.jar" prefix=""/>
+            <zipfileset src="${lib.noinst}/gdata-core-1.0.jar" prefix=""/>
+            <zipfileset src="${lib.noinst}/gdata-contacts-3.0.jar" prefix=""/>
+            <zipfileset src="${lib.noinst}/gdata-contacts-meta-3.0.jar" prefix=""/>
+            <zipfileset src="${lib.noinst}/gdata-client-1.0.jar" prefix=""/>
+            <zipfileset src="${lib.noinst}/gdata-client-meta-1.0.jar" prefix=""/>
+        </jar>
+    </target>
+
+    <!--BUNDLE-SERVICEBINDER -->
+    <target name="bundle-servicebinder">
+        <jar compress="true" destfile="lib/bundle/servicebinder.jar"
+            filesetmanifest="merge">
+
+            <zipfileset src="${lib}/servicebinder.jar" prefix=""/>
+            <manifest>
+                <attribute name="Import-Package" value="org.osgi.framework"/>
+            </manifest>
+        </jar>
+    </target>
+
+    <!--BUNDLE-ARCHITECTUREVIEWER -->
+    <target name="bundle-architectureviewer">
+        <jar compress="true" destfile="lib/bundle/architectureviewer1.1.jar"
+            filesetmanifest="merge">
+
+            <zipfileset src="${lib.noinst}/architectureviewer1.1.jar" prefix=""/>
+            <manifest>
+                <attribute name="Import-Package"
+                    value="javax.swing, javax.swing.text,
+org.ungoverned.gravity.servicebinder, org.ungoverned.gravity.servicebinder.architecture,
+javax.accessibility, javax.swing.plaf, javax.swing.tree, javax.swing.undo,
+javax.swing.event, javax.swing.border"/>
+            </manifest>
+        </jar>
+    </target>
+
+    <!--BUNDLE-NETADDR -->
+    <target name="bundle-netaddr">
+        <jar compress="false" destfile="${bundles.dest}/netaddr.jar"
+            manifest="${src}/net/java/sip/communicator/impl/netaddr/netaddr.manifest.mf">
+            <zipfileset dir="${dest}/net/java/sip/communicator/service/netaddr"
+                prefix="net/java/sip/communicator/service/netaddr"/>
+            <zipfileset dir="${dest}/net/java/sip/communicator/impl/netaddr"
+                prefix="net/java/sip/communicator/impl/netaddr"/>
+            <zipfileset src="${lib.noinst}/ice4j.jar" prefix=""/>
+            <zipfileset src="${lib.noinst}/weupnp-0.1.2-SNAPSHOT.jar" prefix=""/>
+        </jar>
+    </target>
+
+    <!--BUNDLE-NETADDR-SLICK -->
+    <target name="bundle-netaddr-slick">
+        <jar compress="false" destfile="${bundles.dest}/netaddr-slick.jar"
+            manifest="${testsrc}/net/java/sip/communicator/slick/netaddr/netaddr.slick.manifest.mf">
+            <zipfileset dir="${dest}/net/java/sip/communicator/slick/netaddr"
+                prefix="net/java/sip/communicator/slick/netaddr"/>
+        </jar>
+    </target>
+
+    <!--BUNDLE-SLICKLESS-->
+    <target name="bundle-slickless">
+        <!--internal-target- Runs all tests which do not belong to a service implementation and don't therefore need a running OSGI framework -->
+        <jar compress="false" destfile="${bundles.dest}/slickless.jar"
+            manifest="${testsrc}/net/java/sip/communicator/slick/slickless/slickless.manifest.mf">
+            <zipfileset dir="${dest}/net/java/sip/communicator/slick/slickless"
+                prefix="net/java/sip/communicator/slick/slickless"/>
+        </jar>
+    </target>
+
+    <!--BUNDLE-SLICK-RUNNER-->
+    <target name="bundle-slick-runner">
+        <!--internal-target- Creates a bundle that runs all SLICKs that currently exist in sip-com -->
+        <jar compress="false" destfile="${bundles.dest}/slick-runner.jar"
+            manifest="${testsrc}/net/java/sip/communicator/slick/runner/slick-runner.manifest.mf">
+            <zipfileset dir="${dest}/net/java/sip/communicator/slick/runner"
+                prefix="net/java/sip/communicator/slick/runner"/>
+        </jar>
+    </target>
+
+    <!--BUNDLE-SIP-->
+    <target name="bundle-sip">
+        <!--internal-target- Creates a bundle containing the sip implementation of the protocol provider package -->
+        <jar compress="false" destfile="${bundles.dest}/protocol-sip.jar"
+            manifest="${src}/net/java/sip/communicator/impl/protocol/sip/sip.provider.manifest.mf">
+            <zipfileset dir="${dest}/net/java/sip/communicator/impl/protocol/sip"
+                prefix="net/java/sip/communicator/impl/protocol/sip"/>
+            <zipfileset src="${lib.noinst}/jain-sip-ri.jar" prefix=""/>
+            <zipfileset src="${lib.noinst}/jain-sip-api.jar" prefix=""/>
+            <zipfileset src="${lib.noinst}/jain-sdp.jar" prefix=""/>
+            <zipfileset src="${lib.noinst}/concurrent.jar" prefix=""/>
+        </jar>
+    </target>
+
+    <target name="bundle-sip-slick">
+        <!--internal-target- Creates a bundle containing the all tests for the
+            sip implementation of the protocol provider package -->
+        <jar compress="false" destfile="${bundles.dest}/protocol-sip-slick.jar"
+            manifest="${testsrc}/net/java/sip/communicator/slick/protocol/sip/sip.provider.slick.manifest.mf">
+            <zipfileset dir="${dest}/net/java/sip/communicator/slick/protocol/sip"
+                prefix="net/java/sip/communicator/slick/protocol/sip"/>
+        </jar>
+    </target>
+
+    <!-- BUNDLE-PROTOCOL -->
+    <target name="bundle-protocol">
+        <!-- Creates a bundle containing the protocol provider interfaces.-->
+        <jar compress="false" destfile="${bundles.dest}/protocol.jar"
+            manifest="${src}/net/java/sip/communicator/service/protocol/protocol.provider.manifest.mf">
+            <zipfileset dir="${dest}/net/java/sip/communicator/service/protocol"
+                prefix="net/java/sip/communicator/service/protocol"/>
+            <zipfileset dir="${resources}/images"
+                prefix="resources/images">
+                <include name="protocol/icq/**/*"/>
+                <include name="protocol/googletalk/**/*"/>
+                <include name="protocol/facebook/**/*"/>
+                <include name="protocol/jabber/**/*"/>
+                <include name="protocol/msn/**/*"/>
+                <include name="protocol/yahoo/**/*"/>
+                <!-- the media package lives in the protocol-media bundle -->
+                <exclude name="protocol/media/**/*"/>
+            </zipfileset>
+        </jar>
+    </target>
+
+    <!-- BUNDLE-PROTOCOL -->
+    <target name="bundle-protocol-media">
+        <!-- Creates a bundle containing the media dependent
+             protocol provider interfaces.-->
+        <jar compress="false" destfile="${bundles.dest}/protocol-media.jar"
+            manifest="${src}/net/java/sip/communicator/service/protocol/media/protocol.media.manifest.mf">
+            <zipfileset dir="${dest}/net/java/sip/communicator/service/protocol/media"
+                prefix="net/java/sip/communicator/service/protocol/media"/>
+        </jar>
+    </target>
+
+    <target name="bundle-smacklib">
+        <!-- Creates a bundle containing the smack lib.-->
+        <jar compress="false" destfile="${bundles.dest}/smacklib.jar"
+            manifest="${lib.noinst}/smack.manifest.mf">
+            <zipfileset src="${lib.noinst}/smackx-debug.jar" prefix=""/>
+            <zipfileset src="${lib.noinst}/smack.jar" prefix=""/>
+            <zipfileset src="${lib.noinst}/smackx.jar" prefix=""/>
+            <zipfileset src="${lib.noinst}/jnsapi.jar" prefix=""/>
+        </jar>
+    </target>
+
+    <target name="bundle-jmdnslib">
+        <!-- Creates a bundle containing the jmdns lib.-->
+        <jar compress="false" destfile="${bundles.dest}/jmdnslib.jar"
+            manifest="${lib.noinst}/jmdns.manifest.mf">
+            <zipfileset src="${lib.noinst}/jmdns.jar" prefix=""/>
+        </jar>
+    </target>
+
+    <target name="bundle-jnalib">
+        <!-- Creates a bundle containing the win jna implementation.-->
+        <jar
+            compress="false" destfile="${bundles.dest.win}/jnalib.jar"
+            manifest="${lib.noinst}/jna.manifest.mf">
+
+            <zipfileset src="${lib.win.noinst}/jna.jar" prefix=""/>
+            <zipfileset src="${lib.win.noinst}/jna-platform-win32.jar" prefix=""/>
+        </jar>
+
+        <!-- Creates a bundle containing the linux jna implementation.-->
+        <jar
+            compress="false" destfile="${bundles.dest.lin}/jnalib.jar"
+            manifest="${lib.noinst}/jna.manifest.mf">
+            <zipfileset src="${lib.lin.noinst}/jna.jar" prefix=""/>
+        </jar>
+
+        <!-- Creates a bundle containing the mac jna implementation.-->
+        <jar
+            compress="false" destfile="${bundles.dest.mac}/jnalib.jar"
+            manifest="${lib.noinst}/jna.manifest.mf">
+
+            <zipfileset src="${lib.mac.noinst}/jna.jar" prefix=""/>
+        </jar>
+
+        <!-- Creates a bundle containing the freebsd jna implementation.-->
+        <jar
+            compress="false" destfile="${bundles.dest.freebsd}/jnalib.jar"
+            manifest="${lib.noinst}/jna.manifest.mf">
+
+            <zipfileset src="${lib.freebsd.noinst}/jna.jar" prefix=""/>
+        </jar>
+
+        <!-- Creates a bundle containing the freebsd jna implementation.-->
+        <jar
+            compress="false" destfile="${bundles.dest.sol}/jnalib.jar"
+            manifest="${lib.noinst}/jna.manifest.mf">
+
+            <zipfileset src="${lib.sol.noinst}/jna.jar" prefix=""/>
+        </jar>
+    </target>
+
+    <!-- BUNDLE-ICQ -->
+    <target name="bundle-icq">
+        <!-- Creates a bundle containing the icq impl of the protocol provider.-->
+        <jar compress="false" destfile="${bundles.dest}/protocol-icq.jar"
+            manifest="${src}/net/java/sip/communicator/impl/protocol/icq/icq.provider.manifest.mf">
+            <zipfileset dir="${dest}/net/java/sip/communicator/impl/protocol/icq"
+                prefix="net/java/sip/communicator/impl/protocol/icq"/>
+            <zipfileset src="${lib.noinst}/joscar-client.jar" prefix=""/>
+            <zipfileset src="${lib.noinst}/joscar-common.jar" prefix=""/>
+            <zipfileset src="${lib.noinst}/joscar-protocol.jar" prefix=""/>
+            <zipfileset src="${lib.noinst}/jsocks-klea.jar" prefix=""/>
+        </jar>
+    </target>
+
+    <!-- BUNDLE-ICQ-SLICK -->
+    <target name="bundle-icq-slick">
+        <!-- Creates a bundle containing the slick for the ICQ protocol provider.-->
+        <jar compress="false" destfile="${bundles.dest}/protocol-icq-slick.jar"
+            manifest="${testsrc}/net/java/sip/communicator/slick/protocol/icq/icq.provider.slick.manifest.mf">
+            <zipfileset dir="${dest}/net/java/sip/communicator/slick/protocol/icq"
+                prefix="net/java/sip/communicator/slick/protocol/icq"/>
+            <zipfileset dir="${dest}/net/java/sip/communicator/slick/protocol/generic"
+                prefix="net/java/sip/communicator/slick/protocol/generic"/>
+            <zipfileset src="${lib.noinst}/joscar-client.jar" prefix=""/>
+            <zipfileset src="${lib.noinst}/joscar-common.jar" prefix=""/>
+            <zipfileset src="${lib.noinst}/joscar-protocol.jar" prefix=""/>
+            <zipfileset src="${lib.noinst}/jsocks-klea.jar" prefix=""/>
+        </jar>
+    </target>
+
+     <!--BUNDLE-MOCK-PROVIDER-->
+    <target name="bundle-mock">
+        <!--internal-target- Creates a bundle containing the mock implementation of the protocol provider package -->
+        <jar compress="false" destfile="${bundles.dest}/protocol-mock.jar"
+            manifest="${src}/net/java/sip/communicator/impl/protocol/mock/mock.provider.manifest.mf">
+            <zipfileset dir="${dest}/net/java/sip/communicator/impl/protocol/mock"
+                prefix="net/java/sip/communicator/impl/protocol/mock"/>
+        </jar>
+    </target>
+
+    <!-- BUNDLE-JABBER -->
+    <target name="bundle-jabber">
+        <!-- Creates a bundle containing the jabber impl of the protocol provider.-->
+        <jar compress="false" destfile="${bundles.dest}/protocol-jabber.jar"
+            manifest="${src}/net/java/sip/communicator/impl/protocol/jabber/jabber.provider.manifest.mf">
+            <zipfileset dir="${dest}/net/java/sip/communicator/impl/protocol/jabber"
+                prefix="net/java/sip/communicator/impl/protocol/jabber"/>
+        </jar>
+    </target>
+
+    <!-- BUNDLE-JABBER-SLICK -->
+    <!-- Creates a bundle containing the slick for the Jabber protocol provider.-->
+    <target name="bundle-jabber-slick">
+
+        <jar compress="false" destfile="${bundles.dest}/protocol-jabber-slick.jar"
+            manifest="${testsrc}/net/java/sip/communicator/slick/protocol/jabber/jabber.provider.slick.manifest.mf">
+            <zipfileset dir="${dest}/net/java/sip/communicator/slick/protocol/jabber"
+                prefix="net/java/sip/communicator/slick/protocol/jabber"/>
+            <zipfileset dir="${dest}/net/java/sip/communicator/slick/protocol/generic"
+                prefix="net/java/sip/communicator/slick/protocol/generic"/>
+        </jar>
+    </target>
+
+    <!-- BUNDLE-MSN -->
+    <target name="bundle-msn">
+        <!-- Creates a bundle containing the msn impl of the protocol provider.-->
+        <jar compress="false" destfile="${bundles.dest}/protocol-msn.jar"
+            manifest="${src}/net/java/sip/communicator/impl/protocol/msn/msn.provider.manifest.mf">
+            <zipfileset dir="${dest}/net/java/sip/communicator/impl/protocol/msn"
+                prefix="net/java/sip/communicator/impl/protocol/msn"/>
+            <zipfileset src="${lib.noinst}/jml-1.0b5.jar" prefix=""/>
+        </jar>
+    </target>
+
+    <!-- BUNDLE-MSN-SLICK -->
+    <!-- Creates a bundle containing the slick for the Msn protocol provider.-->
+    <target name="bundle-msn-slick">
+        <jar compress="false" destfile="${bundles.dest}/protocol-msn-slick.jar"
+            manifest="${testsrc}/net/java/sip/communicator/slick/protocol/msn/msn.provider.slick.manifest.mf">
+            <zipfileset dir="${dest}/net/java/sip/communicator/slick/protocol/msn"
+                prefix="net/java/sip/communicator/slick/protocol/msn"/>
+            <zipfileset src="${lib.noinst}/jml-1.0b5.jar" prefix=""/>
+            <zipfileset dir="${dest}/net/java/sip/communicator/slick/protocol/generic"
+                prefix="net/java/sip/communicator/slick/protocol/generic"/>
+        </jar>
+    </target>
+
+    <!-- BUNDLE-SSH -->
+    <target name="bundle-ssh">
+        <!-- Creates a bundle containing the SSH impl of the protocol provider.-->
+        <jar compress="false" destfile="${bundles.dest}/protocol-ssh.jar"
+            manifest="${src}/net/java/sip/communicator/impl/protocol/ssh/ssh.provider.manifest.mf">
+            <zipfileset dir="${dest}/net/java/sip/communicator/impl/protocol/ssh"
+                prefix="net/java/sip/communicator/impl/protocol/ssh"/>
+            <zipfileset src="${lib.noinst}/jsch-0.1.36.jar" prefix=""/>
+        </jar>
+    </target>
+
+    <!-- BUNDLE-PLUGIN-SSHACCREGWIZZ -->
+    <target name="bundle-plugin-sshaccregwizz">
+        <!-- Creates a bundle for the plugin SSH Account Registration Wizard.-->
+        <jar compress="false" destfile="${bundles.dest}/sshaccregwizz.jar"
+            manifest="${src}/net/java/sip/communicator/plugin/sshaccregwizz/sshaccregwizz.manifest.mf">
+            <zipfileset dir="${dest}/net/java/sip/communicator/plugin/sshaccregwizz"
+                prefix="net/java/sip/communicator/plugin/sshaccregwizz"/>
+        </jar>
+    </target>
+
+    <!-- BUNDLE-YAHOO -->
+    <target name="bundle-yahoo">
+        <!-- Creates a bundle containing the yahoo impl of the protocol provider.-->
+        <jar compress="false" destfile="${bundles.dest}/protocol-yahoo.jar"
+            manifest="${src}/net/java/sip/communicator/impl/protocol/yahoo/yahoo.provider.manifest.mf">
+            <zipfileset dir="${dest}/net/java/sip/communicator/impl/protocol/yahoo"
+                prefix="net/java/sip/communicator/impl/protocol/yahoo"/>
+            <zipfileset src="${lib.noinst}/ymsg_network_v0_67.jar" prefix=""/>
+        </jar>
+    </target>
+
+    <!-- BUNDLE-YAHOO-SLICK -->
+    <!-- Creates a bundle containing the slick for the Yahoo protocol provider.-->
+    <target name="bundle-yahoo-slick">
+        <jar compress="false" destfile="${bundles.dest}/protocol-yahoo-slick.jar"
+            manifest="${testsrc}/net/java/sip/communicator/slick/protocol/yahoo/yahoo.provider.slick.manifest.mf">
+            <zipfileset dir="${dest}/net/java/sip/communicator/slick/protocol/yahoo"
+                prefix="net/java/sip/communicator/slick/protocol/yahoo"/>
+            <zipfileset src="${lib.noinst}/ymsg_network_v0_67.jar" prefix=""/>
+            <zipfileset dir="${dest}/net/java/sip/communicator/slick/protocol/generic"
+                prefix="net/java/sip/communicator/slick/protocol/generic"/>
+        </jar>
+    </target>
+
+    <!-- BUNDLE-GIBBERISH -->
+    <target name="bundle-gibberish">
+        <!-- Creates a bundle containing the Gibberish impl of the protocol provider.-->
+        <jar compress="false" destfile="${bundles.dest}/protocol-gibberish.jar"
+             manifest="${src}/net/java/sip/communicator/impl/protocol/gibberish/gibberish.provider.manifest.mf">
+        <zipfileset dir="${dest}/net/java/sip/communicator/impl/protocol/gibberish"
+                    prefix="net/java/sip/communicator/impl/protocol/gibberish"/>
+        <!-- zipfileset src="${lib.noinst}/gibberish_stack.jar" prefix=""/-->
+        </jar>
+    </target>
+
+    <!-- BUNDLE-GIBBERISH-SLICK -->
+    <!-- Creates a bundle containing the slick for the Gibberish protocol
+         provider.-->
+    <target name="bundle-gibberish-slick">
+        <jar compress="false" destfile="${bundles.dest}/protocol-gibberish-slick.jar"
+            manifest="${testsrc}/net/java/sip/communicator/slick/protocol/gibberish/gibberish.provider.slick.manifest.mf">
+            <zipfileset dir="${dest}/net/java/sip/communicator/slick/protocol/gibberish"
+                prefix="net/java/sip/communicator/slick/protocol/gibberish"/>
+        </jar>
+    </target>
+
+    <!-- BUNDLE-UI-SERVICE -->
+    <target name="bundle-ui-service">
+        <!-- Bundle Jitsi's UI.-->
+        <jar compress="false" destfile="${bundles.dest}/ui-service.jar"
+            manifest="${src}/net/java/sip/communicator/service/gui/gui.manifest.mf">
+            <zipfileset dir="${dest}/net/java/sip/communicator/service/gui"
+                prefix="net/java/sip/communicator/service/gui"/>
+            <zipfileset dir="${dest}/net/java/sip/communicator/service/shutdown"
+                prefix="net/java/sip/communicator/service/shutdown"/>
+        </jar>
+    </target>
+
+    <!-- BUNDLE-SWING-UI -->
+    <target name="bundle-swing-ui">
+        <!-- Bundle Jitsi's UI.-->
+        <jar compress="false" destfile="${bundles.dest}/swing-ui.jar"
+            manifest="${src}/net/java/sip/communicator/impl/gui/swing.ui.manifest.mf">
+            <zipfileset dir="${dest}/net/java/sip/communicator/impl/gui"
+                prefix="net/java/sip/communicator/impl/gui"/>
+            <zipfileset src="lib/installer-exclude/transparency.jar" prefix=""/>
+            <zipfileset src="lib/installer-exclude/swing-worker-1.2.jar" prefix=""/>
+            <zipfileset src="lib/installer-exclude/mac_widgets-0.9.5.jar" prefix=""/>
+            <zipfileset src="lib/installer-exclude/forms-1.2.1.jar" prefix=""/>
+        </jar>
+    </target>
+
+    <!-- BUNDLE-CONTACTLIST -->
+    <target name="bundle-contactlist">
+        <!-- Creates a bundle containing the contactlist interfaces.-->
+        <jar compress="false" destfile="${bundles.dest}/contactlist.jar"
+            manifest="${src}/net/java/sip/communicator/service/contactlist/contactlist.manifest.mf">
+            <zipfileset dir="${dest}/net/java/sip/communicator/service/contactlist"
+                prefix="net/java/sip/communicator/service/contactlist"/>
+        </jar>
+    </target>
+
+    <!-- BUNDLE-META-CONTACTLIST -->
+    <target name="meta-contactlist">
+        <!-- Creates the meta contact list bundle.-->
+        <jar compress="false" destfile="${bundles.dest}/meta-cl.jar"
+            manifest="${src}/net/java/sip/communicator/impl/contactlist/meta.cl.manifest.mf">
+            <zipfileset dir="${dest}/net/java/sip/communicator/impl/contactlist"
+                prefix="net/java/sip/communicator/impl/contactlist"/>
+        </jar>
+    </target>
+
+    <!-- BUNDLE-META-CONTACTLIST-SLICK -->
+    <target name="meta-contactlist-slick">
+        <!-- Creates a bundle for the meta contact list SLICK.-->
+        <jar compress="false" destfile="${bundles.dest}/meta-cl-slick.jar"
+            manifest="${testsrc}/net/java/sip/communicator/slick/contactlist/meta.cl.slick.manifest.mf">
+            <zipfileset dir="${dest}/net/java/sip/communicator/slick/contactlist"
+                prefix="net/java/sip/communicator/slick/contactlist"/>
+        </jar>
+    </target>
+
+    <!-- BUNDLE-PLUGIN-ICQACCREGWIZZ -->
+    <target name="bundle-plugin-icqaccregwizz">
+        <!-- Creates a bundle for the plugin Icq Account Registration Wizard.-->
+        <jar compress="false" destfile="${bundles.dest}/icqaccregwizz.jar"
+            manifest="${src}/net/java/sip/communicator/plugin/icqaccregwizz/icqaccregwizz.manifest.mf">
+            <zipfileset dir="${dest}/net/java/sip/communicator/plugin/icqaccregwizz"
+                prefix="net/java/sip/communicator/plugin/icqaccregwizz"/>
+        </jar>
+    </target>
+
+    <!-- BUNDLE-PLUGIN-AIMACCREGWIZZ -->
+    <target name="bundle-plugin-aimaccregwizz">
+        <!-- Creates a bundle for the plugin Aim Account Registration Wizard.-->
+        <jar compress="false" destfile="${bundles.dest}/aimaccregwizz.jar"
+            manifest="${src}/net/java/sip/communicator/plugin/aimaccregwizz/aimaccregwizz.manifest.mf">
+            <zipfileset dir="${dest}/net/java/sip/communicator/plugin/aimaccregwizz"
+                prefix="net/java/sip/communicator/plugin/aimaccregwizz"/>
+        </jar>
+    </target>
+
+    <!-- BUNDLE-PLUGIN-JABBERACCREGWIZZ -->
+    <target name="bundle-plugin-jabberaccregwizz">
+        <!-- Creates a bundle for the plugin Jabber Account Registration Wizard.-->
+        <jar compress="false" destfile="${bundles.dest}/jabberaccregwizz.jar"
+            manifest="${src}/net/java/sip/communicator/plugin/jabberaccregwizz/jabberaccregwizz.manifest.mf">
+            <zipfileset dir="${dest}/net/java/sip/communicator/plugin/jabberaccregwizz"
+                prefix="net/java/sip/communicator/plugin/jabberaccregwizz"/>
+        </jar>
+    </target>
+
+    <!-- BUNDLE-PLUGIN-GOOGLETALKACCREGWIZZ -->
+    <target name="bundle-plugin-googletalkaccregwizz">
+        <!-- Creates a bundle for the plugin Google Talk Account Registration Wizard.-->
+        <jar compress="false" destfile="${bundles.dest}/googletalkaccregwizz.jar"
+            manifest="${src}/net/java/sip/communicator/plugin/googletalkaccregwizz/googletalkaccregwizz.manifest.mf">
+            <zipfileset dir="${dest}/net/java/sip/communicator/plugin/googletalkaccregwizz"
+                prefix="net/java/sip/communicator/plugin/googletalkaccregwizz"/>
+        </jar>
+    </target>
+
+    <!-- BUNDLE-PLUGIN-MSNACCREGWIZZ -->
+    <target name="bundle-plugin-msnaccregwizz">
+        <!-- Creates a bundle for the plugin Msn Account Registration Wizard.-->
+        <jar compress="false" destfile="${bundles.dest}/msnaccregwizz.jar"
+            manifest="${src}/net/java/sip/communicator/plugin/msnaccregwizz/msnaccregwizz.manifest.mf">
+            <zipfileset dir="${dest}/net/java/sip/communicator/plugin/msnaccregwizz"
+                prefix="net/java/sip/communicator/plugin/msnaccregwizz"/>
+        </jar>
+    </target>
+
+    <!-- BUNDLE-PLUGIN-YAHOOACCREGWIZZ -->
+    <target name="bundle-plugin-yahooaccregwizz">
+        <!-- Creates a bundle for the plugin Yahoo Account Registration Wizard.-->
+        <jar compress="false" destfile="${bundles.dest}/yahooaccregwizz.jar"
+            manifest="${src}/net/java/sip/communicator/plugin/yahooaccregwizz/yahooaccregwizz.manifest.mf">
+            <zipfileset dir="${dest}/net/java/sip/communicator/plugin/yahooaccregwizz"
+                prefix="net/java/sip/communicator/plugin/yahooaccregwizz"/>
+        </jar>
+    </target>
+
+    <!-- BUNDLE-PLUGIN-SIPACCREGWIZZ -->
+    <target name="bundle-plugin-sipaccregwizz">
+        <!-- Creates a bundle for the plugin SIP Account Registration Wizard.-->
+        <jar compress="false" destfile="${bundles.dest}/sipaccregwizz.jar"
+            manifest="${src}/net/java/sip/communicator/plugin/sipaccregwizz/sipaccregwizz.manifest.mf">
+            <zipfileset dir="${dest}/net/java/sip/communicator/plugin/sipaccregwizz"
+                prefix="net/java/sip/communicator/plugin/sipaccregwizz"/>
+        </jar>
+    </target>
+
+    <!-- BUNDLE-PLUGIN-IPTELACCREGWIZZ -->
+    <target name="bundle-plugin-iptelaccregwizz">
+        <!-- Creates a bundle for the plugin IP Tel Account Registration Wizard.-->
+        <jar compress="false" destfile="${bundles.dest}/iptelaccregwizz.jar"
+            manifest="${src}/net/java/sip/communicator/plugin/iptelaccregwizz/iptelaccregwizz.manifest.mf">
+            <zipfileset dir="${dest}/net/java/sip/communicator/plugin/iptelaccregwizz"
+                prefix="net/java/sip/communicator/plugin/iptelaccregwizz"/>
+        </jar>
+    </target>
+
+    <!-- BUNDLE-PLUGIN-SIP2SIPACCREGWIZZ -->
+    <target name="bundle-plugin-sip2sipaccregwizz">
+        <!-- Creates a bundle for the plugin Sip2Sip Account Registration Wizard.-->
+        <jar compress="false" destfile="${bundles.dest}/sip2sipaccregwizz.jar"
+            manifest="${src}/net/java/sip/communicator/plugin/sip2sipaccregwizz/sip2sipaccregwizz.manifest.mf">
+            <zipfileset dir="${dest}/net/java/sip/communicator/plugin/sip2sipaccregwizz"
+                prefix="net/java/sip/communicator/plugin/sip2sipaccregwizz"/>
+        </jar>
+    </target>
+
+    <!-- BUNDLE-PLUGIN-IPPIACCREGWIZZ -->
+    <target name="bundle-plugin-ippiaccregwizz">
+        <!-- Creates a bundle for the plugin ippi Account Registration Wizard.-->
+        <jar compress="false" destfile="${bundles.dest}/ippiaccregwizz.jar"
+            manifest="${src}/net/java/sip/communicator/plugin/ippiaccregwizz/ippiaccregwizz.manifest.mf">
+            <zipfileset dir="${dest}/net/java/sip/communicator/plugin/ippiaccregwizz"
+                prefix="net/java/sip/communicator/plugin/ippiaccregwizz"/>
+        </jar>
+    </target>
+
+    <!-- BUNDLE-PLUGIN-GIBBERISHACCREGWIZZ -->
+    <target name="bundle-plugin-gibberishaccregwizz">
+        <!-- Creates a bundle for the plugin Gibberish Account Registration
+             Wizard.-->
+        <jar compress="false" destfile="${bundles.dest}/gibberishaccregwizz.jar"
+            manifest="${src}/net/java/sip/communicator/plugin/gibberishaccregwizz/gibberishaccregwizz.manifest.mf">
+            <zipfileset dir="${dest}/net/java/sip/communicator/plugin/gibberishaccregwizz"
+                prefix="net/java/sip/communicator/plugin/gibberishaccregwizz"/>
+        </jar>
+    </target>
+
+    <!-- BUNDLE-PLUGIN-FACEBOOKACCREGWIZZ -->
+    <target name="bundle-plugin-facebookaccregwizz">
+        <!-- Creates a bundle for the plugin Facebook Account Registration
+             Wizard.-->
+        <jar compress="false" destfile="${bundles.dest}/facebookaccregwizz.jar"
+                manifest="${src}/net/java/sip/communicator/plugin/facebookaccregwizz/facebookaccregwizz.manifest.mf">
+            <zipfileset dir="${dest}/net/java/sip/communicator/plugin/facebookaccregwizz"
+                    prefix="net/java/sip/communicator/plugin/facebookaccregwizz" />
+        </jar>
+    </target>
+
+    <!-- BUNDLE-SERVICE-VERSION -->
+    <target name="bundle-version">
+        <!-- Creates a bundle for the version service.-->
+        <jar compress="false" destfile="${bundles.dest}/version.jar"
+            manifest="${src}/net/java/sip/communicator/service/version/version.manifest.mf">
+            <zipfileset dir="${dest}/net/java/sip/communicator/service/version"
+                prefix="net/java/sip/communicator/service/version"/>
+        </jar>
+    </target>
+
+    <!-- BUNDLE-SERVICEIMPL-VERSION -->
+    <target name="bundle-version-impl">
+        <!-- Creates a bundle for the version service impl.-->
+        <jar compress="false" destfile="${bundles.dest}/version-impl.jar"
+            manifest="${src}/net/java/sip/communicator/impl/version/version.impl.manifest.mf">
+            <zipfileset dir="${dest}/net/java/sip/communicator/impl/version"
+                prefix="net/java/sip/communicator/impl/version"/>
+        </jar>
+    </target>
+
+    <!-- BUNDLE-SERVICELICK-VERSION -->
+    <target name="bundle-version-slick">
+        <!-- Creates a bundle for the version service slick.-->
+        <jar compress="false" destfile="${bundles.dest}/version-slick.jar"
+            manifest="${testsrc}/net/java/sip/communicator/slick/version/version.slick.manifest.mf">
+            <zipfileset dir="${dest}/net/java/sip/communicator/slick/version"
+                prefix="net/java/sip/communicator/slick/version"/>
+        </jar>
+    </target>
+
+    <!-- BUNDLE-SHUTDOWN-TIMEOUT -->
+    <target name="bundle-shutdown-timeout">
+        <!-- Creates a bundle for the shutdown-timeout plugin.-->
+        <jar compress="false" destfile="${bundles.dest}/shutdown-timeout.jar"
+            manifest="${src}/net/java/sip/communicator/impl/shutdowntimeout/shutdown.timeout.manifest.mf">
+            <zipfileset dir="${dest}/net/java/sip/communicator/impl/shutdowntimeout"
+                prefix="net/java/sip/communicator/impl/shutdowntimeout"/>
+        </jar>
+    </target>
+
+    <!--BUNDLE-GROWLNOTIFICATION-->
+    <target name="bundle-growlnotification">
+        <!-- Creates a bundle for the growlnotification plugin.-->
+        <jar compress="false" destfile="${bundles.dest.mac}/growlnotification.jar"
+            manifest="${src}/net/java/sip/communicator/impl/growlnotification/growlnotification.manifest.mf">
+            <zipfileset dir="${dest}/net/java/sip/communicator/impl/growlnotification"
+                prefix="net/java/sip/communicator/impl/growlnotification" />
+        </jar>
+    </target>
+
+    <!--BUNDLE-SWINGNOTIFICATION-->
+    <target name="bundle-swingnotification">
+        <!-- Creates a bundle for the swingnotification plugin.-->
+        <jar compress="false" destfile="${bundles.dest}/swingnotification.jar"
+            manifest="${src}/net/java/sip/communicator/impl/swingnotification/swingnotification.manifest.mf">
+            <zipfileset dir="${dest}/net/java/sip/communicator/impl/swingnotification"
+                prefix="net/java/sip/communicator/impl/swingnotification" />
+        </jar>
+    </target>
+
+    <!--BUNDLE-GALAGONOTIFICATION-->
+    <target name="bundle-galagonotification">
+        <!-- Creates a bundle for the galagonotification plugin. -->
+        <jar compress="false" destfile="${bundles.dest.lin}/galagonotification.jar"
+            manifest="${src}/net/java/sip/communicator/impl/galagonotification/galagonotification.manifest.mf">
+            <zipfileset dir="${dest}/net/java/sip/communicator/impl/galagonotification"
+                prefix="net/java/sip/communicator/impl/galagonotification" />
+        </jar>
+    </target>
+
+    <!--BUNDLE-POPUPMESSAGEHANDLER-SLICK-->
+    <target name="bundle-popupmessagehandler-slick">
+        <jar compress="false" destfile="${bundles.dest}/popupmessagehandler-slick.jar"
+            manifest="${testsrc}/net/java/sip/communicator/slick/popupmessagehandler/popupmessagehandler.slick.manifest.mf">
+            <zipfileset dir="${dest}/net/java/sip/communicator/slick/popupmessagehandler"
+                prefix="net/java/sip/communicator/slick/popupmessagehandler"/>
+        </jar>
+    </target>
+
+    <!--BUNDLE-SPARKLE-->
+    <target name="bundle-sparkle">
+        <!-- Creates a bundle for the sparkle activator plugin.-->
+        <jar compress="false" destfile="${bundles.dest.mac}/sparkle.jar"
+            manifest="${src}/net/java/sip/communicator/impl/sparkle/sparkle.manifest.mf">
+            <zipfileset dir="${dest}/net/java/sip/communicator/impl/sparkle"
+                prefix="net/java/sip/communicator/impl/sparkle" />
+        </jar>
+    </target>
+
+    <!-- BUNDLE-PLUGIN-EXAMPLE PLUGIN -->
+        <target name="bundle-plugin-exampleplugin">
+            <!-- Creates a bundle for the plugin SIP Account Registration Wizard.-->
+            <jar compress="false" destfile="${bundles.dest}/exampleplugin.jar"
+                manifest="${src}/net/java/sip/communicator/plugin/exampleplugin/exampleplugin.manifest.mf">
+                <zipfileset dir="${dest}/net/java/sip/communicator/plugin/exampleplugin"
+                    prefix="net/java/sip/communicator/plugin/exampleplugin"/>
+            </jar>
+        </target>
+
+    <!-- BUNDLE-PLUGIN-BRANDING -->
+        <target name="bundle-plugin-branding">
+            <!-- Creates a bundle for the Splash Screen plugin.-->
+        <jar compress="false" destfile="${bundles.dest}/branding.jar"
+            manifest="${src}/net/java/sip/communicator/plugin/branding/branding.manifest.mf">
+            <zipfileset dir="${dest}/net/java/sip/communicator/plugin/branding"
+                prefix="net/java/sip/communicator/plugin/branding"/>
+            </jar>
+        </target>
+
+    <!--BUNDLE-OSDEPENDENT-->
+    <target name="bundle-osdependent">
+        <!-- Creates a bundle for the OS dependent packages like systray and desktop."-->
+        <jar
+            compress="false" destfile="${bundles.dest}/osdependent.jar"
+            manifest="${src}/net/java/sip/communicator/impl/osdependent/osdependent.manifest.mf">
+            <zipfileset dir="${dest}/net/java/sip/communicator/service/systray"
+                prefix="net/java/sip/communicator/service/systray"/>
+            <zipfileset dir="${dest}/net/java/sip/communicator/service/desktop"
+                prefix="net/java/sip/communicator/service/desktop"/>
+            <zipfileset dir="${dest}/net/java/sip/communicator/impl/osdependent"
+                prefix="net/java/sip/communicator/impl/osdependent"/>
+        </jar>
+    </target>
+
+    <!-- BUNDLE-BROWSER LAUNCHER -->
+    <target name="bundle-browserlauncher">
+        <!-- Creates a bundle for the browser launcher.-->
+        <jar compress="false" destfile="${bundles.dest}/browserlauncher.jar"
+            manifest="${src}/net/java/sip/communicator/impl/browserlauncher/browserlauncher.manifest.mf">
+            <zipfileset dir="${dest}/net/java/sip/communicator/service/browserlauncher"
+                prefix="net/java/sip/communicator/service/browserlauncher"/>
+            <zipfileset dir="${dest}/net/java/sip/communicator/impl/browserlauncher"
+                prefix="net/java/sip/communicator/impl/browserlauncher"/>

[... 914 lines stripped ...]