mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-22 14:22:05 +01:00
Initial check-in.
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@1779 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
857a2ec9c5
commit
5a8e4b59c7
4 changed files with 192 additions and 0 deletions
42
build/ant
Normal file
42
build/ant
Normal file
|
@ -0,0 +1,42 @@
|
|||
#! /bin/sh
|
||||
|
||||
# //--------------------------------------------------------------------------//
|
||||
# // $RCSfile$
|
||||
# // $Revision$
|
||||
# // $Date$
|
||||
# //
|
||||
# // Standard Jive Forums ant.bat file. Do not change this file. If you do,
|
||||
# // you will have seven years of bad luck.
|
||||
# //--------------------------------------------------------------------------//
|
||||
|
||||
# //--------------------------------------------------------------------------//
|
||||
# // Uncomment the following lines if you wish to set JAVA_HOME in this script
|
||||
# //--------------------------------------------------------------------------//
|
||||
# JAVA_HOME=
|
||||
# EXPORT JAVA_HOME
|
||||
|
||||
# //--------------------------------------------------------------------------//
|
||||
# // Check for the JAVA_HOME environment variable //
|
||||
# //--------------------------------------------------------------------------//
|
||||
if [ "$JAVA_HOME" != "" ] ; then
|
||||
# //----------------------------------------------------------------------//
|
||||
# // Create Ant's classpath //
|
||||
# //----------------------------------------------------------------------//
|
||||
CP=$JAVA_HOME/lib/tools.jar:./ant.jar
|
||||
|
||||
# //----------------------------------------------------------------------//
|
||||
# // Run ant //
|
||||
# //----------------------------------------------------------------------//
|
||||
$JAVA_HOME/bin/java -classpath $CP -Dant.home=. org.apache.tools.ant.Main $@
|
||||
else
|
||||
# //----------------------------------------------------------------------//
|
||||
# // No JAVA_HOME error message //
|
||||
# //----------------------------------------------------------------------//
|
||||
echo "Jive Forums Build Error:"
|
||||
echo ""
|
||||
echo "The JAVA_HOME environment variable is not set. JAVA_HOME should point"
|
||||
echo "to your java directory, ie: /usr/local/bin/jdk1.3. You can set"
|
||||
echo "this via the command line like so:"
|
||||
echo " export JAVA_HOME=/usr/local/bin/jdk1.3"
|
||||
fi
|
||||
|
51
build/ant.bat
Normal file
51
build/ant.bat
Normal file
|
@ -0,0 +1,51 @@
|
|||
@echo off
|
||||
|
||||
rem //------------------------------------------------------------------------//
|
||||
rem // $RCSfile$
|
||||
rem // $Revision$
|
||||
rem // $Date$
|
||||
rem //
|
||||
rem // Standard Jive Forums ant.bat file. Do not change this file. If you do,
|
||||
rem // you will have seven years of bad luck.
|
||||
rem //------------------------------------------------------------------------//
|
||||
|
||||
rem //------------------------------------------------------------------------//
|
||||
rem // Uncomment the following if you wish to set JAVA_HOME in this bat file:
|
||||
rem //------------------------------------------------------------------------//
|
||||
rem SET JAVA_HOME=
|
||||
|
||||
rem //------------------------------------------------------------------------//
|
||||
rem // Check for the JAVA_HOME environment variable
|
||||
rem //------------------------------------------------------------------------//
|
||||
if "%JAVA_HOME%" == "" goto noJavaHome
|
||||
|
||||
rem //------------------------------------------------------------------------//
|
||||
rem // Make the correct classpath (should include the java jars and the
|
||||
rem // Ant jars)
|
||||
rem //------------------------------------------------------------------------//
|
||||
SET CP=%JAVA_HOME%\lib\tools.jar;.\ant.jar;.\xmltask.jar
|
||||
|
||||
rem //------------------------------------------------------------------------//
|
||||
rem // Run Ant
|
||||
rem // Note for Win 98/95 users: You need to change "%*" in the following
|
||||
rem // line to be "%1 %2 %3 %4 %5 %6 %7 %8 %9"
|
||||
rem //------------------------------------------------------------------------//
|
||||
%JAVA_HOME%\bin\java -Xms32m -Xmx128m -classpath %CP% -Dant.home=. org.apache.tools.ant.Main %*
|
||||
goto end
|
||||
|
||||
rem //------------------------------------------------------------------------//
|
||||
rem // Error message for missing JAVA_HOME
|
||||
rem //------------------------------------------------------------------------//
|
||||
:noJavaHome
|
||||
echo.
|
||||
echo Jive Forums Build Error:
|
||||
echo.
|
||||
echo The JAVA_HOME environment variable is not set. JAVA_HOME should point to
|
||||
echo your java directory, ie: c:\jdk1.3.1. You can set this via the command
|
||||
echo line like so:
|
||||
echo SET JAVA_HOME=c:\jdk1.3
|
||||
echo.
|
||||
goto end
|
||||
|
||||
:end
|
||||
|
BIN
build/ant.jar
Normal file
BIN
build/ant.jar
Normal file
Binary file not shown.
99
build/build.xml
Normal file
99
build/build.xml
Normal file
|
@ -0,0 +1,99 @@
|
|||
<?xml version="1.0"?>
|
||||
|
||||
<!-- Smack Build Script ========================================== -->
|
||||
<!-- Jive Software ============================================== -->
|
||||
|
||||
<!--
|
||||
$RCSfile$
|
||||
$Revision$
|
||||
$Date$
|
||||
-->
|
||||
|
||||
<project name="Smack" default="all" basedir="..">
|
||||
|
||||
<property name="version" value="1.0 Beta 1" />
|
||||
<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" />
|
||||
|
||||
<!-- 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>
|
||||
</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="${build.lib.dir}/xpp.jar">
|
||||
<patternset includes="**/*.class"/>
|
||||
</zipfileset>
|
||||
</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} Documentation"
|
||||
>
|
||||
<classpath>
|
||||
<fileset dir="${build.lib.dir}">
|
||||
<include name="**/*.jar"/>
|
||||
</fileset>
|
||||
</classpath>
|
||||
<doctitle><![CDATA[<font face="arial,helvetica">Smack ${version}</font>]]></doctitle>
|
||||
<header><![CDATA[<b>JSmack ${version}</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>
|
||||
|
||||
|
||||
<!-- clean -->
|
||||
<!-- ======================================================================================= -->
|
||||
<target name="clean" description="Deletes all generated content.">
|
||||
<delete dir="${javadoc.dest.dir}" />
|
||||
<delete dir="${compile.dir}" />
|
||||
<delete file="${basedir}/smack.jar" />
|
||||
</target>
|
||||
|
||||
</project>
|
Loading…
Reference in a new issue