[maven-debian-helper] 01/04: Pass the dh_auto_install arguments to Maven

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Fri Dec 11 13:46:42 UTC 2015


This is an automated email from the git hooks/post-receive script.

ebourg-guest pushed a commit to branch master
in repository maven-debian-helper.

commit 3ac1dd7b70328bc21d37b575ae12857a33f4ce24
Author: Emmanuel Bourg <ebourg at apache.org>
Date:   Fri Dec 11 10:51:33 2015 +0100

    Pass the dh_auto_install arguments to Maven
---
 debian/changelog    | 9 +++++++++
 share/perl/maven.pm | 4 +++-
 2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index f283202..a7ae7b1 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,12 @@
+maven-debian-helper (2.0.1) UNRELEASED; urgency=medium
+
+  * Team upload.
+  * The dh_auto_install arguments are now passed to Maven
+    (for example to specify the location of the build file with
+    dh_auto_install -- -f foo/pom.xml)
+
+ -- Emmanuel Bourg <ebourg at apache.org>  Fri, 11 Dec 2015 10:48:06 +0100
+
 maven-debian-helper (2.0) unstable; urgency=medium
 
   * Team upload.
diff --git a/share/perl/maven.pm b/share/perl/maven.pm
index 090bc70..5f80658 100644
--- a/share/perl/maven.pm
+++ b/share/perl/maven.pm
@@ -89,6 +89,8 @@ sub test {
 sub install {
 	my $this=shift;
 	my @resolvedep_args;
+	my @install_args = @_;
+	shift @install_args;
 
 	opendir(my $dirhandle, "/usr/share/maven-repo/org/debian/maven/maven-packager-utils/")
 		|| die "maven debian helper not found";
@@ -100,7 +102,7 @@ sub install {
 	}
 	push(@resolvedep_args, "--base-directory=$this->{cwd}", "--non-explore");
 
-	$this->doit_in_builddir(@{$this->{maven_cmd}},
+	$this->doit_in_builddir(@{$this->{maven_cmd}}, @install_args,
 		"-Ddebian.dir=$this->{cwd}/debian",
 		"-Ddebian.package=$this->{package}",
 		"-Dmaven.repo.local=$this->{cwd}/debian/maven-repo",

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/maven-debian-helper.git



More information about the pkg-java-commits mailing list