2003-01-15 01:33:52 +01:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
|
|
|
|
<!-- Smack Build Script ========================================== -->
|
|
|
|
<!-- Jive Software ============================================== -->
|
|
|
|
|
|
|
|
<!--
|
|
|
|
$RCSfile$
|
|
|
|
$Revision$
|
|
|
|
$Date$
|
|
|
|
-->
|
|
|
|
|
|
|
|
<project name="Smack" default="all" basedir="..">
|
2003-01-20 16:57:33 +01:00
|
|
|
|
|
|
|
<!-- PROPERTIES -->
|
|
|
|
<!-- ======================================================================================= -->
|
|
|
|
|
2003-01-15 01:33:52 +01:00
|
|
|
<property name="compile.dir" value="${basedir}/classes" />
|
|
|
|
<property name="jar.dest.dir" value="${basedir}" />
|
|
|
|
<property name="javadoc.dest.dir" value="${basedir}/javadoc" />
|
2003-01-20 16:57:33 +01:00
|
|
|
<property name="build.lib.dir" value="${basedir}/build/lib" />
|
2003-01-24 03:44:25 +01:00
|
|
|
<property name="merge.lib.dir" value="${basedir}/build/merge" />
|
2003-01-20 16:57:33 +01:00
|
|
|
|
|
|
|
<property name="version.major" value="1" />
|
|
|
|
<property name="version.minor" value="0" />
|
2003-04-05 03:12:56 +02:00
|
|
|
<property name="version.string" value="beta4" />
|
2003-03-10 00:08:17 +01:00
|
|
|
<property name="version.name" value="${version.major}.${version.minor} Beta 3" />
|
2003-01-15 01:33:52 +01:00
|
|
|
|
|
|
|
<!-- TARGETS -->
|
|
|
|
<!-- ======================================================================================= -->
|
|
|
|
|
|
|
|
<!-- all -->
|
|
|
|
<!-- ======================================================================================= -->
|
|
|
|
<target name="all" depends="jar" description="Calls 'jar' target by default">
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<!-- compile -->
|
|
|
|
<!-- ======================================================================================= -->
|
2003-01-20 16:57:33 +01:00
|
|
|
<target name="compile" description="Compiles all source to ${compile.dir}.">
|
2003-01-15 01:33:52 +01:00
|
|
|
<!-- make target dir -->
|
|
|
|
<mkdir dir="${compile.dir}" />
|
|
|
|
<javac
|
|
|
|
destdir="${compile.dir}"
|
|
|
|
includeAntRuntime="no"
|
|
|
|
debug="on"
|
|
|
|
>
|
|
|
|
<src path="${basedir}/source" />
|
|
|
|
<classpath>
|
|
|
|
<fileset dir="${build.lib.dir}">
|
2003-01-24 03:44:25 +01:00
|
|
|
<include name="*.jar"/>
|
|
|
|
</fileset>
|
|
|
|
<fileset dir="${merge.lib.dir}">
|
|
|
|
<include name="*.jar"/>
|
2003-01-15 01:33:52 +01:00
|
|
|
</fileset>
|
|
|
|
</classpath>
|
|
|
|
</javac>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- jar -->
|
|
|
|
<!-- ======================================================================================= -->
|
2003-01-20 16:57:33 +01:00
|
|
|
<target name="jar" depends="compile" unless="jar.uptodate" description="Produces smack.jar">
|
2003-01-15 01:33:52 +01:00
|
|
|
<jar destfile="${jar.dest.dir}/smack.jar"
|
|
|
|
basedir="${compile.dir}"
|
|
|
|
includes="**/*.class"
|
|
|
|
>
|
2003-01-24 03:44:25 +01:00
|
|
|
<zipfileset src="${merge.lib.dir}/xpp.jar"/>
|
2003-01-15 01:33:52 +01:00
|
|
|
</jar>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<!-- javadoc -->
|
|
|
|
<!-- ======================================================================================= -->
|
|
|
|
<target name="javadoc" description="JavaDocs the Jive Forums source code">
|
|
|
|
|
|
|
|
<mkdir dir="${javadoc.dest.dir}" />
|
|
|
|
<javadoc
|
|
|
|
packagenames="org.jivesoftware.smack.*"
|
|
|
|
sourcepath="${basedir}/source"
|
|
|
|
destdir="${javadoc.dest.dir}"
|
|
|
|
author="true"
|
2003-01-20 16:57:33 +01:00
|
|
|
windowtitle="Smack ${version.name} Documentation"
|
2003-03-10 00:08:17 +01:00
|
|
|
overview="${basedir}/source/overview.html"
|
2003-01-15 01:33:52 +01:00
|
|
|
>
|
|
|
|
<classpath>
|
|
|
|
<fileset dir="${build.lib.dir}">
|
2003-01-24 03:44:25 +01:00
|
|
|
<include name="*.jar"/>
|
|
|
|
</fileset>
|
|
|
|
<fileset dir="${merge.lib.dir}">
|
|
|
|
<include name="*.jar"/>
|
2003-01-15 01:33:52 +01:00
|
|
|
</fileset>
|
|
|
|
</classpath>
|
2003-01-20 16:57:33 +01:00
|
|
|
<doctitle><![CDATA[<font face="arial,helvetica">Smack ${version.name}</font>]]></doctitle>
|
2003-01-16 21:42:29 +01:00
|
|
|
<header><![CDATA[<b>Smack</b>]]></header>
|
2003-01-15 01:33:52 +01:00
|
|
|
<bottom><![CDATA[<i>Copyright © 2003 Jive Software. </i>]]></bottom>
|
|
|
|
<link href="http://java.sun.com/j2se/1.3/docs/api/" />
|
|
|
|
<link href="http://java.sun.com/j2ee/sdk_1.2.1/techdocs/api/" />
|
|
|
|
</javadoc>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
|
2003-01-20 16:57:33 +01:00
|
|
|
<!-- release -->
|
|
|
|
<!-- ======================================================================================= -->
|
2003-01-20 17:00:04 +01:00
|
|
|
<target name="release" if="release.exists" depends="release-exists">
|
|
|
|
<antcall target="jar" />
|
|
|
|
<antcall target="javadoc" />
|
2003-01-20 16:57:33 +01:00
|
|
|
<ant antfile="${basedir}/build/release.xml" />
|
|
|
|
</target>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- release-exists -->
|
|
|
|
<!-- ======================================================================================= -->
|
|
|
|
<target name="release-exists" >
|
|
|
|
<available file="${basedir}/build/release.xml" property="release.exists"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
|
2003-01-15 01:33:52 +01:00
|
|
|
<!-- clean -->
|
|
|
|
<!-- ======================================================================================= -->
|
|
|
|
<target name="clean" description="Deletes all generated content.">
|
|
|
|
<delete dir="${javadoc.dest.dir}" />
|
2003-01-20 16:57:33 +01:00
|
|
|
<delete dir="${compile.dir}" />
|
|
|
|
<delete file="${basedir}/smack.jar" />
|
|
|
|
<delete dir="${basedir}/release" />
|
2003-01-15 01:33:52 +01:00
|
|
|
</target>
|
|
|
|
|
|
|
|
</project>
|