[java-sig-commits] [javapackages] Add support for build conditionals --without tests and --without javadoc
Michal Srb
msrb at fedoraproject.org
Wed Sep 11 07:55:00 UTC 2013
commit 7dc3b558f9a66049e479bb310f9dd66a447914c8
Author: Michal Srb <msrb at redhat.com>
Date: Wed Sep 11 08:58:23 2013 +0200
Add support for build conditionals --without tests and --without javadoc
Maintainer can easily disable tests and/or javadoc generation:
rpmbuild -ba package.spec --without tests --without javadoc
etc/macros.xmvn | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/etc/macros.xmvn b/etc/macros.xmvn
index cecae40..7218e53 100644
--- a/etc/macros.xmvn
+++ b/etc/macros.xmvn
@@ -123,7 +123,7 @@
#
# For summary of accepted options execute `mvn-build --help` command.
#
-%mvn_build python %{_datadir}/java-utils/mvn_build.py %{?xmvn_bootstrap: -b}
+%mvn_build python %{_datadir}/java-utils/mvn_build.py %{?xmvn_bootstrap: -b} %{?_without_javadoc: -j $(> .mfiles-javadoc)}%{?_without_tests: -f}
# %mvn_install - install Maven project
More information about the java-sig-commits
mailing list