<?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: Ant: A Case Study in How Not To Write An Error Message</title>
	<atom:link href="http://cafe.elharo.com/blogroll/errormsg/feed/" rel="self" type="application/rss+xml" />
	<link>http://cafe.elharo.com/blogroll/errormsg/</link>
	<description>Longer than a blog; shorter than a book</description>
	<lastBuildDate>Tue, 09 Mar 2010 18:31:23 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Alex</title>
		<link>http://cafe.elharo.com/blogroll/errormsg/comment-page-1/#comment-318897</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Wed, 26 Nov 2008 23:54:43 +0000</pubDate>
		<guid isPermaLink="false">http://minicafe.elharo.com/wordpress/java/errormsg/#comment-318897</guid>
		<description>Oh, and yes, I&#039;m another developer that just hit this problem and googled that cryptic error message... which is why I find myself here. 

My take on this is that developers need to be aware of their user&#039;s needs. Ant does not have a GUI. The documentation and the console output *is* the user interface. If that is inadequate, then the product is useless. 

It seems to me that ant should know perfectly well the  task is defined. I have ant-junit.jar in my ANT_HOME/lib which I believe defines the  task. The problem is that ant cannot find the junit libraries that this task depends upon (namely junit.jar). If that means it can&#039;t recognize the task definition, then there is a design flaw in the mechanism. I don&#039;t know much about task definition in ant because welll... I really really really don&#039;t want to know about it. I have more inportant things to worry about like my own software! 

I would suggest the ability to define and use a task is a core user-feature of ant, and ant should therefore support the common use-scenarios that surroud that feature. I.e. missing libraries, misconfigured build.xml files etc etc etc. That&#039;s what ant is supposed to do. The core of ant doesn&#039;t actually do much else does it?</description>
		<content:encoded><![CDATA[<p>Oh, and yes, I&#8217;m another developer that just hit this problem and googled that cryptic error message&#8230; which is why I find myself here. </p>
<p>My take on this is that developers need to be aware of their user&#8217;s needs. Ant does not have a GUI. The documentation and the console output *is* the user interface. If that is inadequate, then the product is useless. </p>
<p>It seems to me that ant should know perfectly well the  task is defined. I have ant-junit.jar in my ANT_HOME/lib which I believe defines the  task. The problem is that ant cannot find the junit libraries that this task depends upon (namely junit.jar). If that means it can&#8217;t recognize the task definition, then there is a design flaw in the mechanism. I don&#8217;t know much about task definition in ant because welll&#8230; I really really really don&#8217;t want to know about it. I have more inportant things to worry about like my own software! </p>
<p>I would suggest the ability to define and use a task is a core user-feature of ant, and ant should therefore support the common use-scenarios that surroud that feature. I.e. missing libraries, misconfigured build.xml files etc etc etc. That&#8217;s what ant is supposed to do. The core of ant doesn&#8217;t actually do much else does it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://cafe.elharo.com/blogroll/errormsg/comment-page-1/#comment-318892</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Wed, 26 Nov 2008 23:27:16 +0000</pubDate>
		<guid isPermaLink="false">http://minicafe.elharo.com/wordpress/java/errormsg/#comment-318892</guid>
		<description>&quot;I find it a bit harsh to write like that about a product you never even paid for.&quot;

&quot;look for a commercial alternative if it doesn’t work the way you want it to.&quot;

The sad fact is that there is no commercial alternative because open-source kills commercial opportunity. Instead, we&#039;re *forced* (yes, FORCED) to use ineptly documented and unsupported crap like ant and maven. There&#039;s no way any company I&#039;ve worked for in the past 10 years would pay for a product when there&#039;s some half baked P.O.S. available that is one of the latest buzz-word technologies.</description>
		<content:encoded><![CDATA[<p>&#8220;I find it a bit harsh to write like that about a product you never even paid for.&#8221;</p>
<p>&#8220;look for a commercial alternative if it doesn’t work the way you want it to.&#8221;</p>
<p>The sad fact is that there is no commercial alternative because open-source kills commercial opportunity. Instead, we&#8217;re *forced* (yes, FORCED) to use ineptly documented and unsupported crap like ant and maven. There&#8217;s no way any company I&#8217;ve worked for in the past 10 years would pay for a product when there&#8217;s some half baked P.O.S. available that is one of the latest buzz-word technologies.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Baron Von Jiblet</title>
		<link>http://cafe.elharo.com/blogroll/errormsg/comment-page-1/#comment-248757</link>
		<dc:creator>Baron Von Jiblet</dc:creator>
		<pubDate>Thu, 17 Jul 2008 08:37:16 +0000</pubDate>
		<guid isPermaLink="false">http://minicafe.elharo.com/wordpress/java/errormsg/#comment-248757</guid>
		<description>There is one simple solution to this problem: stop using Ant!  I have tried multiple versions of it over the years and it continues to break my builds with a different bug in each version.  It&#039;s broken by design.  As a matter of fact, it can&#039;t even run javac properly: it wants to build every Java source file in the source directory,  whereas for a minimal build (e.g. an Applet) you really want to let javac work out the minimal set of sources to build.  The solution is to exec out to the command line javac program.

Ditch ant and use GNU make.  Seriously.  If you&#039;re stuck on Windows, install Cygwin too.   It will save you time.</description>
		<content:encoded><![CDATA[<p>There is one simple solution to this problem: stop using Ant!  I have tried multiple versions of it over the years and it continues to break my builds with a different bug in each version.  It&#8217;s broken by design.  As a matter of fact, it can&#8217;t even run javac properly: it wants to build every Java source file in the source directory,  whereas for a minimal build (e.g. an Applet) you really want to let javac work out the minimal set of sources to build.  The solution is to exec out to the command line javac program.</p>
<p>Ditch ant and use GNU make.  Seriously.  If you&#8217;re stuck on Windows, install Cygwin too.   It will save you time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy</title>
		<link>http://cafe.elharo.com/blogroll/errormsg/comment-page-1/#comment-232461</link>
		<dc:creator>Andy</dc:creator>
		<pubDate>Thu, 29 May 2008 21:09:27 +0000</pubDate>
		<guid isPermaLink="false">http://minicafe.elharo.com/wordpress/java/errormsg/#comment-232461</guid>
		<description>shpxnvzer: i bet your own version of javac also says nothing about which syntax was written incorrectly and which line number huh? retard!</description>
		<content:encoded><![CDATA[<p>shpxnvzer: i bet your own version of javac also says nothing about which syntax was written incorrectly and which line number huh? retard!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve L</title>
		<link>http://cafe.elharo.com/blogroll/errormsg/comment-page-1/#comment-227747</link>
		<dc:creator>Steve L</dc:creator>
		<pubDate>Mon, 19 May 2008 17:29:21 +0000</pubDate>
		<guid isPermaLink="false">http://minicafe.elharo.com/wordpress/java/errormsg/#comment-227747</guid>
		<description>@Bill. &quot;misspelt&quot; is in fact the correct way of spelling the past tense verb &quot;to mispell&quot; in English. &quot;misspelled&quot; is a regional variation. Both are valid. Whatever you can fault us in the Ant team for, it is not for getting misspelt misspelt. 

ps: try the error message in Ant 1.7 -there&#039;s far better diagnostics there.</description>
		<content:encoded><![CDATA[<p>@Bill. &#8220;misspelt&#8221; is in fact the correct way of spelling the past tense verb &#8220;to mispell&#8221; in English. &#8220;misspelled&#8221; is a regional variation. Both are valid. Whatever you can fault us in the Ant team for, it is not for getting misspelt misspelt. </p>
<p>ps: try the error message in Ant 1.7 -there&#8217;s far better diagnostics there.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: anon</title>
		<link>http://cafe.elharo.com/blogroll/errormsg/comment-page-1/#comment-212537</link>
		<dc:creator>anon</dc:creator>
		<pubDate>Wed, 02 Apr 2008 09:26:28 +0000</pubDate>
		<guid isPermaLink="false">http://minicafe.elharo.com/wordpress/java/errormsg/#comment-212537</guid>
		<description>LOL lots like you are missing the point of open source here!

You say you have deadlines to meet which infers that you are using their tool in a commercial environment and getting paid for your work. How much did you pay for Ant?

Sorry but you get what you pay for in this world and like the previous poster said you have the source code available and you can make the changes.

Open Source is not built around multi national companies with cash to throw at these projects often its done by people in their spare time.

By all means write your comments and put your wish list to Ant but quit your whining and look for a commercial alternative if it doesn’t work the way you want it to.</description>
		<content:encoded><![CDATA[<p>LOL lots like you are missing the point of open source here!</p>
<p>You say you have deadlines to meet which infers that you are using their tool in a commercial environment and getting paid for your work. How much did you pay for Ant?</p>
<p>Sorry but you get what you pay for in this world and like the previous poster said you have the source code available and you can make the changes.</p>
<p>Open Source is not built around multi national companies with cash to throw at these projects often its done by people in their spare time.</p>
<p>By all means write your comments and put your wish list to Ant but quit your whining and look for a commercial alternative if it doesn’t work the way you want it to.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill</title>
		<link>http://cafe.elharo.com/blogroll/errormsg/comment-page-1/#comment-131439</link>
		<dc:creator>Bill</dc:creator>
		<pubDate>Fri, 21 Sep 2007 18:07:57 +0000</pubDate>
		<guid isPermaLink="false">http://minicafe.elharo.com/wordpress/java/errormsg/#comment-131439</guid>
		<description>So, am I the only one who noticed the spelling of &quot;misspelt&quot;.  Looks like the ANT developers need to check THEIR spelling.  ;)</description>
		<content:encoded><![CDATA[<p>So, am I the only one who noticed the spelling of &#8220;misspelt&#8221;.  Looks like the ANT developers need to check THEIR spelling.  <img src='http://cafe.elharo.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ian</title>
		<link>http://cafe.elharo.com/blogroll/errormsg/comment-page-1/#comment-66739</link>
		<dc:creator>ian</dc:creator>
		<pubDate>Mon, 19 Mar 2007 22:23:38 +0000</pubDate>
		<guid isPermaLink="false">http://minicafe.elharo.com/wordpress/java/errormsg/#comment-66739</guid>
		<description>Check out the following link for a definitive solution when working with Eclipse.
http://www.ryanlowe.ca/blog/archives/001038_junit_ant_task_doesnt_work_in_eclipse.php</description>
		<content:encoded><![CDATA[<p>Check out the following link for a definitive solution when working with Eclipse.<br />
<a href="http://www.ryanlowe.ca/blog/archives/001038_junit_ant_task_doesnt_work_in_eclipse.php" rel="nofollow">http://www.ryanlowe.ca/blog/archives/001038_junit_ant_task_doesnt_work_in_eclipse.php</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mahesh</title>
		<link>http://cafe.elharo.com/blogroll/errormsg/comment-page-1/#comment-40859</link>
		<dc:creator>mahesh</dc:creator>
		<pubDate>Fri, 22 Dec 2006 11:04:34 +0000</pubDate>
		<guid isPermaLink="false">http://minicafe.elharo.com/wordpress/java/errormsg/#comment-40859</guid>
		<description>Ant could not find the task or a class this task relies upon.

This is common and has a number of causes; the usual 
solutions are to read the manual pages then download and
install needed JAR files, or fix the build file: 
 - You have misspelt &#039;extendclasspath&#039;.
   Fix: check your spelling.
 - The task needs an external JAR file to execute
     and this is not found at the right place in the classpath.
   Fix: check the documentation for dependencies.
   Fix: declare the task.
 - The task is an Ant optional task and the JAR file and/or libraries
     implementing the functionality were not found at the time you
     yourself built your installation of Ant from the Ant sources.
   Fix: Look in the ANT_HOME/lib for the &#039;ant-&#039; JAR corresponding to the
     task and make sure it contains more than merely a META-INF/MANIFEST.MF.
     If all it contains is the manifest, then rebuild Ant with the needed
     libraries present in ${ant.home}/lib/optional/ , or alternatively,
     download a pre-built release version from apache.org
 - The build file was written for a later version of Ant
   Fix: upgrade to at least the latest release version of Ant
 - The task is not an Ant core or optional task 
     and needs to be declared using .
 - You are attempting to use a task defined using 
     or  but have spelt wrong or not 
   defined it at the point of use

Remember that for JAR files to be visible to Ant tasks implemented
in ANT_HOME/lib, the files must be in the same directory or on the
classpath


Total time: 484 milliseconds</description>
		<content:encoded><![CDATA[<p>Ant could not find the task or a class this task relies upon.</p>
<p>This is common and has a number of causes; the usual<br />
solutions are to read the manual pages then download and<br />
install needed JAR files, or fix the build file:<br />
 &#8211; You have misspelt &#8216;extendclasspath&#8217;.<br />
   Fix: check your spelling.<br />
 &#8211; The task needs an external JAR file to execute<br />
     and this is not found at the right place in the classpath.<br />
   Fix: check the documentation for dependencies.<br />
   Fix: declare the task.<br />
 &#8211; The task is an Ant optional task and the JAR file and/or libraries<br />
     implementing the functionality were not found at the time you<br />
     yourself built your installation of Ant from the Ant sources.<br />
   Fix: Look in the ANT_HOME/lib for the &#8216;ant-&#8217; JAR corresponding to the<br />
     task and make sure it contains more than merely a META-INF/MANIFEST.MF.<br />
     If all it contains is the manifest, then rebuild Ant with the needed<br />
     libraries present in ${ant.home}/lib/optional/ , or alternatively,<br />
     download a pre-built release version from apache.org<br />
 &#8211; The build file was written for a later version of Ant<br />
   Fix: upgrade to at least the latest release version of Ant<br />
 &#8211; The task is not an Ant core or optional task<br />
     and needs to be declared using .<br />
 &#8211; You are attempting to use a task defined using<br />
     or  but have spelt wrong or not<br />
   defined it at the point of use</p>
<p>Remember that for JAR files to be visible to Ant tasks implemented<br />
in ANT_HOME/lib, the files must be in the same directory or on the<br />
classpath</p>
<p>Total time: 484 milliseconds</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brent Kynaston</title>
		<link>http://cafe.elharo.com/blogroll/errormsg/comment-page-1/#comment-37345</link>
		<dc:creator>Brent Kynaston</dc:creator>
		<pubDate>Thu, 14 Dec 2006 16:55:16 +0000</pubDate>
		<guid isPermaLink="false">http://minicafe.elharo.com/wordpress/java/errormsg/#comment-37345</guid>
		<description>I resolved the issue by placing junit-addons.jar in my ant/lib directory.  Have fun!</description>
		<content:encoded><![CDATA[<p>I resolved the issue by placing junit-addons.jar in my ant/lib directory.  Have fun!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
