From: Nils Winkler Date: Mon, 21 May 2012 09:50:01 +0000 (+0200) Subject: Added Java plugin. X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=998c09745ab94bf35d4f87431ae83a7b408bdbc1;p=common%2Fbash_it.git Added Java plugin. --- diff --git a/plugins/available/java.plugin.bash b/plugins/available/java.plugin.bash new file mode 100644 index 0000000..98e4624 --- /dev/null +++ b/plugins/available/java.plugin.bash @@ -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 +}