
{"id":1441,"date":"2010-07-07T10:57:30","date_gmt":"2010-07-07T09:57:30","guid":{"rendered":"http:\/\/www.matthijskamstra.nl\/blog\/?p=1441"},"modified":"2010-07-08T17:09:42","modified_gmt":"2010-07-08T16:09:42","slug":"fdt-and-ant-part-1","status":"publish","type":"post","link":"https:\/\/www.matthijskamstra.nl\/blog\/2010\/07\/07\/fdt-and-ant-part-1\/","title":{"rendered":"FDT and ANT &#8211; part 1"},"content":{"rendered":"<p>Just started to work with <a href=\"http:\/\/www.fdt.powerflasher.com\/\">FDT<\/a> and wrote about my &#8220;troubles&#8221; (<a href=\"http:\/\/www.matthijskamstra.nl\/blog\/index.php\/2010\/06\/16\/moving-from-flashdevelop-to-fdt\/\">post#1<\/a> and <a href=\"http:\/\/www.matthijskamstra.nl\/blog\/index.php\/2010\/06\/29\/missing-in-fdt-after-working-with-flashdevelop\/\">post#2<\/a>) with my transition from <a href=\"http:\/\/www.flashdevelop.org\/wikidocs\/index.php?title=Main_Page\">FlashDevelop<\/a>.<br \/>\n<em>(have to be very carefull what I say: &#8220;they&#8221; are watching me: <a href=\"http:\/\/www.matthijskamstra.nl\/blog\/index.php\/2010\/06\/29\/missing-in-fdt-after-working-with-flashdevelop\/#comment-11773\">here<\/a> and <a href=\"http:\/\/twitter.com\/BrunoFonzi\/statuses\/17355312899\">here<\/a> \ud83d\ude00 )<br \/>\n<\/em><br \/>\nAnd it seems to be a very natural (geeky) thing to learn about <a href=\"http:\/\/ant.apache.org\/\" target=\"_blank\">ANT<\/a>.<\/p>\n<p>And where do you go to learn about ANT and SWF\/Flash\/FDT? (<a href=\"http:\/\/www.google.com\/search?q=fdt+ant\" target=\"_blank\">Google<\/a>?)<br \/>\nAfter some tinkering all I got was: <code><strong>failed to create task or type fdt.launch.application<\/strong><\/code><\/p>\n<p>This post was very useful: <a href=\"http:\/\/blog.alanklement.com\/2009\/08\/10\/fdt-and-ant-a-users-guide-part-i\/\">FDT and ANT | A User\u2019s Guide \u2013 Part I<\/a> by Alan Klement.<br \/>\nWatch the videos (I&#8217;m not very fond of tutorial videos but in this case; they get the job done).<br \/>\nWhat I love about the &#8220;<a href=\"http:\/\/blog.alanklement.com\/files\/videos\/ant_part_one.mov\">Video I: Getting Started<\/a>&#8221; is the fact that it builds up from scratch. So watch this video when you want to know about ant-files\/xml, how to open the ANT-View, how to open\/execute an ANT-file.<\/p>\n<p>The second video (<a href=\"http:\/\/blog.alanklement.com\/files\/videos\/ant_part_two.mov\">Video II: Compiling a SWF<\/a>) was what I really was looking for: how to export a SWF. Very nice because it starts from scratch.<br \/>\nAnd it gave me the answer I was looking for: why didn&#8217;t my ANT-file didn&#8217;t work (it about 3\/4 of the video):<br \/>\n<code><br \/>\nBUILD FAILED<br \/>\n[blabla]\\source\\a\\example\\build\\build.xml:17: Problem: <strong>failed to create task or type fdt.launch.application<\/strong><br \/>\nCause: The name is undefined.<br \/>\nAction: Check the spelling.<br \/>\nAction: Check that any custom tasks\/types have been declared.<br \/>\nAction: Check that any <presetdef>\/<macrodef> declarations have taken place.<br \/>\n<\/code><\/p>\n<p><strong>Solution is very simple<\/strong>, but if you don&#8217;t know, you will hate FDT and really it&#8217;s not it fault:<br \/>\nGoto the green &#8220;play&#8221; button with the brown bag, in the toolbar (one picture says more than a thousand words:)<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.matthijskamstra.nl\/blog\/wp-content\/uploads\/external_tools_configurations_hoover.png\" alt=\"\" title=\"external_tools_configurations_hoover\" width=\"229\" height=\"142\" class=\"alignnone size-full wp-image-1444\" \/><\/p>\n<p>Select the ANT-file you want to change (I have only one :D), goto to tab &#8220;<strong>JRE<\/strong>&#8221; and change the <strong>Runtime JRE<\/strong> to <strong>Run in the same JRE as the workspace<\/strong> and your done:<br \/>\n<a href=\"http:\/\/www.matthijskamstra.nl\/blog\/wp-content\/uploads\/external_tools_configurations.png\" target=\"_blank\"><img decoding=\"async\" src=\"http:\/\/www.matthijskamstra.nl\/blog\/wp-content\/uploads\/external_tools_configurations.png\" alt=\"\" title=\"external_tools_configurations\" width=\"500\" class=\"alignnone size-full wp-image-1445\" srcset=\"https:\/\/www.matthijskamstra.nl\/blog\/wp-content\/uploads\/external_tools_configurations.png 800w, https:\/\/www.matthijskamstra.nl\/blog\/wp-content\/uploads\/external_tools_configurations-300x240.png 300w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/a><\/p>\n<p>Very useful are the ANT-snippets and ANT-Build-template!<br \/>\n<a href=\"http:\/\/blog.alanklement.com\/files\/zip\/ant_templates.zip\">Download<\/a> (created by Alan Klement) and &#8220;install&#8221; the ANT-template (how-to on <a href=\"http:\/\/blog.alanklement.com\/2009\/08\/10\/fdt-and-ant-a-users-guide-part-i\/\">this page<\/a> but here the short version)<\/p>\n<blockquote><p>\nTo add XML files templates go: <strong>Preferences > XML > XML Files > Editor > Templates<\/strong> and click import.<\/p>\n<p>To add Ant snippets go: <strong>Preferences > Ant > Editor > Templates<\/strong> and click import.<\/p><\/blockquote>\n<p>I haven&#8217;t seen the second part of this tutorial: <a href=\"http:\/\/blog.alanklement.com\/2009\/08\/19\/fdt-ant-part-two\/\">FDT and ANT | A User\u2019s Guide \u2013 Part II<\/a> but I will.<br \/>\nIt seems to be focused on the use of the templates and snippets.<\/p>\n<p>source:<br \/>\n<a href=\"http:\/\/blog.alanklement.com\/2009\/08\/10\/fdt-and-ant-a-users-guide-part-i\/\">FDT and ANT | A User\u2019s Guide \u2013 Part I<\/a><br \/>\n<a href=\"http:\/\/blog.alanklement.com\/2009\/08\/19\/fdt-ant-part-two\/\">FDT and ANT | A User\u2019s Guide \u2013 Part II<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Just started to work with FDT and wrote about my &#8220;troubles&#8221; (post#1 and post#2) with my transition from FlashDevelop. (have to be very carefull what I say: &#8220;they&#8221; are watching me: here and here \ud83d\ude00 ) And it seems to be a very natural (geeky) thing to learn about ANT. And where do you go [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22,330,3],"tags":[335,333,331,334,411,398,159,332,36],"class_list":["post-1441","post","type-post","status-publish","format-standard","hentry","category-as3","category-fdt","category-flash","tag-ant-build-template","tag-ant-file","tag-ant-snippets","tag-ant-view","tag-fdt","tag-flash","tag-flashdevelop","tag-howto","tag-xml"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/posts\/1441","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/comments?post=1441"}],"version-history":[{"count":6,"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/posts\/1441\/revisions"}],"predecessor-version":[{"id":1443,"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/posts\/1441\/revisions\/1443"}],"wp:attachment":[{"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/media?parent=1441"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/categories?post=1441"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/tags?post=1441"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}