summaryrefslogtreecommitdiff
path: root/build.xml
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir@cohens.org.il>2013-12-03 11:13:02 +0200
committerTzafrir Cohen <tzafrir@cohens.org.il>2013-12-03 11:13:02 +0200
commit5f9832c089b87e6f14988da2c2054c8257fa2b09 (patch)
tree3bec7d7caab663dae94e36328c468a81506b6461 /build.xml
parentfce7f275c0778b6929c39947214f2dcf98dfbbeb (diff)
ant: targets for running client or server
Diffstat (limited to 'build.xml')
-rw-r--r--build.xml20
1 files changed, 20 insertions, 0 deletions
diff --git a/build.xml b/build.xml
index f334cc6..090e798 100644
--- a/build.xml
+++ b/build.xml
@@ -29,6 +29,26 @@
<jar jarfile="${dist}/lib/java-chat-${DSTAMP}.jar" basedir="${build}"/>
</target>
+ <target name="run-client" depends="compile"
+ description="runs the client" >
+ <java classname="Client/ChatClient"
+ fork="true"
+ failonerror="true"
+ classpath="build"
+ >
+ </java>
+ </target>
+
+ <target name="run-server" depends="compile"
+ description="runs the server" >
+ <java classname="Sserver/ChatServer"
+ fork="true"
+ failonerror="true"
+ classpath="build"
+ >
+ </java>
+ </target>
+
<target name="clean"
description="clean up" >
<!-- Delete the ${build} and ${dist} directory trees -->