Skip to content

Commit a2ac025

Browse files
author
Mate Szalay-Beko
committed
ZOOKEEPER-3436 enhance / format README_packaging.md
Change-Id: Ie9b433f011ba6c15cd09a45672d45509da84da13
1 parent 30eea5e commit a2ac025

1 file changed

Lines changed: 47 additions & 45 deletions

File tree

README_packaging.md

Lines changed: 47 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -8,70 +8,72 @@ http://bigtop.apache.org/
88

99
## Requirements
1010

11-
ant (recommended version 1.9.4 or later for concurrent JUnit test execution) or maven
12-
gcc, cppunit and python-setuptools are required to build
13-
C and python bindings.
11+
- ant (recommended version 1.9.4 or later for concurrent JUnit test execution) or maven to build the java code
12+
- gcc, cppunit and python-setuptools are required to build C and python bindings.
1413

1514
On RHEL machine:
1615

17-
`yum install cppunit`
18-
`yum install python-setuptools`
16+
```
17+
yum install cppunit
18+
yum install python-setuptools
19+
```
1920

2021
On Ubuntu:
2122

22-
`apt-get --install cppunit`
23-
`apt-get --install python-setuptools`
23+
```
24+
apt-get install cppunit
25+
apt-get install python-setuptools
26+
```
2427

2528

29+
## Package build command (using maven)
2630

27-
## Package build command (using ant)
31+
Commands to clean everything and build the tarball package without executing the tests:
32+
33+
```
34+
mvn clean -Pfull-build
35+
mvn install -Pfull-build -DskipTests
36+
```
37+
38+
Optional parameters you might consider when using maven:
39+
- `-DskipTests` - this parameter will skip both java and C++ unit test execution during the build
40+
- `-Pfull-build` - activates the full-build profile, causing the C client and python code to be built
41+
- `-Pc-test-coverage` - activates the test coverage calculation during the execution of C client tests
2842

29-
Command to build tarball package: `ant tar`
43+
Please note: if you don't provide the `-Pfull-build` parameter, then the C client will not be built, the C client tests
44+
will not be executed and the previous C client builds will no be cleaned up (e.g. with simply using `mvn clean`).
3045

31-
`zookeeper-<version>.tar.gz` tarball file structure layout
46+
`zookeeper-assembly/target/apache-zookeeper-<version>-bin.tar.gz` tarball file structure layout:
3247

33-
/bin - User executable
34-
/sbin - System executable
35-
/libexec - Configuration boot trap script
36-
/lib - Library dependencies
37-
/docs - Documents
38-
/share/zookeeper - Project files
48+
- `/bin` - User executables
49+
- `/conf` - Configuration files
50+
- `/lib` - ZooKeeper JAR files and all the required java library dependencies
51+
- `/docs` - Documents
52+
- `/usr` - Native artifacts (only present if `-Pfull-build` used)
53+
54+
Beside the binary tarball, you can find the whole original source project packaged into:
55+
`zookeeper-assembly/target/apache-zookeeper-<version>.tar.gz`
3956

40-
Command to build tarball package with native components: `ant package-native tar`
4157

42-
`zookeeper-<version>-lib.tar.gz` tarball file structure layout
58+
## Package build command (using ant)
4359

44-
/bin - User executable
45-
/lib - Native libraries
46-
/include/zookeeper - Native library headers
60+
**Command to build tarball package:** `ant tar`
4761

62+
`zookeeper-<version>.tar.gz` tarball file structure layout:
4863

49-
## Package build command (using maven)
64+
- `/bin` - User executable
65+
- `/sbin` - System executable
66+
- `/libexec` - Configuration boot trap script
67+
- `/lib` - Library dependencies
68+
- `/docs` - Documents
69+
- `/share/zookeeper` - Project files
5070

51-
Command to clean everything and build the tarball package without executing the tests:
52-
`mvn clean -Pfull-build && mvn install -Pfull-build -DskipTests`
5371

72+
**Command to build tarball package with native components:** `ant package-native tar`
5473

55-
Optional parameters you might consider when using maven:
56-
`-DskipTests` - this parameter will skip both java and C++ unit test execution during the build
57-
`-Pfull-build` - activates the full-build profile, causing the C client to be built
58-
`-Pc-test-coverage` - activates the test coverage calculation during the execution of C client tests
74+
`zookeeper-<version>-lib.tar.gz` tarball file structure layout:
5975

76+
- `/bin` - User executable
77+
- `/lib` - Native libraries
78+
- `/include/zookeeper` - Native library headers
6079

61-
Please note: if you don't provide the `-Pfull-build` parameter, then the C client will not be built, the C client tests
62-
will not be executed and the previous C client builds will no be cleaned up (e.g. with 'mvn clean').
63-
64-
`zookeeper-assembly/target/apache-zookeeper-<version>-bin.tar.gz` tarball file structure layout
65-
66-
/bin - User executables
67-
/conf - Configuration files
68-
/lib - ZooKeeper JAR files and all the required java library dependencies
69-
/docs - Documents
70-
/usr - Native artifacts (only present if `-Pfull-build` used)
71-
/usr/bin - User executable
72-
/usr/lib - Native libraries
73-
/usr/include/zookeeper - Native library headers
74-
75-
76-
Beside the binary tarball, you can find the whole original source project packaged into:
77-
`zookeeper-assembly/target/apache-zookeeper-<version>.tar.gz`

0 commit comments

Comments
 (0)