Commit ab34440
committed
Build: Inject git version in Javadocs and improve reproducibility
This patch updates the Ant build process to include Git versioning
information in the generated Javadocs and ensures the build remains
robust in environments without Git.
Changes include:
- Implemented a new `exec-with-default` macro in `mirth-build.xml`. This
safely attempts to retrieve the Git hash and version name but falls
back to default values ("unknown") if the `.git` directory is missing
(e.g., source tarballs) or Git is not installed.
- Updated the Javadoc target to inject a footer containing the build
version.
- Added conditional logic to render a hyperlink to the GitHub commit
only if the revision is available; otherwise, it renders plain text.
- Added the `-notimestamp` flag to the Javadoc task to support
reproducible builds (ensuring identical output for identical input).
- Refactored argument passing (switched from `line` to `value`) and
added proper Ant namespaces for conditional execution.
Signed-off-by: Tony Germano <tony@germano.name>1 parent cae3da4 commit ab34440
2 files changed
Lines changed: 77 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
1200 | 1200 | | |
1201 | 1201 | | |
1202 | 1202 | | |
| 1203 | + | |
| 1204 | + | |
| 1205 | + | |
| 1206 | + | |
| 1207 | + | |
| 1208 | + | |
| 1209 | + | |
| 1210 | + | |
| 1211 | + | |
1203 | 1212 | | |
1204 | 1213 | | |
1205 | 1214 | | |
1206 | | - | |
1207 | | - | |
1208 | | - | |
| 1215 | + | |
| 1216 | + | |
| 1217 | + | |
| 1218 | + | |
| 1219 | + | |
| 1220 | + | |
| 1221 | + | |
| 1222 | + | |
| 1223 | + | |
| 1224 | + | |
| 1225 | + | |
1209 | 1226 | | |
1210 | 1227 | | |
1211 | 1228 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 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 | + | |
2 | 30 | | |
3 | 31 | | |
4 | 32 | | |
5 | 33 | | |
6 | 34 | | |
7 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
8 | 41 | | |
9 | | - | |
10 | | - | |
11 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
12 | 65 | | |
13 | 66 | | |
14 | 67 | | |
| |||
0 commit comments