<?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: Using JSLint from Ant</title>
	<atom:link href="http://hardlikesoftware.com/weblog/2008/08/22/using-jslint-from-ant/feed/" rel="self" type="application/rss+xml" />
	<link>http://hardlikesoftware.com/weblog/2008/08/22/using-jslint-from-ant/</link>
	<description>The writings of John Snyders, mostly about software.</description>
	<lastBuildDate>Thu, 13 Oct 2011 15:18:19 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: neil</title>
		<link>http://hardlikesoftware.com/weblog/2008/08/22/using-jslint-from-ant/comment-page-1/#comment-41411</link>
		<dc:creator>neil</dc:creator>
		<pubDate>Sun, 14 Mar 2010 21:24:44 +0000</pubDate>
		<guid isPermaLink="false">http://hardlikesoftware.com/weblog/2008/08/22/using-jslint-from-ant/#comment-41411</guid>
		<description>:-)</description>
		<content:encoded><![CDATA[<p> <img src='http://hardlikesoftware.com/weblog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Snyders</title>
		<link>http://hardlikesoftware.com/weblog/2008/08/22/using-jslint-from-ant/comment-page-1/#comment-41280</link>
		<dc:creator>John Snyders</dc:creator>
		<pubDate>Sun, 07 Mar 2010 22:36:23 +0000</pubDate>
		<guid isPermaLink="false">http://hardlikesoftware.com/weblog/2008/08/22/using-jslint-from-ant/#comment-41280</guid>
		<description>I&#039;m glad it worked for you Neil. 
There is a bug in the above code, hopefully you and others have caught and fixed it. 
In the call to checkFile I forgot to pass in options.

To get the build to fail you should count the total number of errors and then at the end of the loop

if (numerrors &gt; 0) {
  throw BuildException(numerrors + &quot;jslint errors&quot;);
}
I think the above works but have not tried it. I just print out the total number of errors.</description>
		<content:encoded><![CDATA[<p>I&#8217;m glad it worked for you Neil.<br />
There is a bug in the above code, hopefully you and others have caught and fixed it.<br />
In the call to checkFile I forgot to pass in options.</p>
<p>To get the build to fail you should count the total number of errors and then at the end of the loop</p>
<p>if (numerrors > 0) {<br />
  throw BuildException(numerrors + &#8220;jslint errors&#8221;);<br />
}<br />
I think the above works but have not tried it. I just print out the total number of errors.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: neil</title>
		<link>http://hardlikesoftware.com/weblog/2008/08/22/using-jslint-from-ant/comment-page-1/#comment-41151</link>
		<dc:creator>neil</dc:creator>
		<pubDate>Wed, 03 Mar 2010 21:06:15 +0000</pubDate>
		<guid isPermaLink="false">http://hardlikesoftware.com/weblog/2008/08/22/using-jslint-from-ant/#comment-41151</guid>
		<description>Hi John

thanks for this, worked like a charm straight out of the box.  One question: how would I get the build to fail on a Lint fail?

Neil</description>
		<content:encoded><![CDATA[<p>Hi John</p>
<p>thanks for this, worked like a charm straight out of the box.  One question: how would I get the build to fail on a Lint fail?</p>
<p>Neil</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Snyders</title>
		<link>http://hardlikesoftware.com/weblog/2008/08/22/using-jslint-from-ant/comment-page-1/#comment-8612</link>
		<dc:creator>John Snyders</dc:creator>
		<pubDate>Sat, 23 Aug 2008 01:44:50 +0000</pubDate>
		<guid isPermaLink="false">http://hardlikesoftware.com/weblog/2008/08/22/using-jslint-from-ant/#comment-8612</guid>
		<description>[Comments from original post]
*
I&#039;ve recently created a project at google which uses the above code to incorporate JSLint into a JS testing framework. Check it out at Rhinounit I believe it is a very clean, and fast, way of writing good JS unit tests.

      Posted by: tiestvilee on May 13, 2008 at 4:19 AM

*
I don&#039;t know if the Java version makes a difference. I am using Java 1.5 or 1.6, Ant 1.6.5, Commons logging 1.1, Rhino 1.6R7 and BSF 2.4.0.

      Posted by: jsnyders on April 1, 2008 at 11:57 AM

*
does this require java 1.5 to work? the shop where i work is still on 1.4.2 -- i keep getting the &quot;Unable to load script engine manager&quot; error...

      Posted by: pyroblue on April 1, 2008 at 11:46 AM

*
You will also need commons logging jar. I found version 1.1 to work (commons-logging-1.1.jar)

      Posted by: jsnyders on November 17, 2007 at 7:14 PM</description>
		<content:encoded><![CDATA[<p>[Comments from original post]<br />
*<br />
I&#8217;ve recently created a project at google which uses the above code to incorporate JSLint into a JS testing framework. Check it out at Rhinounit I believe it is a very clean, and fast, way of writing good JS unit tests.</p>
<p>      Posted by: tiestvilee on May 13, 2008 at 4:19 AM</p>
<p>*<br />
I don&#8217;t know if the Java version makes a difference. I am using Java 1.5 or 1.6, Ant 1.6.5, Commons logging 1.1, Rhino 1.6R7 and BSF 2.4.0.</p>
<p>      Posted by: jsnyders on April 1, 2008 at 11:57 AM</p>
<p>*<br />
does this require java 1.5 to work? the shop where i work is still on 1.4.2 &#8212; i keep getting the &#8220;Unable to load script engine manager&#8221; error&#8230;</p>
<p>      Posted by: pyroblue on April 1, 2008 at 11:46 AM</p>
<p>*<br />
You will also need commons logging jar. I found version 1.1 to work (commons-logging-1.1.jar)</p>
<p>      Posted by: jsnyders on November 17, 2007 at 7:14 PM</p>
]]></content:encoded>
	</item>
</channel>
</rss>

