Added Java plugin.
authorNils Winkler <nils@nilswinkler.com>
Mon, 21 May 2012 09:50:01 +0000 (11:50 +0200)
committerNils Winkler <nils@nilswinkler.com>
Mon, 21 May 2012 09:50:01 +0000 (11:50 +0200)
plugins/available/java.plugin.bash [new file with mode: 0644]

diff --git a/plugins/available/java.plugin.bash b/plugins/available/java.plugin.bash
new file mode 100644 (file)
index 0000000..98e4624
--- /dev/null
@@ -0,0 +1,11 @@
+cite about-plugin
+about-plugin 'Java and JAR helper functions'
+
+function jar_manifest {
+  about "extracts the specified JAR file's MANIFEST file and prints it to stdout"
+  group 'java'
+  param '1: JAR file to extract the MANIFEST from'
+  example 'jar_manifest lib/foo.jar'
+
+  unzip -c $1 META-INF/MANIFEST.MF
+}