From 5c3ca6ee45d522a5f230c502cb1f497c8e240038e6cde29a4232f798f2e24a80 Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Sun, 29 Sep 2024 18:09:11 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/Java:packages/maven-plugin-tools?expand=0&rev=59 --- .gitattributes | 23 + .gitignore | 1 + 0002-Remove-dependency-on-jtidy.patch | 106 ++ _multibuild | 4 + maven-plugin-plugin-bootstrap-resouces.patch | 1427 ++++++++++++++++++ maven-plugin-plugin-bootstrap.changes | 313 ++++ maven-plugin-plugin-bootstrap.spec | 110 ++ maven-plugin-plugin.changes | 296 ++++ maven-plugin-plugin.spec | 107 ++ maven-plugin-tools-3.13.0-source-release.zip | 3 + maven-plugin-tools-3.15.0-source-release.zip | 3 + maven-plugin-tools-build.tar.xz | 3 + maven-plugin-tools.changes | 324 ++++ maven-plugin-tools.spec | 259 ++++ 14 files changed, 2979 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 0002-Remove-dependency-on-jtidy.patch create mode 100644 _multibuild create mode 100644 maven-plugin-plugin-bootstrap-resouces.patch create mode 100644 maven-plugin-plugin-bootstrap.changes create mode 100644 maven-plugin-plugin-bootstrap.spec create mode 100644 maven-plugin-plugin.changes create mode 100644 maven-plugin-plugin.spec create mode 100644 maven-plugin-tools-3.13.0-source-release.zip create mode 100644 maven-plugin-tools-3.15.0-source-release.zip create mode 100644 maven-plugin-tools-build.tar.xz create mode 100644 maven-plugin-tools.changes create mode 100644 maven-plugin-tools.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/0002-Remove-dependency-on-jtidy.patch b/0002-Remove-dependency-on-jtidy.patch new file mode 100644 index 0000000..c43a771 --- /dev/null +++ b/0002-Remove-dependency-on-jtidy.patch @@ -0,0 +1,106 @@ +From 6953b37ee5a7c0566d2e11e7141768f8a4c03fa2 Mon Sep 17 00:00:00 2001 +From: Mikolaj Izdebski +Date: Mon, 27 Apr 2020 12:56:04 +0200 +Subject: [PATCH 2/3] Remove dependency on jtidy + +Forwarded: not-needed + +--- + .../plugin/generator/GeneratorUtils.java | 49 +------------------ + .../PluginDescriptorFilesGenerator.java | 7 +-- + 2 files changed, 2 insertions(+), 54 deletions(-) + +diff --git a/maven-plugin-tools-generators/src/main/java/org/apache/maven/tools/plugin/generator/GeneratorUtils.java b/maven-plugin-tools-generators/src/main/java/org/apache/maven/tools/plugin/generator/GeneratorUtils.java +index 99aa7965..f05fb876 100644 +--- a/maven-plugin-tools-generators/src/main/java/org/apache/maven/tools/plugin/generator/GeneratorUtils.java ++++ b/maven-plugin-tools-generators/src/main/java/org/apache/maven/tools/plugin/generator/GeneratorUtils.java +@@ -51,7 +51,6 @@ import org.apache.maven.reporting.MavenReport; + import org.codehaus.plexus.component.repository.ComponentDependency; + import org.codehaus.plexus.util.StringUtils; + import org.codehaus.plexus.util.xml.XMLWriter; +-import org.w3c.tidy.Tidy; + + /** + * Convenience methods to play with Maven plugins. +@@ -225,52 +224,6 @@ public final class GeneratorUtils { + } + + /** +- * Fixes some javadoc comment to become a valid XHTML snippet. +- * +- * @param description Javadoc description with HTML tags, may be null. +- * @return The description with valid XHTML tags, never null. +- * @deprecated Redundant for java extractor +- */ +- @Deprecated +- public static String makeHtmlValid(String description) { +- +- if (description == null || description.isEmpty()) { +- return ""; +- } +- +- String commentCleaned = decodeJavadocTags(description); +- +- // Using jTidy to clean comment +- Tidy tidy = new Tidy(); +- tidy.setDocType("loose"); +- tidy.setXHTML(true); +- tidy.setXmlOut(true); +- tidy.setInputEncoding("UTF-8"); +- tidy.setOutputEncoding("UTF-8"); +- tidy.setMakeClean(true); +- tidy.setNumEntities(true); +- tidy.setQuoteNbsp(false); +- tidy.setQuiet(true); +- tidy.setShowWarnings(true); +- +- ByteArrayOutputStream out = new ByteArrayOutputStream(commentCleaned.length() + 256); +- tidy.parse(new ByteArrayInputStream(commentCleaned.getBytes(StandardCharsets.UTF_8)), out); +- commentCleaned = new String(out.toByteArray(), StandardCharsets.UTF_8); +- +- if (commentCleaned == null || commentCleaned.isEmpty()) { +- return ""; +- } +- +- // strip the header/body stuff +- String ls = System.getProperty("line.separator"); +- int startPos = commentCleaned.indexOf("" + ls) + 6 + ls.length(); +- int endPos = commentCleaned.indexOf(ls + ""); +- commentCleaned = commentCleaned.substring(startPos, endPos); +- +- return commentCleaned; +- } +- +- /** + * Converts a HTML fragment as extracted from a javadoc comment to a plain text string. This method tries to retain + * as much of the text formatting as possible by means of the following transformations: + *