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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.