From bcb4f030678bc686a387e27dade24c0e854b3171 Mon Sep 17 00:00:00 2001 From: Deathsbreed Date: Sat, 20 Sep 2014 19:18:49 -0500 Subject: [PATCH] Now using ant. --- README.md | 16 ++++++---- build.xml | 31 +++++++++++++++++++ .../consolechat/client}/Client.java | 2 ++ .../consolechat/client}/ClientThread.java | 2 ++ .../consolechat/server}/Server.java | 2 ++ .../consolechat/server}/ServerThread.java | 2 ++ 6 files changed, 49 insertions(+), 6 deletions(-) create mode 100644 build.xml rename {src-client => src/consolechat/client}/Client.java (99%) rename {src-client => src/consolechat/client}/ClientThread.java (97%) rename {src-server => src/consolechat/server}/Server.java (99%) rename {src-server => src/consolechat/server}/ServerThread.java (99%) diff --git a/README.md b/README.md index 3e0c981..f75df01 100644 --- a/README.md +++ b/README.md @@ -3,10 +3,14 @@ ConsoleChat This program was made as a personal project to learn Java network programming. The concept of it is rather simple, all it does is send messages to a server which, in turn, sends the message to everyone else (aside from some other commands added). Although the license is MIT, please consider also disclosing the source-code under an open-source license. It helps to give back to the community and help others just like this may have helped you. -###Compilation -_Compile in the corresponding directory._ +###Compiling +To compile the source code, make sure you have JDK and Apache Ant installed. Then run the following command: +``` +$ ant jar +``` -``` -$ javac Server.java -$ javac Client.java -``` +###Contributing +To contribute to the project, simply open a pull request and I'll make sure to get back to you as soon as possible. + +###License +This program is licensed with an [MIT license](/LICENSE). However, please take into account that you took from the community, and you should make sure to give back. diff --git a/build.xml b/build.xml new file mode 100644 index 0000000..988a1cd --- /dev/null +++ b/build.xml @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src-client/Client.java b/src/consolechat/client/Client.java similarity index 99% rename from src-client/Client.java rename to src/consolechat/client/Client.java index 10fa773..13126eb 100644 --- a/src-client/Client.java +++ b/src/consolechat/client/Client.java @@ -1,3 +1,5 @@ +package consolechat.client; + import java.net.*; import java.io.*; import java.lang.*; diff --git a/src-client/ClientThread.java b/src/consolechat/client/ClientThread.java similarity index 97% rename from src-client/ClientThread.java rename to src/consolechat/client/ClientThread.java index f90fb60..6604f59 100644 --- a/src-client/ClientThread.java +++ b/src/consolechat/client/ClientThread.java @@ -1,3 +1,5 @@ +package consolechat.client; + import java.io.*; import java.net.*; diff --git a/src-server/Server.java b/src/consolechat/server/Server.java similarity index 99% rename from src-server/Server.java rename to src/consolechat/server/Server.java index e2e2937..1092cb2 100644 --- a/src-server/Server.java +++ b/src/consolechat/server/Server.java @@ -1,3 +1,5 @@ +package consolechat.server; + import java.net.*; import java.io.*; import java.util.*; diff --git a/src-server/ServerThread.java b/src/consolechat/server/ServerThread.java similarity index 99% rename from src-server/ServerThread.java rename to src/consolechat/server/ServerThread.java index 97c88a5..a086adb 100644 --- a/src-server/ServerThread.java +++ b/src/consolechat/server/ServerThread.java @@ -1,3 +1,5 @@ +package consolechat.server; + import java.net.*; import java.io.*;