summaryrefslogtreecommitdiff
path: root/tools/class-dump
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-09-20 14:07:01 -0700
committerPaul Phillips <paulp@improving.org>2012-09-20 14:07:01 -0700
commitcc6f5f97f8a4290391a69ac96f134cb3e8ed4381 (patch)
treef2aa4f428719b7a8c8afd9959161f43b26a2c06d /tools/class-dump
parentc8e6f8e64c4d9967cee41486cc2e324da0262976 (diff)
parent08de8afde6c99fb1739eb9730e6fce4eef54f296 (diff)
downloadscala-cc6f5f97f8a4290391a69ac96f134cb3e8ed4381.tar.gz
scala-cc6f5f97f8a4290391a69ac96f134cb3e8ed4381.tar.bz2
scala-cc6f5f97f8a4290391a69ac96f134cb3e8ed4381.zip
Merge remote-tracking branch 'paulp/topic/gitattributes' into 2.10.x
Diffstat (limited to 'tools/class-dump')
-rwxr-xr-xtools/class-dump6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/class-dump b/tools/class-dump
new file mode 100755
index 0000000000..06a7e5acbc
--- /dev/null
+++ b/tools/class-dump
@@ -0,0 +1,6 @@
+#!/bin/sh
+#
+
+JAVAP_OPTS="-private"
+
+[[ -n "$1" ]] && ( cd "$(dirname "$1")" && javap $JAVAP_OPTS "$(basename "${1%%.class}")" )