diff options
author | Tzafrir Cohen <tzafrir@cohens.org.il> | 2013-12-03 11:13:02 +0200 |
---|---|---|
committer | Tzafrir Cohen <tzafrir@cohens.org.il> | 2013-12-03 11:13:02 +0200 |
commit | 5f9832c089b87e6f14988da2c2054c8257fa2b09 (patch) | |
tree | 3bec7d7caab663dae94e36328c468a81506b6461 /build.xml | |
parent | fce7f275c0778b6929c39947214f2dcf98dfbbeb (diff) |
ant: targets for running client or server
Diffstat (limited to 'build.xml')
-rw-r--r-- | build.xml | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -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 --> |