| Table of Contents |
To run the sample application, MyChatRoom, enter the following command at the command prompt:
C:\MyChatRoom\ant release
Listing 5-16 shows the Ant output at the command prompt:
C:\ MyChatRoom>ant release Buildfile: build.xml init: release: [release] Release: configuration.properties [null] Created dir: C:\MyChatRoom\src [null] cvs checkout: Updating channel [null] U channel/build.xml [null] U channel/environment.properties [null] cvs checkout: Updating channel/chtm [null] cvs checkout: Updating channel/chtm/dest [null] cvs checkout: Updating channel/chtm/dest/ant [null] cvs checkout: Updating channel/chtm/dest/ant/channel [null] U channel/chtm/dest/ant/channel/Channel.java [null] U channel/chtm/dest/ant/channel/ChannelException.java [null] U channel/chtm/dest/ant/channel/ChannelListener.java [null] U channel/chtm/dest/ant/channel/Content.java [null] U channel/chtm/dest/ant/channel/ReadChannel.java [null] U channel/chtm/dest/ant/channel/WriteChannel.java [null] U channel/chtm/dest/ant/channel/channel.properties [null] cvs checkout: Updating channel/chtm/dest/ant/channel/unittest [null] U channel/chtm/dest/ant/channel/unittest/ChannelTest.java [null] U channel/chtm/dest/ant/channel/unittest/TestMessage.java init: clean: init: compile: [mkdir] Created dir: C:\MyChatRoom\classes [javac] Compiling 8 source files to C:\MyChatRoom\classes [copy] Copying 1 file to C:\MyChatRoom\classes init: unittest: [java] Test good [java] Timeout: killed the sub-process [java] Java Result: 1 init: filter: [delete] Deleting directory C:\MyChatRoom\classes\chtm\dest\ant\channel\unittest init: filter: [null] cvs checkout: Updating chatcommon [null] U chatcommon/build.xml [null] U chatcommon/environment.properties [null] cvs checkout: Updating chatcommon/chtm [null] cvs checkout: Updating chatcommon/chtm/dest [null] cvs checkout: Updating chatcommon/chtm/dest/ant [null] cvs checkout: Updating chatcommon/chtm/dest/ant/MyChatRoom [null] U chatcommon/chtm/dest/ant/MyChatRoom/ChatResources.java [null] U chatcommon/chtm/dest/ant/MyChatRoom/MyChatRoomMessage.java [null] U chatcommon/chtm/dest/ant/MyChatRoom/TopicMessage.java init: dependents: compile: [javac] Compiling 3 source files to C:\MyChatRoom\classes init: jar: [mkdir] Created dir: C:\MyChatRoom\lib [jar] Building jar: C:\MyChatRoom\lib\common.jar [null] cvs checkout: Updating chatserver [null] U chatserver/build.xml [null] U chatserver/environment.properties [null] cvs checkout: Updating chatserver/chtm [null] cvs checkout: Updating chatserver/chtm/dest [null] cvs checkout: Updating chatserver/chtm/dest/ant [null] cvs checkout: Updating chatserver/chtm/dest/ant/MyChatRoom [null] U chatserver/chtm/dest/ant/MyChatRoom/AdminMessage.java [null] U chatserver/chtm/dest/ant/MyChatRoom/AdminServer.java [null] U chatserver/chtm/dest/ant/MyChatRoom/ChatServer.java [null] U chatserver/chtm/dest/ant/MyChatRoom/chatserver.properties init: dependents: compile: [javac] Compiling 3 source files to C:\MyChatRoom\classes [copy] Copying 1 file to C:\MyChatRoom\classes jar: [jar] Building jar: C:\MyChatRoom\lib\chatserver.jar release: [delete] Deleting directory C:\MyChatRoom\classes [null] cvs checkout: Updating chatclient [null] U chatclient/build.xml [null] U chatclient/environment.properties [null] cvs checkout: Updating chatclient/chtm [null] cvs checkout: Updating chatclient/chtm/dest [null] cvs checkout: Updating chatclient/chtm/dest/ant [null] cvs checkout: Updating chatclient/chtm/dest/ant/MyChatRoom [null] U chatclient/chtm/dest/ant/MyChatRoom/ChatClient.java [null] U chatclient/chtm/dest/ant/MyChatRoom/ChatMessage.java [null] U chatclient/chtm/dest/ant/MyChatRoom/MyChatRoom.java [null] U chatclient/chtm/dest/ant/MyChatRoom/MyChatRoomException.java [null] U chatclient/chtm/dest/ant/MyChatRoom/MyChatRoomListener.java [null] U chatclient/chtm/dest/ant/MyChatRoom/chatclient.properties [null] cvs checkout: Updating chatclient/chtm/dest/ant/MyChatRoom/unittest [null] U chatclient/chtm/dest/ant/MyChatRoom/unittest/TopicClientTestCase1.java [null] U chatclient/chtm/dest/ant/MyChatRoom/unittest/TopicClientTestCase2.java init: dependent: compile: [mkdir] Created dir: C:\MyChatRoom\classes [javac] Compiling 7 source files to C:\MyChatRoom\classes [copy] Copying 1 file to C:\MyChatRoom\classes unittest: [echo] Router Started [echo] ChatServer Started [java] Starting Topics: ant.developer ant.user. [echo] Test Client 1 Started [java] Received message from user1. [java] Entered room ant.developer [echo] Test Client 2 Started [java] Received message from user2. [java] Entered room ant.developer [java] user2 : Hello World. [java] user1 : Hello [echo] Test Client 1 Completed [echo] Test Client 2 Completed [echo] AdminServer Started [java] Shutdown Server @localhost:4001 [java] Shutdown complete [java] Received message from AdminServer. [echo] AdminServer Stopped [echo] ChatServer Stopped [java] Timeout: killed the sub-process [java] Java Result: 1 [echo] Router Stopped filter: jar: [jar] Building jar: C:\MyChatRoom\lib\MyChatRoom.jar release: [delete] Deleting directory C:\MyChatRoom\classes BUILD SUCCESSFUL Total time: 1 minute 12 seconds
The above listing shows the BUILD SUCCESSFUL message, which confirms that the build is successful.
| Table of Contents |