{"id":135,"date":"2009-06-20T05:02:47","date_gmt":"2009-06-20T05:02:47","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/2009\/06\/20\/opy-and-include-issues-in-apache-ant\/"},"modified":"2017-12-26T04:04:20","modified_gmt":"2017-12-26T04:04:20","slug":"apache-ant-copy-and-include-issue","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/apache-ant-copy-and-include-issue\/","title":{"rendered":"How to Resolve Apache Ant Copy and Include Issues &#8211; Ant Guide"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4058 aligncenter\" src=\"http:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2009\/06\/issues-in-apache-ant-1.png\" alt=\"issues-in-apache-ant\" width=\"600\" height=\"400\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2009\/06\/issues-in-apache-ant-1.png 600w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2009\/06\/issues-in-apache-ant-1-300x200.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p><strong>Question: Why Copy in ant is not working if I am putting includes separately?<br \/>\nAnt version: Apache Ant version 1.5.4 compiled on January 8 2005.<\/strong><\/p>\n<p>Program 1 is not working and Program 2 is working.\u00a0 I guess both programs are correct..<br \/>\nProgram1:<br \/>\n&lt;copy todir=&#8221;${Temp}\/uaw\/Uaw_compilescripts&#8221;&gt;<br \/>\n&lt;fileset dir=&#8221;${SVNCheckout}\/scripts\/compilescripts&#8221; &gt;<br \/>\n&lt;include name=&#8221;BuildSh,Compsh,vsamc,buildc.sh,script,compl2,main.sh,makefile,makepl1,script&#8221;\/&gt;<\/p>\n<p>&lt;\/fileset&gt;<br \/>\n&lt;\/copy&gt;<\/p>\n<p>Program2:<\/p>\n<p>&lt;copy todir=&#8221;${Temp}\/uaw\/Uaw_compilescripts&#8221;&gt;<br \/>\n&lt;fileset dir=&#8221;${SVNCheckout}\/scripts\/compilescripts&#8221; includes=&#8221;BuildSh,Compsh,vsamc,buildc.sh,script,compl2,main.sh,makefile,makepl1,script&#8221; \/&gt;<br \/>\n&lt;\/copy&gt;<\/p>\n<p><strong>ANSWER<\/strong><\/p>\n<p>Because &lt;include name=&#8221;&gt; does not split up the name using &#8216;,&#8217;<br \/>\nYou need to have :<br \/>\n&lt;include name=&#8221;BuildSh&#8221;\/&gt;<br \/>\n&lt;include name=&#8221;Compsh&#8221;\/&gt;<br \/>\n&lt;include name=&#8221;vsamc&#8221;\/&gt;<\/p>\n<p>etc..<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Question: Why Copy in ant is not working if I am putting includes separately? Ant version: Apache Ant version 1.5.4 compiled on January 8 2005. Program 1&#8230; <\/p>\n","protected":false},"author":1,"featured_media":4058,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[12],"tags":[209,3196,3197,3200,3201,683,3195,3193,3194,2881,2882,2520,3191,3190,3192,3189,255,1028],"class_list":["post-135","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-apache-ant","tag-ant","tag-ant-copy-and-include-issue-troubleshooting","tag-ant-copy-issue-troubleshooting-guide","tag-ant-troubleshooting","tag-ant-troubleshooting-guide","tag-apache-ant","tag-apache-ant-copy-and-include-issue","tag-apache-ant-copy-issue","tag-apache-ant-copy-toubleshoot","tag-apache-ant-guide","tag-apache-ant-tutorial","tag-copy","tag-copy-and-include-issue-in-ant","tag-copy-issue","tag-copy-problem","tag-include","tag-issues","tag-problems"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/135","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=135"}],"version-history":[{"count":2,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/135\/revisions"}],"predecessor-version":[{"id":4059,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/135\/revisions\/4059"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media\/4058"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=135"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=135"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=135"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}