mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-12-23 02:58:00 +01:00
668ab89ece
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@1828 b35dd754-fafc-0310-a699-88a17e54d16e
124 lines
4.6 KiB
XML
124 lines
4.6 KiB
XML
<?xml version="1.0"?>
|
|
|
|
<!-- Smack Build Script ========================================== -->
|
|
<!-- Jive Software ============================================== -->
|
|
|
|
<!--
|
|
$RCSfile$
|
|
$Revision$
|
|
$Date$
|
|
-->
|
|
|
|
<project name="Smack" default="all" basedir="..">
|
|
|
|
<!-- PROPERTIES -->
|
|
<!-- ======================================================================================= -->
|
|
|
|
<property name="compile.dir" value="${basedir}/classes" />
|
|
<property name="jar.dest.dir" value="${basedir}" />
|
|
<property name="javadoc.dest.dir" value="${basedir}/javadoc" />
|
|
<property name="build.lib.dir" value="${basedir}/build/lib" />
|
|
<property name="merge.lib.dir" value="${basedir}/build/merge" />
|
|
|
|
<property name="version.major" value="1" />
|
|
<property name="version.minor" value="0" />
|
|
<property name="version.string" value="beta2" />
|
|
<property name="version.name" value="${version.major}.${version.minor} Beta 2" />
|
|
|
|
<!-- TARGETS -->
|
|
<!-- ======================================================================================= -->
|
|
|
|
<!-- all -->
|
|
<!-- ======================================================================================= -->
|
|
<target name="all" depends="jar" description="Calls 'jar' target by default">
|
|
</target>
|
|
|
|
<!-- compile -->
|
|
<!-- ======================================================================================= -->
|
|
<target name="compile" description="Compiles all source to ${compile.dir}.">
|
|
<!-- 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}">
|
|
<include name="*.jar"/>
|
|
</fileset>
|
|
<fileset dir="${merge.lib.dir}">
|
|
<include name="*.jar"/>
|
|
</fileset>
|
|
</classpath>
|
|
</javac>
|
|
</target>
|
|
|
|
|
|
<!-- jar -->
|
|
<!-- ======================================================================================= -->
|
|
<target name="jar" depends="compile" unless="jar.uptodate" description="Produces smack.jar">
|
|
<jar destfile="${jar.dest.dir}/smack.jar"
|
|
basedir="${compile.dir}"
|
|
includes="**/*.class"
|
|
>
|
|
<zipfileset src="${merge.lib.dir}/xpp.jar"/>
|
|
</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"
|
|
windowtitle="Smack ${version.name} Documentation"
|
|
>
|
|
<classpath>
|
|
<fileset dir="${build.lib.dir}">
|
|
<include name="*.jar"/>
|
|
</fileset>
|
|
<fileset dir="${merge.lib.dir}">
|
|
<include name="*.jar"/>
|
|
</fileset>
|
|
</classpath>
|
|
<doctitle><![CDATA[<font face="arial,helvetica">Smack ${version.name}</font>]]></doctitle>
|
|
<header><![CDATA[<b>Smack</b>]]></header>
|
|
<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>
|
|
|
|
|
|
<!-- release -->
|
|
<!-- ======================================================================================= -->
|
|
<target name="release" if="release.exists" depends="release-exists">
|
|
<antcall target="jar" />
|
|
<antcall target="javadoc" />
|
|
<ant antfile="${basedir}/build/release.xml" />
|
|
</target>
|
|
|
|
|
|
<!-- release-exists -->
|
|
<!-- ======================================================================================= -->
|
|
<target name="release-exists" >
|
|
<available file="${basedir}/build/release.xml" property="release.exists"/>
|
|
</target>
|
|
|
|
|
|
<!-- clean -->
|
|
<!-- ======================================================================================= -->
|
|
<target name="clean" description="Deletes all generated content.">
|
|
<delete dir="${javadoc.dest.dir}" />
|
|
<delete dir="${compile.dir}" />
|
|
<delete file="${basedir}/smack.jar" />
|
|
<delete dir="${basedir}/release" />
|
|
</target>
|
|
|
|
</project>
|