.jar
34 | *.so -- if jni stuff was compiled
35 | *.jnilib -- if jni stuff was compiled
36 | libs/ -- dependent jars (and any extra)
37 | config/ -- copied over from config/
38 | resources/ -- from src/main/resources/
39 |
40 |
41 | Primary targets
42 | ---------------
43 | - clean
44 | - erase all generated/built files
45 | - distclean
46 | - clean *everything*
47 | - prepare
48 | - resolve dependencies and download them
49 | - compile
50 | - build any java/scala source
51 | - test
52 | - build and run test suite (requires e:testclass)
53 | - stress
54 | - (optional) run stress test suite (requires e:stresstestclass)
55 | - docs
56 | - generate documentation
57 | - package
58 | - copy all generated/built files into distribution folder
59 | (requires "local" repo)
60 | - push
61 | - copy all generated/built files into a final repository
62 | (requires "push" repo)
63 |
64 |
65 | Properties that can change behavior
66 | -----------------------------------
67 |
68 | - skip.download
69 | if defined, don't download ivy; assume it's present
70 | - skip.test
71 | if defined, don't run test suite
72 | - skip.docs
73 | if defined, don't build docs
74 | - libs.extra
75 | any extra files to copy into dist//libs/ during compile
76 | - dist.extra
77 | any extra files to copy into dist/
during compile
78 | - config.extra
79 | any extra files to copy into config/ during compile
80 | - pack.deps
81 | if defined, pack dependent jars into the final dist jar, to remove dependencies
82 | - thrift.bin
83 | location of the "thrift" executable
84 | - push.build_name
85 | if defined, add the build name (and git revision) to jars when pushed to the repo
86 | - dist.build_name
87 | if defined, add the git revision to the name of the final distribution zip file
88 | - no.git
89 | if defined, don't try to fetch the current git head revision
90 |
91 |
92 | Extra ivy thingies
93 | ------------------
94 |
95 | - e:buildpackage
96 | causes a build.properties file to be created in the named package
97 | (stores version #, etc -- used by RuntimeEnvironment in configgy)
98 | - e:thriftpackage
99 | output package for generated thrift classes; causes thrift DDLs to be
100 | compiled
101 | - e:testclass
102 | class to execute for unit tests -- required, in order to run tests
103 | - e:stresstestclass
104 | class to execute for stress tests (optional)
105 | - e:jarclassname
106 | creates an executable jar with this as the main class name
107 |
108 |
109 | JNI
110 | ---
111 |
112 | JNI will be built if there appears to be a `build.xml` file in src/main/jni/.
113 | That ant file should contain a "clean" target and a "compile" target.
114 |
115 | Post-compile, the jni/ folder is expected to look like this:
116 | src/
117 | main/
118 | jni/
119 | build.xml -- used to build the jni packages
120 | /
121 | target/
122 | *.so -- copied into dist//
123 | *.jnilib -- copied into dist/
/
124 | *.jar -- copied into dist/
/
125 |
126 | There may be as many folders in jni/ as you desire.
127 |
128 |
--------------------------------------------------------------------------------
/ant/package.xml:
--------------------------------------------------------------------------------
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 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
65 |
66 |
67 |
70 |
71 |
72 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
105 |
106 |
107 |
108 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
--------------------------------------------------------------------------------
/ant/compile.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
129 |
130 |
131 |
132 |
133 |
134 |
135 |
136 |
137 |
138 |
139 |
140 |
141 |
142 |
143 |
144 |
145 |
146 |
147 |
148 |
149 |
150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 |
159 |
160 |
161 |
162 |
163 |
164 |
165 |
166 |
167 |
168 |
169 |
170 |
171 |
172 |
173 |
174 |
175 |
176 |
177 |
178 |
179 |
182 |
183 |
184 |
--------------------------------------------------------------------------------