Skip to content

Instantly share code, notes, and snippets.

@argius
Last active August 29, 2015 13:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save argius/d174bcad2f1dafedfec0 to your computer and use it in GitHub Desktop.
Save argius/d174bcad2f1dafedfec0 to your computer and use it in GitHub Desktop.
jdeps (new command line tool since Java8) with Stew4 (v4.1.0) @jdk8 ea b121
> jdeps -P stew.jar
stew.jar -> D:\opt\java1.8ea-b121\jre\lib\rt.jar (Full JRE)
stew.jar -> D:\opt\java1.8ea-b121\jre\lib\jce.jar (compact1)
net.argius (stew.jar)
-> java.lang compact1
net.argius.stew (stew.jar)
-> java.io compact1
-> java.lang compact1
-> java.net compact1
-> java.nio.channels compact1
-> java.security compact1
-> java.security.spec compact1
-> java.sql compact2
-> java.text compact1
-> java.util compact1
-> java.util.concurrent compact1
-> java.util.logging compact1
-> java.util.regex compact1
-> java.util.zip compact1
-> javax.crypto compact1
-> javax.crypto.spec compact1
-> javax.script compact1
net.argius.stew.command (stew.jar)
-> java.io compact1
-> java.lang compact1
-> java.sql compact2
-> java.util compact1
net.argius.stew.io (stew.jar)
-> java.io compact1
-> java.lang compact1
-> java.math compact1
-> java.net compact1
-> java.util compact1
-> java.util.regex compact1
net.argius.stew.text (stew.jar)
-> java.lang compact1
-> java.util compact1
net.argius.stew.ui (stew.jar)
-> java.lang compact1
net.argius.stew.ui.console (stew.jar)
-> java.io compact1
-> java.lang compact1
-> java.sql compact2
-> java.util compact1
net.argius.stew.ui.window (stew.jar)
-> java.awt Full JRE
-> java.awt.datatransfer Full JRE
-> java.awt.event Full JRE
-> java.beans Full JRE
-> java.io compact1
-> java.lang compact1
-> java.lang.reflect compact1
-> java.math compact1
-> java.net compact1
-> java.sql compact2
-> java.util compact1
-> java.util.concurrent compact1
-> java.util.regex compact1
-> java.util.zip compact1
-> javax.swing Full JRE
-> javax.swing.event Full JRE
-> javax.swing.plaf Full JRE
-> javax.swing.plaf.basic Full JRE
-> javax.swing.table Full JRE
-> javax.swing.text Full JRE
-> javax.swing.tree Full JRE
-> javax.swing.undo Full JRE
>
使用方法: jdeps <options> <classes...>
<classes>には、.classファイルのパス名、ディレクトリ、JARファイル、完全修飾クラス名
またはワイルドカード"*"を指定できます。使用できるオプションは次のとおりです:
-dotoutput <dir> Destination directory for DOT file output
-s --summary 依存性の要約のみ出力する
-v --verbose 追加情報を出力する
-cp <path> -classpath <path> Specify where to find class files
-p <pkg name> --package=<pkg name> 分析をこのパッケージのクラスに制限する
(複数回指定可能)
-e <regex> --regex=<regex> 分析をパターンに一致するパッケージに制限する
(-pと-eは排他的)
-include <regex> Restrict analysis to classes matching pattern
This option filters the list of classes to
be analyzed. It can be used together with
-p and -e which apply pattern to the dependences
-P --profile パッケージを含むプロファイルまたはファイルを表示する
-apionly Restrict analysis to APIs i.e. dependences
from the signature of public and protected
members of public classes including field
type, method parameter types, returned type,
checked exception types etc
-R --recursive すべての依存性を反復的に走査する
-jdkinternals Finds class-level dependences on JDK internal APIs.
By default, it analyzes all classes on -classpath
and input files unless -include option is specified.
This option cannot be used with -p, -e and -s options.
WARNING: JDK internal APIs may not be accessible in
the next release.
--version バージョン情報
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment