Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.java > #8317
| From | Eugene Zhukov <jevgeni.zh@gmail.com> |
|---|---|
| Newsgroups | linux.debian.maint.java |
| Subject | Re: maven.build.timestamp and ReproducibleBuilds with maven |
| Date | 2015-09-04 20:50 +0200 |
| Message-ID | <q54dI-1WP-15@gated-at.bofh.it> (permalink) |
| References | <q4TLk-3RF-25@gated-at.bofh.it> <q51pw-6oq-23@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Fri, Sep 4, 2015 at 6:40 PM, Emmanuel Bourg <ebourg@apache.org> wrote: > Le 04/09/2015 09:38, Eugene Zhukov a écrit : > >> It is possible to set tool.build.date=something in d/maven.properties, >> but how to get this done dynamically? > > Hi Eugene, > > Did you try adding the DEB_MAVEN_ARGS variable in debian/rules to > specify the parameter dynamically? Something like this: > > DEB_CHANGELOG_DATETIME = $(shell dpkg-parsechangelog --show-field Date) > DEB_MAVEN_ARGS := -Dtool.build.date=$(DEB_CHANGELOG_DATETIME) > It works, thanks a lot! Just needed to add back the dependency on cdbs. > I wish the formatted changelog date could have been exported along > SOURCE_DATE_EPOCH, this would save one line. I need to transform the date to yyyy-MM-dd format to comply with upstream anyway. Eugene
Back to linux.debian.maint.java | Previous | Next — Previous in thread | Find similar
maven.build.timestamp and ReproducibleBuilds with maven Eugene Zhukov <jevgeni.zh@gmail.com> - 2015-09-04 09:40 +0200
Re: maven.build.timestamp and ReproducibleBuilds with maven Emmanuel Bourg <ebourg@apache.org> - 2015-09-04 17:50 +0200
Re: maven.build.timestamp and ReproducibleBuilds with maven Eugene Zhukov <jevgeni.zh@gmail.com> - 2015-09-04 20:50 +0200
csiph-web