Package: maven-debian-helper
Version: 2.0.6
Severity: normal

Dear Maintainer,

According to the documentation, calling mh_make with --run-tests=false should
disable the running of tests, similarly --javadoc=false should disable 
generation of documentation. In practice it is not currently possible to disable
either tests  or  documentation through a command line option. The attached 
patch is a quick fix for this, there may be more elegant solutions.

Thanks.

Christopher Hoskin



-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.6.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages maven-debian-helper depends on:
ii  default-jdk                     2:1.8-57
ii  libmaven-clean-plugin-java      2.5-1
ii  libmaven-compiler-plugin-java   3.2-5
ii  libmaven-jar-plugin-java        2.4-1
ii  libmaven-resources-plugin-java  2.6-1
ii  libmaven-site-plugin-java       2.1-4
ii  libplexus-velocity-java         1.1.8-1
ii  libsurefire-java                2.17-2
ii  libxml2-utils                   2.9.3+dfsg1-1.2
ii  maven                           3.3.9-4
ii  maven-repo-helper               1.8.12
ii  unzip                           6.0-20
ii  velocity                        1.7-4

maven-debian-helper recommends no packages.

Versions of packages maven-debian-helper suggests:
ii  apt-file                      3.0
ii  devscripts                    2.16.5
ii  libmaven-javadoc-plugin-java  2.10.3-2
pn  subversion                    <none>

-- no debconf information
diff --git a/bin/mh_make b/bin/mh_make
index 2bcf4ff..2794e46 100755
--- a/bin/mh_make
+++ b/bin/mh_make
@@ -114,8 +114,11 @@ if [ -z "$RUN_TESTS" ]; then
     if [ "$RUN" == "n" ]; then
         RUN_TESTS=
     fi
+elif [ "$RUN_TESTS"="false" ]; then
+    RUN_TESTS=
 fi
 
+
 if [ -z "$GEN_JAVADOC" ]; then
 	echo
     echo "Generate the Javadoc while building the package?"
@@ -124,6 +127,8 @@ if [ -z "$GEN_JAVADOC" ]; then
     if [ "$GEN" == "n" ]; then
         GEN_JAVADOC=
     fi
+elif [ "$GEN_JAVADOC"="false" ]; then
+    GEN_JAVADOC=
 fi
 
 echo

Reply via email to