<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Grepping for classes in jars</title>
	<atom:link href="http://www.philvarner.com/blog/2008/05/29/grepping-for-classes-in-jars/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.philvarner.com/blog/2008/05/29/grepping-for-classes-in-jars/</link>
	<description>mostly technical stuff</description>
	<lastBuildDate>Wed, 01 Sep 2010 13:03:19 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Craft</title>
		<link>http://www.philvarner.com/blog/2008/05/29/grepping-for-classes-in-jars/comment-page-1/#comment-1095</link>
		<dc:creator>Craft</dc:creator>
		<pubDate>Thu, 22 Jul 2010 23:21:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.philvarner.com/blog/2008/05/29/grepping-for-classes-in-jars/#comment-1095</guid>
		<description>Seems like everyone has one of these scripts . . .

Mine uses &quot;unzip -l&quot; instead of &quot;jar tvf&quot;.  I find unzip faster both in start up time and in processing time.  Usually not noticeable until you query thousands upon thousands of the suckers.

I also do &quot;&quot;&quot;find $2 -name &#039;*.[jwe]ar&#039;&quot;&quot;&quot; to search J2EE artifacts as well.

I also wrap the unzip &#124; grep in an if/then statement.  By default the clause just prints the file out, but one of the inputs to the script is another script which I use to modify the behavior a la ghetto closures.</description>
		<content:encoded><![CDATA[<p>Seems like everyone has one of these scripts . . .</p>
<p>Mine uses &#034;unzip -l&#034; instead of &#034;jar tvf&#034;.  I find unzip faster both in start up time and in processing time.  Usually not noticeable until you query thousands upon thousands of the suckers.</p>
<p>I also do &#034;&#034;"find $2 -name &#039;*.[jwe]ar&#039;&#034;"&#034; to search J2EE artifacts as well.</p>
<p>I also wrap the unzip | grep in an if/then statement.  By default the clause just prints the file out, but one of the inputs to the script is another script which I use to modify the behavior a la ghetto closures.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phil</title>
		<link>http://www.philvarner.com/blog/2008/05/29/grepping-for-classes-in-jars/comment-page-1/#comment-903</link>
		<dc:creator>Phil</dc:creator>
		<pubDate>Tue, 03 Jun 2008 03:19:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.philvarner.com/blog/2008/05/29/grepping-for-classes-in-jars/#comment-903</guid>
		<description>Yes, that&#039;s a good option too.  I like the &quot;always&quot; echo $jar so I know if I&#039;ve accidentally set it on a huge NFS mount that will keep it busy for hours.  One minor drawback of grep -q is that you find out if the classname is in the jar, but not at a glance what the FQN of the class is.</description>
		<content:encoded><![CDATA[<p>Yes, that&#039;s a good option too.  I like the &#034;always&#034; echo $jar so I know if I&#039;ve accidentally set it on a huge NFS mount that will keep it busy for hours.  One minor drawback of grep -q is that you find out if the classname is in the jar, but not at a glance what the FQN of the class is.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: msa</title>
		<link>http://www.philvarner.com/blog/2008/05/29/grepping-for-classes-in-jars/comment-page-1/#comment-902</link>
		<dc:creator>msa</dc:creator>
		<pubDate>Mon, 02 Jun 2008 14:52:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.philvarner.com/blog/2008/05/29/grepping-for-classes-in-jars/#comment-902</guid>
		<description>... i&#039;d use:

jar tvf $jar &#124; grep -q &quot;$1&quot; &amp;&amp; echo $jar</description>
		<content:encoded><![CDATA[<p>&#8230; i&#039;d use:</p>
<p>jar tvf $jar | grep -q &#034;$1&#034; &amp;&amp; echo $jar</p>
]]></content:encoded>
	</item>
</channel>
</rss>
