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

Updated to include release task

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@1817 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Bill Lynch 2003-01-20 15:57:33 +00:00 committed by blynch
parent 60ecc3b8b9
commit 74a685d456

View file

@ -11,12 +11,19 @@
<project name="Smack" default="all" basedir=".."> <project name="Smack" default="all" basedir="..">
<property name="version" value="1.0 Beta 1" /> <!-- PROPERTIES -->
<!-- ======================================================================================= -->
<property name="compile.dir" value="${basedir}/classes" /> <property name="compile.dir" value="${basedir}/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" />
<property name="version.major" value="1" />
<property name="version.minor" value="0" />
<property name="version.string" value="beta1" />
<property name="version.name" value="${version.major}.${version.minor} Beta 1" />
<!-- TARGETS --> <!-- TARGETS -->
<!-- ======================================================================================= --> <!-- ======================================================================================= -->
@ -27,9 +34,7 @@
<!-- compile --> <!-- compile -->
<!-- ======================================================================================= --> <!-- ======================================================================================= -->
<target name="compile" <target name="compile" description="Compiles all source to ${compile.dir}.">
description="Compiles all source to ${compile.dir}."
>
<!-- make target dir --> <!-- make target dir -->
<mkdir dir="${compile.dir}" /> <mkdir dir="${compile.dir}" />
<javac <javac
@ -49,9 +54,7 @@
<!-- jar --> <!-- jar -->
<!-- ======================================================================================= --> <!-- ======================================================================================= -->
<target name="jar" depends="compile" unless="jar.uptodate" <target name="jar" depends="compile" unless="jar.uptodate" description="Produces smack.jar">
description="Produces smack.jar"
>
<jar destfile="${jar.dest.dir}/smack.jar" <jar destfile="${jar.dest.dir}/smack.jar"
basedir="${compile.dir}" basedir="${compile.dir}"
includes="**/*.class" includes="**/*.class"
@ -70,14 +73,14 @@
sourcepath="${basedir}/source" sourcepath="${basedir}/source"
destdir="${javadoc.dest.dir}" destdir="${javadoc.dest.dir}"
author="true" author="true"
windowtitle="Smack ${version} Documentation" windowtitle="Smack ${version.name} Documentation"
> >
<classpath> <classpath>
<fileset dir="${build.lib.dir}"> <fileset dir="${build.lib.dir}">
<include name="**/*.jar"/> <include name="**/*.jar"/>
</fileset> </fileset>
</classpath> </classpath>
<doctitle><![CDATA[<font face="arial,helvetica">Smack ${version}</font>]]></doctitle> <doctitle><![CDATA[<font face="arial,helvetica">Smack ${version.name}</font>]]></doctitle>
<header><![CDATA[<b>Smack</b>]]></header> <header><![CDATA[<b>Smack</b>]]></header>
<bottom><![CDATA[<i>Copyright &copy; 2003 Jive Software. </i>]]></bottom> <bottom><![CDATA[<i>Copyright &copy; 2003 Jive Software. </i>]]></bottom>
<link href="http://java.sun.com/j2se/1.3/docs/api/" /> <link href="http://java.sun.com/j2se/1.3/docs/api/" />
@ -86,12 +89,27 @@
</target> </target>
<!-- release -->
<!-- ======================================================================================= -->
<target name="release" if="release.exists" depends="release-exists, jar, 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 --> <!-- clean -->
<!-- ======================================================================================= --> <!-- ======================================================================================= -->
<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 file="${basedir}/smack.jar" /> <delete file="${basedir}/smack.jar" />
<delete dir="${basedir}/release" />
</target> </target>
</project> </project>