dspinellis / UMLGraph

Declarative specification and drawing of UML diagrams
http://www.spinellis.gr/umlgraph
BSD 3-Clause "New" or "Revised" License
341 stars 93 forks source link

jdk9 port of UMLGraph #62

Closed laurentschoelens closed 1 year ago

laurentschoelens commented 1 year ago

Hi everyone, this is a first-step migration to jdk9 support (since new api used, the old jdk8 support as been dropped) It generates UMLGraph based on classes. Tested against jdk9 / jdk11 / jdk14 / jdk17.

Feel free to look at and use it

laurentschoelens commented 1 year ago

@dspinellis : thanks for your answer, I think there is still improvments to be done on this but it works well on the project itself. Some options had name changes also, be careful. May be this needed to be documented

laurentschoelens commented 1 year ago

This is based on these docs I found : https://docs.oracle.com/en/java/javase/17/docs/api/jdk.javadoc/jdk/javadoc/doclet/package-summary.html https://openjdk.org/groups/compiler/using-new-doclet.html

dspinellis commented 1 year ago

What do you mean by changed options? Command-line options?

laurentschoelens commented 1 year ago

Yes. Parsing option by command line and maven build due to new Doclet.Option API and parsing. Some have been double dashed to allow --myoption="something"

dspinellis commented 1 year ago

Oh, I see. It would be great if you could update the documentation! A git grep -e should help you locate where the changed options are mentioned. The documentation files are unfortunately in an extended version of XML/HTML, which I convert to plain HTML with a Perl script that's unfit for distribution. I'll update them locally when you ping me.

Also, when I announce this, is there a Twitter or Mastodon handle you'd like me to use to refer to you?

laurentschoelens commented 1 year ago

I've made documentation on the Doclet option API so if you pass unkwown options, it'll print all accepted options with documentation. I'll make more tests and update the XML documentation I used to do the document the doclet options

No Twitter nor Mastodon account. You can ping my github account if you want I think you could also test it before releasing. I'm not 100% sure it does samedi output as jdk8 version