forked from mpetazzoni/ttorrent
-
Notifications
You must be signed in to change notification settings - Fork 1
/
INSTALL
37 lines (26 loc) · 1.11 KB
/
INSTALL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Howto build and use the ttorrent library
==========================================
Dependencies
------------
This Java implementation of the BitTorrent protocol implements a BitTorrent
tracker (an HTTP service), and a BitTorrent client. All dependencies are managed
by maven. The only dependencies of ttorrent-core are:
* the slf4j logging library
* the SimpleHTTPFramework
* the Apache Commons (Codec and IO)
The CLI module also depends on:
* the log4j library
* the jargs library
Building the distribution JAR
-----------------------------
Simply execute the following command:
$ mvn package
To build the library's JAR file (in the core/target/ directory). You can then import
this JAR file into your Java project and start using the Java BitTorrent
library.
This will also create a shaded JAR (in the cli/target/ directory). You can then use
this JAR file in conjunction with the three scripts in the bin/ folder. Each script
allows execution of one of the following entry points:
* ClientMain - for running a torrent client
* TorrentMain - for creating .torrent files
* TrackerMain - for running a tracking server