Initial commit for sip-communicator-1.0

cusax-fix
Emil Ivov 20 years ago
parent d7358d7e55
commit 2b974d96e1

@ -0,0 +1,420 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Created by Emil Ivov on Jul 6, 2005 8:30:22 PM-->
<project basedir="." default="rebuild" name="sip-communicator-1.0">
<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="doc" value="doc"/>
<property name="java.doc" value="${doc}/api"/>
<property name="lib" value="lib"/>
<property name="native.libs" value="lib/native"/>
<property name="src" value="src"/>
<property name="src2" value="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"/>
<!-- windows -->
<condition property="jmf.home" value="${lib}/jmf-win">
<os family="windows"/>
</condition>
<condition property="is.running.windows" value="${os.name}">
<os family="windows"/>
</condition>
<!-- linux -->
<condition property="jmf.home" value="${lib}/jmf-lin">
<equals arg1="${os.name}" arg2="linux" casesensitive="false" trim="true"/>
</condition>
<condition property="is.running.linux" value="${os.name}">
<equals arg1="${os.name}" arg2="linux" casesensitive="false" trim="true"/>
</condition>
<!-- solaris -->
<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="jmf.home" value="${lib}/jmf-sol">
<equals arg1="${os.name}" arg2="solaris" casesensitive="false" trim="true"/>
</condition>
<condition property="jmf.home" value="${lib}/jmf-sol">
<equals arg1="${os.name}" arg2="SunOS" casesensitive="false" trim="true"/>
</condition>
<property name="jmf.home" value="${lib}/jmf-all"/>
<condition property="jmf.performancepack.available" value="true">
<not>
<equals arg1="${jmf.home}" arg2="${lib}/jmf-all"
casesensitive="false" trim="true"/>
</not>
</condition>
<!-- end jmf.home-->
<path id="project.class.path">
<pathelement location="${dest}"/>
<!-- Include all JAR files found in lib and any of its subdirectories. -->
<fileset dir="${lib}">
<include name="**/*.jar"/>
</fileset>
</path>
<!-- java compile -->
<target name="compile" depends="init"
description="Runs javac on the project source tree.">
<javac classpathref="project.class.path" debug="true"
deprecation="true" destdir="${dest}" nowarn="false"
source="1.4" target="1.4">
<src path="${src}"/>
<src path="${src2}"/>
</javac>
</target>
<!-- clean -->
<target name="clean"
description="Remove all generated files and get ready for a clean restart.">
<delete file="${bundles.dest}/configuration.jar"/>
<delete file="${bundles.dest}/configuration-slick.jar"/>
<delete failonerror="false" includeemptydirs="true">
<fileset dir="${dest}"/>
<fileset dir="${bundles.dest}"/>
<fileset dir="${bin}"/>
<fileset dir="${utest.bin}"/>
<fileset dir="${native.libs}"/>
<fileset dir="${java.doc}"/>
<fileset dir="${test.reports.dir}"/>
</delete>
</target>
<!-- resource -->
<target name="resource"
description="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="**/*.jpg"/>
<include name="**/*.properties"/>
<include name="**/*.xml"/>
</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"/>
</fileset>
</copy>
</target>
<!-- JAVADOC -->
<target name="javadoc">
<javadoc author="true" destdir="${java.doc}" package="true"
version="true" use="true" windowtitle="SIP Communicator API"
classpathref="project.class.path" source="1.4+">
<fileset dir="${src}"/>
<tag name="todo" description="To do:"/>
</javadoc>
</target>
<!--PACKAGE-->
<target name="package"
depends="javadoc,resource"
description="Create java doc, and copy resource files"/>
<!--MAKE-->
<target name="make" depends="compile,package"
description="compile and package the project"/>
<!--REBUILD-->
<target name="rebuild" depends="clean,make"
description="clean,re-compile and package the project"/>
<!--INIT-->
<target name="init">
<mkdir dir="${dest}"/>
<mkdir dir="${doc}"/>
<mkdir dir="${java.doc}"/>
<mkdir dir="${bundles.dest}"/>
<mkdir dir="${test.reports.dir}"/>
<!-- set the jmf.performancepack.extracted property so that we know
whether we'll have to extract jmf native libs -->
<condition property="jmf.performancepack.extracted">
<available file="${native.libs}"/>
</condition>
<ant target="extractnativejmf"/>
</target>
<!-- Verifies whether we have a jmf performance pack for the current
operating system and extracts it in the lib/native directory -->
<target name="extractnativejmf"
if="jmf.performancepack.available"
unless="jmf.performancepack.extracted"
description="Verifies whether we have a jmf performance pack for
the current operating system and extracts it in the
lib/native directory">
<echo>
Extracting ${os.name} performance pack native libs
from: ${jmf.home}/jmf-native.jar
to:${native.libs}
</echo>
<unjar dest="${native.libs}" overwrite="true" >
<fileset dir="${jmf.home}">
<include name="jmf-native.jar"/>
</fileset>
</unjar>
</target>
<!--RUN-TESTS-->
<target name="test" depends="init"
description="starts oscar and runs all Service Impl Compatibility Kits">
<java classname="org.ungoverned.oscar.Main"
fork="true"
failonerror="true"
classpathref="project.class.path">
<!-- The following two configure oscar telling it that it's running
as a test environment-->
<sysproperty key="oscar.config.properties"
value="file:./lib/oscar.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 about TestSutes we've preregistered. -->
<sysproperty key="net.java.sip.communicator.slick.runner.TEST_LIST"
value="
ConfigurationServiceLick
MediaServiceLick
NetworkAddressManagerServiceLick
ResourcesServicesLick
HistoryServiceLick
SlicklessTests
"/>
<!-- Tell java.util.logging about our logging preferences -->
<sysproperty key="java.util.logging.config.file"
value="lib/logging.properties"/>
</java>
</target>
<target name="cc-buildloop" depends="rebuild,bundles,test"/>
<!-- - - - - - - - - - - - - - BUNDLE BUILDING TARGETS - - - - - - - - - -->
<!--ALL BUNDLES-->
<target name="bundles"
depends="bundle-servicebinder,bundle-util,bundle-configuration,
bundle-history,bundle-history-slick,bundle-configuration-slick,
bundle-netaddr,bundle-netaddr-slick,bundle-slickless,
bundle-slick-runner,bundle-sip,bundle-resources,bundle-resources-slick,
bundle-media,bundle-media-slick"/>
<!--BUNDLE-HISTORY-->
<target name="bundle-history" depends="rebuild">
<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" />
<zipfileset dir="${dest}/net/java/sip/communicator/service/protocol"
prefix="net/java/sip/communicator/service/protocol">
<include name="Contact*"/>
</zipfileset>
</jar>
</target>
<!--BUNDLE-HISTORY-SLICK-->
<target name="bundle-history-slick" depends="rebuild">
<jar compress="false" destfile="${bundles.dest}/history-slick.jar"
manifest="test/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-RESOURCES-->
<target name="bundle-resources" depends="rebuild">
<jar compress="false" destfile="${bundles.dest}/resources.jar"
manifest="src/net/java/sip/communicator/impl/resources/resources.manifest.mf">
<zipfileset dir="${dest}/net/java/sip/communicator/service/resources"
prefix="net/java/sip/communicator/service/resources"/>
<zipfileset dir="${dest}/net/java/sip/communicator/impl/resources"
prefix="net/java/sip/communicator/impl/resources" />
</jar>
</target>
<!--BUNDLE-RESOURCES-SLICK-->
<target name="bundle-resources-slick" depends="rebuild">
<jar compress="false" destfile="${bundles.dest}/resources-slick.jar"
manifest="test/net/java/sip/communicator/slick/resources/resources.slick.manifest.mf">
<zipfileset dir="${dest}/net/java/sip/communicator/slick/resources"
prefix="net/java/sip/communicator/slick/resources"/>
</jar>
</target>
<!--BUNDLE-UTIL-->
<target name="bundle-util" depends="rebuild">
<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"/>
</jar>
</target>
<!--BUNDLE-CONFIGURATION-->
<target name="bundle-configuration" depends="rebuild">
<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" depends="rebuild">
<jar compress="false" destfile="${bundles.dest}/configuration-slick.jar"
manifest="test/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-JUNIT -->
<target name="bundle-junit">
<jar compress="true" destfile="lib/bundle/junit.jar"
manifest="test/junit/junit.manifest.mf">
<zipfileset src="${lib}/junit.jar" prefix=""/>
</jar>
</target>
<!--BUNDLE-MEDIA-->
<target name="bundle-media" depends="rebuild">
<jar
compress="false" destfile="${bundles.dest}/media.jar"
manifest="src/net/java/sip/communicator/impl/media/media.manifest.mf">
<zipfileset dir="${dest}/net/java/sip/communicator/service/media"
prefix="net/java/sip/communicator/service/media"/>
<zipfileset dir="${dest}/net/java/sip/communicator/impl/media"
prefix="net/java/sip/communicator/impl/media"/>
</jar>
</target>
<!--BUNDLE-MEDIA-SLICK-->
<target name="bundle-media-slick" depends="rebuild">
<jar compress="false" destfile="${bundles.dest}/media-slick.jar"
manifest="test/net/java/sip/communicator/slick/media/media.slick.manifest.mf">
<zipfileset dir="${dest}/net/java/sip/communicator/slick/media"
prefix="net/java/sip/communicator/slick/media"/>
</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}/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" depends="rebuild">
<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"/>
</jar>
</target>
<!--BUNDLE-NETADDR-SLICK -->
<target name="bundle-netaddr-slick" depends="rebuild">
<jar compress="false" destfile="${bundles.dest}/netaddr-slick.jar"
manifest="test/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" depends="rebuild"
description="Runs all tests that are testing classes 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="test/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" depends="rebuild"
description="Creates a bundle that runs all SLICKs that currently exist in the sip-communicator.">
<jar compress="false" destfile="${bundles.dest}/slick-runner.jar"
manifest="test/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" depends="rebuild"
description="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/service/protocol"
prefix="net/java/sip/communicator/service/protocol"/>
<zipfileset dir="${dest}/net/java/sip/communicator/impl/protocol/sip"
prefix="net/java/sip/communicator/service/protocol/sip"/>
</jar>
</target>
</project>

@ -0,0 +1,35 @@
<?xml version="1.0" encoding="UTF-8"?>
<library>
<!--JBuilder Library Definition File-->
<fullname>project.libs</fullname>
<class>
<path>[lib/bundle/exportfilter.jar]</path>
<path>[lib/bundle/framework.jar]</path>
<path>[lib/bundle/grunt.jar]</path>
<path>[lib/bundle/importfilter.jar]</path>
<path>[lib/bundle/importrange.jar]</path>
<path>[lib/bundle/junit_all-1.0.0.jar]</path>
<path>[lib/bundle/junit.jar]</path>
<path>[lib/bundle/listener.jar]</path>
<path>[lib/bundle/shell.jar]</path>
<path>[lib/bundle/shellgui.jar]</path>
<path>[lib/bundle/shellplugin.jar]</path>
<path>[lib/bundle/shelltui.jar]</path>
<path>[lib/bundle/simple.jar]</path>
<path>[lib/bundle/tablelayout.jar]</path>
<path>[lib/JainSipApi1.1.jar]</path>
<path>[lib/junit.jar]</path>
<path>[lib/moduleloader.jar]</path>
<path>[lib/nist-sdp-1.0.jar]</path>
<path>[lib/nist-sip-1.2.jar]</path>
<path>[lib/oscar.jar]</path>
<path>[lib/servicebinder.jar]</path>
<path>[lib/osgi.jar]</path>
<path>[lib/Stun4J.jar]</path>
<path>[lib/bundle/bundlerepository.jar]</path>
</class>
<source>
<path>../../noscar/src</path>
</source>
<lastmodsaved>1122567160157</lastmodsaved>
</library>
Loading…
Cancel
Save