<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Denver Dev Blog &#187; Automation</title>
	<atom:link href="http://ambientideas.com/blog/index.php/tag/automation/feed/" rel="self" type="application/rss+xml" />
	<link>http://ambientideas.com/blog</link>
	<description>Matthew McCullough&#039;s insights on software development as co-founder of Ambient Ideas, LLC</description>
	<lastBuildDate>Wed, 23 Nov 2011 17:42:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>Script for finding a class inside a directory of JARs</title>
		<link>http://ambientideas.com/blog/index.php/2009/06/script-for-finding-a-class-inside-a-directory-of-jars/</link>
		<comments>http://ambientideas.com/blog/index.php/2009/06/script-for-finding-a-class-inside-a-directory-of-jars/#comments</comments>
		<pubDate>Mon, 15 Jun 2009 01:43:02 +0000</pubDate>
		<dc:creator>Matthew McCullough</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Automation]]></category>
		<category><![CDATA[Maven]]></category>
		<category><![CDATA[Productivity]]></category>
		<category><![CDATA[Scripting]]></category>

		<guid isPermaLink="false">http://ambientideas.com/blog/index.php/2009/06/script-for-finding-a-class-inside-a-directory-of-jars/</guid>
		<description><![CDATA[In the spirit of automating anything I've done more than twice manually, here's an incredibly simple yet useful little script to recursively search a tree of JARs for a class file.]]></description>
			<content:encoded><![CDATA[<p>In the spirit of automating anything I&#8217;ve done more than twice manually, here&#8217;s an incredibly simple yet useful little script to recursively search a tree of JARs for a class file.  I most often use this against a local Maven repository.</p>
<p><pre class="brush: bash; title: ;">
#!/bin/sh

#Example Usages:
# findjars com/ambientideas/SuperWidget
# findjars AnotherWidget

CLASSNAMETOFIND=&amp;amp;quot;$1&amp;amp;quot;

echo &amp;amp;quot;Searching all JARs recursively...&amp;amp;quot;
for eachjar in `find . -iname &amp;amp;quot;*.jar&amp;amp;quot;`
do
  #echo &amp;amp;quot;Searching in $eachjar ...&amp;amp;quot;
  jar tvf $eachjar | grep $CLASSNAMETOFIND &amp;amp;gt; /dev/null
  if [ $? == 0 ]
  then
    echo &amp;amp;quot;******* Located &amp;amp;quot;$CLASSNAMETOFIND&amp;amp;quot; in $eachjar *******&amp;amp;quot;
  fi
done
</pre></p>
]]></content:encoded>
			<wfw:commentRss>http://ambientideas.com/blog/index.php/2009/06/script-for-finding-a-class-inside-a-directory-of-jars/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

