tags 651810 + pending

On Wed, Dec 14, 2011 at 09:53:28AM -0430, Miguel Landaeta wrote:
> On Wed, Dec 14, 2011 at 12:29:38PM +0000, James Page wrote:
> > Thinking about it a bit more we could add a check in debian/rules to
> > determine whether the package or install target should get used based
> > on match with the current version of the package in the archive.
> I thought something similar. Probably I'll take a closer look at this today.

This should work:

diff --git a/debian/rules b/debian/rules
index a2b0a97..48e4a67 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,6 +7,12 @@ JAVA_HOME            := /usr/lib/jvm/default-java
 DEB_MAVEN_DOC_TARGET := javadoc:aggregate
 DEB_BUILDDIR         := $(CURDIR)/project
+# Avoid incremental builds when packaging a new upstream release by
+# using the maven install target to ensure that artifacts are installed 
+ifeq ($(shell echo -n $(DEB_VERSION) | sed -sre 's/^.*-(.*)$$/\1/'),1)
        -rm -rf debian/null mvn-build

Thanks for that patch. It's already merged.

Miguel Landaeta, miguel at miguel.cc
secure email with PGP 0x7D8967E9 available at http://keyserver.pgp.com/
"Faith means not wanting to know what is true." -- Nietzsche

Attachment: signature.asc
Description: Digital signature

This is the maintainer address of Debian's Java team
Please use
debian-j...@lists.debian.org for discussions and questions.

Reply via email to