Questions:
=== [servlet api 2.2] src:jakarta-servletapi-2.2 ? ===
=== |jigsaw] src:jigsaw ===
Package produces 3 jars. One of them is used in other packages (and published on maven), others are internal (and not on maven). Should I have 1 binary package for each like this (or just put all 3 in the 1st one like I'm doing presently)?
=== [css-validator] src:css-validator ===
Upstream permits to build jar and war.
It can be invoked by command line, and is also a webapp (usable in jigsaw, but
also tomcat9/jetty9 (support for the **javax.servlet** package/api is required).
For the **jar**, given that on the one hand it is an application, and on the other hand that it is used as a dependency for vnu, should it go to /usr/ share/java/css-validator.jar or to /usr/share/css-validator/css-validator.jar (which is my present choice)? Shipped in bin:libcss-validator-java or bin:css-
validator (present choice)?
How would you ship the **war** or **webapp**?
You most certainly don't need the Servlet API 2.2, the package should
build against libservlet-api-java (Servlet API 4.0) with minor
adjustments (if any).
Actually I did that initially and even tried to "fix it" but that went much above my skills and interest. Enough to prefer engaging in making the package for api 2.2 and searching its source code (which was not an easy part). Actually many functions of servlet >= 2.3 are not implemented in jigsaw. Build
fails with any servlet-api version >= 2.3. Would anyone try to fix/patch it? The package on my salsa repo would be a good starting point since it builds fine with the bin:libjakarta-servletapi-2.2-java package installed, otherwise
sources (without the debian part) can taken from: https://github.com/tenzap/jigsaw (branch with-jdk21).
How would you ship the **war** or **webapp**?
If vnu doesn't require the webapp, do not package it. Let's keep things
simple (and fun).
Now that it's done, can I leave it that way instead of just throwing all the work away?
It can actually have some interest to deploy the war/webapp on the server (jetty/tomcat) that's why I packaged it.
But this raises another question: why a 20 year old unmaintained web
server is necessary? Is it possible to do without it?
I don't know exactly. Digging into the internals of jigsaw to know why would be too time-consuming. I have 2 guesses:
- css-validator can be installed into tomcat but also jigsaw (see https:// jigsaw.w3.org/css-validator/DOWNLOAD.html )
- css-validator requires package "org.w3c.www.http" (~60 classes) and some of its dependencies that are shipped in jigsaw.
It's also about avoiding extra work in the future for maintaining a
package that may not be used.
I find it useful to ship also the webapp. Without it, we only have the command
line interface and I don't know if it is feature-equivalent. All the html files of the webapp are not shipped otherwise. We could also drop the package in future if it is source of problems or maintenance burden?
I got a look and I confirm it's possible to build css-validator without
jigsaw, by just importing a few classes:
https://github.com/w3c/css-validator/pull/449
Ok, thank you for that. Can I use it directly as a patch in the Debian package, or should I rather use the "d/missing-sources"?
In this case, this would make my question of the original e-mail relevant again. It's the last paragraph starting with "How would you ship the **war** or **webapp**?..."
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (1 / 15) |
Uptime: | 155:49:26 |
Calls: | 10,384 |
Calls today: | 1 |
Files: | 14,056 |
Messages: | 6,416,464 |