mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-17 04:32:04 +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:
parent
d88f82f92d
commit
63ba2be8c9
1 changed files with 12 additions and 1 deletions
|
@ -249,6 +249,15 @@
|
|||
/>
|
||||
</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 -->
|
||||
<!-- ======================================================================================= -->
|
||||
<target name="javadoc" description="JavaDocs the Smack source code">
|
||||
|
@ -354,7 +363,7 @@
|
|||
|
||||
<!-- 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"
|
||||
fork="true"
|
||||
haltonfailure="false"
|
||||
|
@ -376,6 +385,7 @@
|
|||
</fileset>
|
||||
<fileset dir="${jar.dest.dir}">
|
||||
<include name="smack-test.jar"/>
|
||||
<include name="smack-test-smackx.jar" />
|
||||
</fileset>
|
||||
<pathelement location="${compile.dir}" />
|
||||
<pathelement location="${test-unit.dir}" />
|
||||
|
@ -453,6 +463,7 @@
|
|||
<delete file="${basedir}/smackx.jar" />
|
||||
<delete file="${basedir}/smackx-debug.jar" />
|
||||
<delete file="${basedir}/smack-test.jar" />
|
||||
<delete file="${basedir}/smackx-test.jar" />
|
||||
<delete file="${basedir}/smackx-jingle.jar" />
|
||||
<delete dir="${basedir}/target" />
|
||||
</target>
|
||||
|
|
Loading…
Reference in a new issue