Skip to content

Docs mention how to run examples but that doesn't work any longer #1702

@sebkur

Description

@sebkur

I just noticed that in https://github.com/jhy/jsoup/blob/master/src/main/java/org/jsoup/examples/HtmlToPlainText.java#L24
we still say that it'd be possible to run the example like this:

java -cp jsoup.jar org.jsoup.examples.HtmlToPlainText url

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    fixedAn {bug|improvement} that has been {fixed|implemented}

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions