[Git][java-team/ant][master] Disable doclint by default when building a Debian package (Closes: #981927)
Emmanuel Bourg
gitlab at salsa.debian.org
Thu Feb 11 08:16:56 GMT 2021
Emmanuel Bourg pushed to branch master at Debian Java Maintainers / ant
Commits:
abf3036b by Emmanuel Bourg at 2021-02-11T09:16:28+01:00
Disable doclint by default when building a Debian package (Closes: #981927)
- - - - -
3 changed files:
- debian/changelog
- + debian/patches/0018-disable-doclint.patch
- debian/patches/series
Changes:
=====================================
debian/changelog
=====================================
@@ -1,3 +1,9 @@
+ant (1.10.9-3) unstable; urgency=medium
+
+ * Disable doclint by default when building a Debian package (Closes: #981927)
+
+ -- Emmanuel Bourg <ebourg at apache.org> Thu, 11 Feb 2021 09:16:09 +0100
+
ant (1.10.9-2) unstable; urgency=medium
* Adjust the source/target level to 7 when using Java 12 or later
=====================================
debian/patches/0018-disable-doclint.patch
=====================================
@@ -0,0 +1,17 @@
+Description: Disable doclint by default when building a Debian package
+Author: Emmanuel Bourg <ebourg at apache.org>
+Forwarded: not-needed
+--- a/src/main/org/apache/tools/ant/taskdefs/Javadoc.java
++++ b/src/main/org/apache/tools/ant/taskdefs/Javadoc.java
+@@ -1864,6 +1864,11 @@
+ log("Debian build on Java 9+ detected: Adding the --ignore-source-errors option");
+ }
+
++ if (LanguageLevel.isDebianBuild() && JavaEnvUtils.isAtLeastJavaVersion("9")) {
++ toExecute.createArgument().setValue("-Xdoclint:none");
++ log("Debian build on Java 9+ detected: Adding the -Xdoclint:none option");
++ }
++
+ doLinkSource(toExecute);
+ doNoqualifier(toExecute);
+
=====================================
debian/patches/series
=====================================
@@ -4,3 +4,4 @@
0013-auto-adjust-target.patch
0015-javadoc-ignore-source-errors.patch
0017-usrmerge-proof.patch
+0018-disable-doclint.patch
View it on GitLab: https://salsa.debian.org/java-team/ant/-/commit/abf3036bf2cf2a619780b2a2ab5783c5ca34d24e
--
View it on GitLab: https://salsa.debian.org/java-team/ant/-/commit/abf3036bf2cf2a619780b2a2ab5783c5ca34d24e
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-commits/attachments/20210211/6f99dc64/attachment.html>
More information about the pkg-java-commits
mailing list