1
- = OpenJDK proposals
1
+ = OpenJDK split package scanner
2
2
Patrick Reinhart <https: //github.com /reinhapa[@reinhapa] >
3
3
:project-full-path: reinhapa/jsplitpkgscan
4
4
:github-branch: master
@@ -8,7 +8,14 @@ Patrick Reinhart <https://github.com/reinhapa[@reinhapa]>
8
8
image:https://img.shields.io/badge/license-GPL2+CPE-blue.svg["GNU General Public License, version 2,
9
9
with the Classpath Exception", link="https://github.com/{project-full-path} /blob/{github-branch} /LICENSE"]
10
10
11
- This project contains a proposal for a split package scanner tool http://openjdk.java.net[OpenJDK].
11
+ This project contains a proposal for http://openjdk.java.net[OpenJDK] split package scanner addition.
12
+
13
+ The diving force starting this tool was the lack of tooling to prepare existing class path based modules
14
+ for later migration to modules. For split packages with the current JDK, they will be shown by the `jdeps`
15
+ tool as of today, but not class path based modules so far.
16
+
17
+ The `jsplitpgkscan` utility will search for split packages within all given `.jar` files and the modules
18
+ known to the JDK itself and report them.
12
19
13
20
== Build and run
14
21
To build the tool you need to have a actual _JDK_ build (OpenJDK or Oracle) that you can get from
@@ -29,13 +36,20 @@ java -p build/libs -m jsplitpkg
29
36
----
30
37
31
38
== Create DOT graphic
32
- To get a PNG graphic for any .DOT file output you could use:
39
+ To get a PNG graphic for any .DOT file output for directed graphs you could use:
33
40
34
41
[source, bash]
35
42
----
36
43
dot -Tpng summary.dot -O -Gratio=0.5
37
44
----
38
45
46
+ If your experience problems due undirected graphs you could also use this command:
47
+
48
+ [source, bash]
49
+ ----
50
+ twopi -Tpng summary.dot -O -Gratio=0.5 -Goverlap=false
51
+ ----
52
+
39
53
== Contribute
40
54
Contributions are always welcome.
41
55
0 commit comments