1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-27 00:32:07 +01:00

Add Jingle jars Ant build

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@7218 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Thiago Camargo 2007-02-20 17:50:29 +00:00 committed by thiago
parent 1f8cb4452b
commit e9fc529ac9

View file

@ -57,6 +57,7 @@
<property name="merge.lib.dir" value="${basedir}/build/merge" /> <property name="merge.lib.dir" value="${basedir}/build/merge" />
<property name="test.dir" value="${basedir}/test" /> <property name="test.dir" value="${basedir}/test" />
<property name="resources.dir" value="${basedir}/build/resources" /> <property name="resources.dir" value="${basedir}/build/resources" />
<property name="jingle.extension.merge.lib.dir" value="${basedir}/jingle/extension/build/merge" />
<!-- Test props - override these defaults in the properties file or in command line --> <!-- Test props - override these defaults in the properties file or in command line -->
<property name="test.host" value="localhost" /> <property name="test.host" value="localhost" />
@ -105,6 +106,45 @@
<include name="*.jar"/> <include name="*.jar"/>
</fileset> </fileset>
</classpath> </classpath>
</javac>
<mkdir dir="${compile.dir}/jingle/extension" />
<javac
destdir="${compile.dir}/jingle/extension"
includeAntRuntime="no"
debug="on"
source="1.5"
target="1.5"
>
<src path="${basedir}/jingle/extension/source" />
<classpath>
<fileset dir="${merge.lib.dir}">
<include name="*.jar"/>
</fileset>
<fileset dir="${basedir}/jingle/extension/build/merge">
<include name="*.jar"/>
</fileset>
<pathelement path="${compile.dir}"/>
</classpath>
</javac>
<mkdir dir="${compile.dir}/jingle/media" />
<javac
destdir="${compile.dir}/jingle/media"
includeAntRuntime="no"
debug="on"
source="1.5"
target="1.5"
>
<src path="${basedir}/jingle/media/source" />
<classpath>
<fileset dir="${merge.lib.dir}">
<include name="*.jar"/>
</fileset>
<fileset dir="${basedir}/jingle/media/build/lib">
<include name="*.jar"/>
</fileset>
<pathelement path="${compile.dir}"/>
<pathelement path="${compile.dir}/jingle/extension"/>
</classpath>
</javac> </javac>
</target> </target>
@ -137,7 +177,6 @@
<!-- jar --> <!-- jar -->
<!-- ======================================================================================= --> <!-- ======================================================================================= -->
<target name="jar" depends="compile" unless="jar.uptodate" description="Produces smack.jar"> <target name="jar" depends="compile" unless="jar.uptodate" description="Produces smack.jar">
<copy todir="${compile.dir}/META-INF" file="${basedir}/build/resources/META-INF/smack-config.xml" /> <copy todir="${compile.dir}/META-INF" file="${basedir}/build/resources/META-INF/smack-config.xml" />
<jar destfile="${jar.dest.dir}/smack.jar" <jar destfile="${jar.dest.dir}/smack.jar"
basedir="${compile.dir}" basedir="${compile.dir}"
@ -168,6 +207,23 @@
<manifest> <manifest>
<attribute name="Class-Path" value="smack.jar" /> <attribute name="Class-Path" value="smack.jar" />
</manifest> </manifest>
</jar>
<jar destfile="${jar.dest.dir}/jingleExtension.jar"
basedir="${compile.dir}/jingle/extension"
includes="org/jivesoftware/smackx/**/*.class"
>
<manifest>
<attribute name="Class-Path" value="smack.jar, smackx.jar" />
</manifest>
<zipfileset src="${jingle.extension.merge.lib.dir}/jstun-0.6.1.jar"/>
</jar>
<jar destfile="${jar.dest.dir}/jingleMedia.jar"
basedir="${compile.dir}/jingle/media"
includes="org/jivesoftware/**/*.class"
>
<manifest>
<attribute name="Class-Path" value="smack.jar,smackx.jar,jingleExtension.jar" />
</manifest>
</jar> </jar>
<delete file="${compile.dir}/META-INF/smack-config.xml" /> <delete file="${compile.dir}/META-INF/smack-config.xml" />
<delete file="${compile.dir}/META-INF/smack.providers" /> <delete file="${compile.dir}/META-INF/smack.providers" />
@ -325,6 +381,8 @@
<delete file="${basedir}/smackx.jar" /> <delete file="${basedir}/smackx.jar" />
<delete file="${basedir}/smackx-debug.jar" /> <delete file="${basedir}/smackx-debug.jar" />
<delete file="${basedir}/smack-test.jar" /> <delete file="${basedir}/smack-test.jar" />
<delete file="${basedir}/jingleExtension.jar" />
<delete file="${basedir}/jingleMedia.jar" />
<delete dir="${basedir}/target" /> <delete dir="${basedir}/target" />
</target> </target>