22301080 | a033473 | 2025-05-17 21:38:32 +0800 | [diff] [blame^] | 1 | Howto build and use the BitTorrent library |
| 2 | ========================================== |
| 3 | |
| 4 | Dependencies |
| 5 | ------------ |
| 6 | |
| 7 | This Java implementation of the BitTorrent protocol implements a BitTorrent |
| 8 | tracker (an HTTP service), and a BitTorrent client. The only dependencies of |
| 9 | the BitTorrent library are: |
| 10 | |
| 11 | * the log4j library |
| 12 | * the slf4j logging library |
| 13 | * the SimpleHTTPFramework |
| 14 | |
| 15 | These libraries are provided in the lib/ directory, and are automatically |
| 16 | included in the JAR file created by the build process. |
| 17 | |
| 18 | |
| 19 | Building the distribution JAR |
| 20 | ----------------------------- |
| 21 | |
| 22 | Simply execute the following command: |
| 23 | |
| 24 | $ mvn package |
| 25 | |
| 26 | To build the library's JAR file (in the target/ directory). You can then import |
| 27 | this JAR file into your Java project and start using the Java BitTorrent |
| 28 | library. |