tags 651810 + pending
thanks

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)
+DEB_MAVEN_BUILD_TARGET := install
+endif
+
 clean::
        -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
<http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-maintainers>. 
Please use
debian-j...@lists.debian.org for discussions and questions.

Reply via email to