{"id":1886,"date":"2017-12-06T10:12:46","date_gmt":"2017-12-06T10:12:46","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/?p=1886"},"modified":"2020-01-09T09:42:34","modified_gmt":"2020-01-09T09:42:34","slug":"sample-apache-ant-project-for-begginers","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/sample-apache-ant-project-for-begginers\/","title":{"rendered":"Sample Apache ant project for begginers"},"content":{"rendered":"<p><strong>rajeshkumar created the topic: Sample Apache ant project for begginers<\/strong><br \/>\nPre-<br \/>\n1. clone the src code from &#8211; <a href=\"http:\/\/github.com\/scmgalaxy\/Javatest1\" target=\"_blank\" rel=\"noopener\">github.com\/scmgalaxy\/Javatest1<\/a><br \/>\n2. Create a proper build structure via ant<\/p>\n<p>Write a two build.xml &#8211;<br \/>\nOne(Name of the file &#8211; Build.xml)<br \/>\nSecond(Name of the file &#8211; myfile.xml)<\/p>\n<p>You should do the following things in build.xml<br \/>\n1. copy the src file from clone folder to build folder<br \/>\n2. change the permission of file to current user<br \/>\n3. create a build folder strcuture needed. use your knowledge<br \/>\n4. Comiple the source code<br \/>\n5. Call build file &#8211; myfile.xml<\/p>\n<p>You should do the following things in myfile.xml<br \/>\n1. Zip the compiled file.<br \/>\n2. Create a jar file.<br \/>\n3. Delete the .class file<br \/>\n4. Sleep for 10 sec<br \/>\n5. create a directory using exec.(Not ant tasks)<br \/>\nRegards,<br \/>\nRajesh Kumar<br \/>\nTwitt me @ <a href=\"http:\/\/twitter.com\/RajeshKumarIn\" target=\"_blank\" rel=\"noopener\">twitter.com\/RajeshKumarIn<\/a><\/p>\n<p><strong>harsha924 replied the topic: Sample Apache ant project for begginers<\/strong><br \/>\nHi Rajesh,<\/p>\n<p>Here is my assignment.<\/p>\n<p>Regards,<br \/>\nHarsha<\/p>\n<p>File Attachment:<br \/>\nFile Name:\tMyAntProje&#8230;rsha.zip<br \/>\nFile Size:5 KB<br \/>\n<a href=\"http:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2017\/12\/MyAntProject-Harsha.zip\" target=\"_blank\" rel=\"noopener\">MyAntProject-Harsha<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>rajeshkumar created the topic: Sample Apache ant project for begginers Pre- 1. clone the src code from &#8211; github.com\/scmgalaxy\/Javatest1 2. Create a proper build structure via ant Write a two&#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[12],"tags":[420],"class_list":["post-1886","post","type-post","status-publish","format-standard","hentry","category-apache-ant","tag-apache"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/1886","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=1886"}],"version-history":[{"count":3,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/1886\/revisions"}],"predecessor-version":[{"id":1891,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/1886\/revisions\/1891"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=1886"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=1886"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=1886"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}