forked from dianbaer/anychat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
25 lines (25 loc) · 1.08 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?xml version="1.0"?>
<project name="Work" basedir="." default="test">
<property name="dist" location="${basedir}/dist" />
<property name="Work.dir" value="${basedir}" />
<property name="Server.dir" value="${basedir}/AnyChatServer" />
<property name="Config.dir" value="${basedir}/AnyChatConfig" />
<target name="build-Server" depends="">
<ant antfile="build-Server.xml" dir="${Server.dir}">
</ant>
</target>
<target name="cleandist" description="clean up">
<delete dir="${dist}" />
</target>
<target name="test">
<antcall target="cleandist" />
<antcall target="build-Server" />
<mkdir dir="${dist}" />
<copy file="${Server.dir}/dist/AnyChatServer.war" todir="${dist}" />
<copy file="${Server.dir}/src/main/java/AnyChatServer.properties" todir="${dist}" />
<copy file="${Work.dir}/anychat.sql" todir="${dist}" />
<copy file="${Work.dir}/anychat_mongodb.sh" todir="${dist}" />
<copydir dest="${dist}/AnyChatConfig" src="${Config.dir}"></copydir>
<copydir dest="${dist}/AnyChatClient" src="${Work.dir}/AnyChatClient"></copydir>
</target>
</project>