Building the Chat Client

The build script for the chat client is, not surprisingly, not that much different from that used to build the server. Although at first it might seem surprising that building the chat client is dependent on the server being available, the reason for this becomes apparent when we examine the unittest target. First, let’s complete our discussion on ensuring that all the dependencies exist. The relevant portion of the build script is illustrated in Listing 9.8.

Listing 9.8. Dependency Checks for ChatClient
 <available file="${chatclient.lib}/${chatserver.jar}" property="chatserver.classpath" value="${chatclient.lib}/${chatserver.jar}"/> <available file="${chatclient.lib}/${chatcommon.jar}" property="chatcommon.classpath" ...

Get Ant Developer’s Handbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.