2003-04-10 21:42:41 +02:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
$RCSfile$
|
|
|
|
$Revision$
|
|
|
|
$Date$
|
|
|
|
-->
|
|
|
|
|
|
|
|
<project name="WebChat" default="all" basedir="..">
|
|
|
|
|
2003-04-11 20:42:40 +02:00
|
|
|
<property file="${basedir}/build/webchat-build.properties" />
|
2003-04-10 21:42:41 +02:00
|
|
|
<property name="smack.home" value="${basedir}/../../../smack" />
|
|
|
|
<property name="compile.dir" value="${basedir}/build/temp" />
|
2003-04-10 22:14:59 +02:00
|
|
|
<property name="jar.dest.dir" value="${basedir}/build/WEB-INF/lib" />
|
|
|
|
<property name="jar.name" value="webchat" />
|
|
|
|
<property name="war.dest.dir" value="${basedir}" />
|
|
|
|
<property name="war.name" value="webchat" />
|
2003-04-10 21:42:41 +02:00
|
|
|
|
|
|
|
|
|
|
|
<path id="dependencies">
|
|
|
|
<!-- build jars -->
|
|
|
|
<fileset dir="${smack.home}" includes="smack.jar" />
|
|
|
|
<fileset dir="${basedir}/build/lib" includes="*.jar" />
|
|
|
|
</path>
|
|
|
|
|
|
|
|
|
2003-04-10 22:14:59 +02:00
|
|
|
<patternset id="web.filetypes">
|
|
|
|
<include name="**/*.jsp" />
|
2003-06-17 23:54:38 +02:00
|
|
|
<include name="**/*.js" />
|
2003-04-10 22:14:59 +02:00
|
|
|
<include name="**/*.html" />
|
|
|
|
<include name="**/*.gif" />
|
2003-04-11 05:57:57 +02:00
|
|
|
<include name="**/*.css" />
|
2003-04-10 22:14:59 +02:00
|
|
|
</patternset>
|
|
|
|
|
|
|
|
|
2003-04-10 21:42:41 +02:00
|
|
|
<target name="init">
|
|
|
|
<mkdir dir="${compile.dir}" />
|
2003-04-10 22:14:59 +02:00
|
|
|
<mkdir dir="${jar.dest.dir}" />
|
2003-04-10 21:42:41 +02:00
|
|
|
<!-- call smack jar process -->
|
|
|
|
<ant antfile="build/build.xml" dir="${smack.home}" target="jar" inheritAll="false" />
|
|
|
|
</target>
|
|
|
|
|
|
|
|
|
|
|
|
<target name="clean">
|
|
|
|
<delete dir="${compile.dir}" />
|
2003-04-10 22:14:59 +02:00
|
|
|
<delete dir="${jar.dest.dir}" />
|
2003-04-10 21:42:41 +02:00
|
|
|
<!-- call smack jar process -->
|
|
|
|
<ant antfile="build/build.xml" dir="${smack.home}" target="clean" inheritAll="false" />
|
|
|
|
</target>
|
|
|
|
|
|
|
|
|
|
|
|
<target name="compile" depends="init">
|
|
|
|
<javac
|
|
|
|
destdir="${compile.dir}"
|
|
|
|
includeAntRuntime="no"
|
|
|
|
debug="on"
|
|
|
|
classpathref="dependencies"
|
|
|
|
>
|
|
|
|
<src path="${basedir}/source/java" />
|
|
|
|
</javac>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
|
|
|
|
<target name="jar" depends="compile">
|
2003-04-10 22:14:59 +02:00
|
|
|
<jar destfile="${jar.dest.dir}/${jar.name}.jar"
|
|
|
|
basedir="${compile.dir}"
|
|
|
|
includes="**/*.class"
|
|
|
|
/>
|
2003-04-10 21:42:41 +02:00
|
|
|
</target>
|
|
|
|
|
|
|
|
|
|
|
|
<target name="war" depends="jar">
|
2003-04-10 22:14:59 +02:00
|
|
|
<war warfile="${war.dest.dir}/${war.name}.war"
|
|
|
|
webxml="${basedir}/source/config/WEB-INF/web.xml"
|
|
|
|
>
|
|
|
|
<lib dir="${jar.dest.dir}" includes="*.jar" />
|
|
|
|
<lib dir="${smack.home}" includes="smack.jar" />
|
|
|
|
<zipfileset dir="${basedir}/source/web">
|
|
|
|
<patternset refid="web.filetypes" />
|
|
|
|
</zipfileset>
|
|
|
|
</war>
|
2003-04-10 21:42:41 +02:00
|
|
|
</target>
|
|
|
|
|
2003-04-11 20:42:40 +02:00
|
|
|
|
|
|
|
<target name="deploywar" depends="war">
|
|
|
|
<copy todir="${deploy.war.dir}" overwrite="${overwrite}">
|
|
|
|
<fileset dir="${war.dest.dir}" includes="${war.name}.war" />
|
|
|
|
</copy>
|
|
|
|
</target>
|
|
|
|
|
2003-04-10 21:42:41 +02:00
|
|
|
</project>
|