1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-26 05:52:06 +01:00

made jar_wg and compile_wg targets...

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@1947 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
loki 2003-05-21 22:46:28 +00:00
parent dce8e1fb8f
commit df316414da

View file

@ -15,6 +15,7 @@
<!-- ======================================================================================= --> <!-- ======================================================================================= -->
<property name="compile.dir" value="${basedir}/classes" /> <property name="compile.dir" value="${basedir}/classes" />
<property name="compile_wg.dir" value="${basedir}/apps/workgroup/classes" />
<property name="jar.dest.dir" value="${basedir}" /> <property name="jar.dest.dir" value="${basedir}" />
<property name="javadoc.dest.dir" value="${basedir}/javadoc" /> <property name="javadoc.dest.dir" value="${basedir}/javadoc" />
<property name="build.lib.dir" value="${basedir}/build/lib" /> <property name="build.lib.dir" value="${basedir}/build/lib" />
@ -55,7 +56,6 @@
</javac> </javac>
</target> </target>
<!-- 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">
@ -67,6 +67,41 @@
</jar> </jar>
</target> </target>
<!-- compile workgroup -->
<!-- ======================================================================================= -->
<target name="compile_wg" depends="jar" description="Compiles workgroup source.">
<!-- make target dir -->
<mkdir dir="${compile_wg.dir}" />
<javac
destdir="${compile_wg.dir}"
includeAntRuntime="no"
debug="on">
<src path="${basedir}/apps/workgroup/source" />
<classpath>
<fileset dir="${jar.dest.dir}">
<include name="smack.jar"/>
</fileset>
<fileset dir="${build.lib.dir}">
<include name="*.jar"/>
</fileset>
<fileset dir="${merge.lib.dir}">
<include name="*.jar"/>
</fileset>
</classpath>
</javac>
</target>
<!-- jar workgroup -->
<!-- ======================================================================================= -->
<target name="jar_wg" depends="compile_wg" unless="jar.uptodate"
description="Produces workgroup.jar">
<jar destfile="${jar.dest.dir}/workgroup.jar"
basedir="${compile_wg.dir}"
includes="**/*.class"
>
</jar>
</target>
<!-- javadoc --> <!-- javadoc -->
<!-- ======================================================================================= --> <!-- ======================================================================================= -->
<target name="javadoc" description="JavaDocs the Jive Forums source code"> <target name="javadoc" description="JavaDocs the Jive Forums source code">
@ -118,7 +153,9 @@
<target name="clean" description="Deletes all generated content."> <target name="clean" description="Deletes all generated content.">
<delete dir="${javadoc.dest.dir}" /> <delete dir="${javadoc.dest.dir}" />
<delete dir="${compile.dir}" /> <delete dir="${compile.dir}" />
<delete dir="${compile_wg.dir}" />
<delete file="${basedir}/smack.jar" /> <delete file="${basedir}/smack.jar" />
<delete file="${basedir}/workgroup.jar" />
<delete dir="${basedir}/release" /> <delete dir="${basedir}/release" />
</target> </target>