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

build.xml: Added jar-test-smackx target and let test-unit depend on that, so that clean calls of 'ant test-unit' won't fail.

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@13403 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Florian Schmaus 2013-01-21 11:35:56 +00:00 committed by flow
parent d88f82f92d
commit 63ba2be8c9

View file

@ -249,6 +249,15 @@
/> />
</target> </target>
<target name="jar-test-smackx" depends="compile-test" description="Produces jar of test code">
<jar destfile="${jar.dest.dir}/smack-test-smackx.jar"
basedir="${compile.test.dir}"
includes="org/jivesoftware/smackx/**/*.class
org/jivesoftware/util/**/*.class"
/>
</target>
<!-- javadoc --> <!-- javadoc -->
<!-- ======================================================================================= --> <!-- ======================================================================================= -->
<target name="javadoc" description="JavaDocs the Smack source code"> <target name="javadoc" description="JavaDocs the Smack source code">
@ -354,7 +363,7 @@
<!-- test-unit --> <!-- test-unit -->
<!-- ======================================================================================= --> <!-- ======================================================================================= -->
<target name="test-unit" depends="compile, jar-test" unless="no.test"> <target name="test-unit" depends="compile, jar-test, jar-test-smackx" unless="no.test">
<junit printsummary="on" <junit printsummary="on"
fork="true" fork="true"
haltonfailure="false" haltonfailure="false"
@ -376,6 +385,7 @@
</fileset> </fileset>
<fileset dir="${jar.dest.dir}"> <fileset dir="${jar.dest.dir}">
<include name="smack-test.jar"/> <include name="smack-test.jar"/>
<include name="smack-test-smackx.jar" />
</fileset> </fileset>
<pathelement location="${compile.dir}" /> <pathelement location="${compile.dir}" />
<pathelement location="${test-unit.dir}" /> <pathelement location="${test-unit.dir}" />
@ -453,6 +463,7 @@
<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}/smackx-test.jar" />
<delete file="${basedir}/smackx-jingle.jar" /> <delete file="${basedir}/smackx-jingle.jar" />
<delete dir="${basedir}/target" /> <delete dir="${basedir}/target" />
</target> </target>