{"id":2719,"date":"2022-08-30T15:27:12","date_gmt":"2022-08-30T15:27:12","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/02\/08\/compiling-a-build-xml-file-using-ant-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:27:12","modified_gmt":"2022-08-30T15:27:12","slug":"compiling-a-build-xml-file-using-ant-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/compiling-a-build-xml-file-using-ant-collection-of-common-programming-errors\/","title":{"rendered":"Compiling a build.xml file using Ant-Collection of common programming errors"},"content":{"rendered":"<p>You&#8217;re going have to help us out a bit here&#8230;<\/p>\n<p>Are you building JasperReports-4.6.0? Or, are you using JasperReports as part of your <code>build.xml<\/code>? Is this a test <code>build.xml<\/code> demoing JasperReports?<\/p>\n<p>The error says <em>Check that any custom tasks\/types have been declared<\/em>, so what is the Ant task in line #37? Is there a <em>in the <code>build.xml<\/code>? Does it have a <em>classpath<\/em> defined? If you have a <em>taskdef<\/em>, please let us see what it is, and what the custom task is.<\/em><\/p>\n<p>I&#8217;m downloading iReport to see if I can figure out what you&#8217;re doing, but it&#8217;s taking 15 minutes. I bet you&#8217;re supposed to put some jar into <code>$ANT_HOME\/lib<\/code>. Maybe that JasperReports or iReport jarfile.<\/p>\n<p>As soon as I can download iReport and see what you&#8217;re talking about, I&#8217;ll update my answer.<\/p>\n<p>Meanwhile, include the relevant code around line #35 in your <code>build.xml<\/code> and the <code>taskdef<\/code> task in your <code>build.xml<\/code>.<\/p>\n<p>Finished downloading iReport and there is no build.xml<\/p>\n<p>file in it. You&#8217;re going to have to post your code, so we can look at it.<\/p>\n<p>Again, my assumption is that there&#8217;s some jar file that they assumed you&#8217;d stick in <code>\/opt\/ant\/lib<\/code> and didn&#8217;t.<\/p>\n<p id=\"rop\"><small>Originally posted 2014-02-08 03:35:22. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>You&#8217;re going have to help us out a bit here&#8230; Are you building JasperReports-4.6.0? Or, are you using JasperReports as part of your build.xml? Is this a test build.xml demoing JasperReports? The error says Check that any custom tasks\/types have been declared, so what is the Ant task in line #37? Is there a in [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2719","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2719","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=2719"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2719\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=2719"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=2719"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=2719"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}