mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-22 20:12:07 +01:00
Added war target
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@1875 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
cba6e39607
commit
4aa250f252
1 changed files with 26 additions and 0 deletions
|
@ -10,6 +10,10 @@
|
||||||
|
|
||||||
<property name="smack.home" value="${basedir}/../../../smack" />
|
<property name="smack.home" value="${basedir}/../../../smack" />
|
||||||
<property name="compile.dir" value="${basedir}/build/temp" />
|
<property name="compile.dir" value="${basedir}/build/temp" />
|
||||||
|
<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" />
|
||||||
|
|
||||||
|
|
||||||
<path id="dependencies">
|
<path id="dependencies">
|
||||||
|
@ -19,8 +23,16 @@
|
||||||
</path>
|
</path>
|
||||||
|
|
||||||
|
|
||||||
|
<patternset id="web.filetypes">
|
||||||
|
<include name="**/*.jsp" />
|
||||||
|
<include name="**/*.html" />
|
||||||
|
<include name="**/*.gif" />
|
||||||
|
</patternset>
|
||||||
|
|
||||||
|
|
||||||
<target name="init">
|
<target name="init">
|
||||||
<mkdir dir="${compile.dir}" />
|
<mkdir dir="${compile.dir}" />
|
||||||
|
<mkdir dir="${jar.dest.dir}" />
|
||||||
<!-- call smack jar process -->
|
<!-- call smack jar process -->
|
||||||
<ant antfile="build/build.xml" dir="${smack.home}" target="jar" inheritAll="false" />
|
<ant antfile="build/build.xml" dir="${smack.home}" target="jar" inheritAll="false" />
|
||||||
</target>
|
</target>
|
||||||
|
@ -28,6 +40,7 @@
|
||||||
|
|
||||||
<target name="clean">
|
<target name="clean">
|
||||||
<delete dir="${compile.dir}" />
|
<delete dir="${compile.dir}" />
|
||||||
|
<delete dir="${jar.dest.dir}" />
|
||||||
<!-- call smack jar process -->
|
<!-- call smack jar process -->
|
||||||
<ant antfile="build/build.xml" dir="${smack.home}" target="clean" inheritAll="false" />
|
<ant antfile="build/build.xml" dir="${smack.home}" target="clean" inheritAll="false" />
|
||||||
</target>
|
</target>
|
||||||
|
@ -46,10 +59,23 @@
|
||||||
|
|
||||||
|
|
||||||
<target name="jar" depends="compile">
|
<target name="jar" depends="compile">
|
||||||
|
<jar destfile="${jar.dest.dir}/${jar.name}.jar"
|
||||||
|
basedir="${compile.dir}"
|
||||||
|
includes="**/*.class"
|
||||||
|
/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
|
||||||
<target name="war" depends="jar">
|
<target name="war" depends="jar">
|
||||||
|
<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>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
</project>
|
</project>
|
Loading…
Reference in a new issue