You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Docs mention how to run examples but that doesn't work any longer #1702
while that isn't true anymore and I think I'm responsible due to #700
I'm wondering if we might want do move the example code into a separate module within the repository and add what's necessary to be able to run the examples somehow when one has cloned the sources locally?
I'm not an expert on how to do that with Maven (always using Gradle...) but could dig into it if you're interested in such a contribution.
Otherwise I have set up a standalone version of the examples here: https://github.com/sebkur/jsoup-examples. I guess having some separate repository for examples could also be a sensible approach, what do you think? Maybe it even inspires others to contribute more examples.
Could we do a short-term revert? We are upgrading to newer versions of JSoup and the HtmlToPlainText example is used in our code base and no longer compiles
Hmm, I don't think the example code should be used in any code base outside this project. It's not really part of the public API, at least that's how I see it. I think a good solution here is to just copy the source code of that class into your project and potentially improve it and adapt it to your needs.
Activity
ray-vgw commentedon Mar 6, 2022
Could we do a short-term revert? We are upgrading to newer versions of JSoup and the HtmlToPlainText example is used in our code base and no longer compiles
sebkur commentedon Mar 7, 2022
Hmm, I don't think the example code should be used in any code base outside this project. It's not really part of the public API, at least that's how I see it. I think a good solution here is to just copy the source code of that class into your project and potentially improve it and adapt it to your needs.
jhy commentedon Dec 16, 2024
Thanks -- fixed with d6ed470. CLI example jar is
jsoup-examples.jar.chore(deps): update all non-major dependencies (mulk/mulkcms2!58)