{"id":276,"date":"2010-07-22T11:05:35","date_gmt":"2010-07-22T11:05:35","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/2010\/07\/22\/a-sample-ant-build-script-that-builds-a-war-file\/"},"modified":"2021-02-27T09:53:54","modified_gmt":"2021-02-27T09:53:54","slug":"a-sample-ant-build-script-that-builds-a-war-file","status":"publish","type":"post","link":"https:\/\/www.scmgalaxy.com\/tutorials\/a-sample-ant-build-script-that-builds-a-war-file\/","title":{"rendered":"A sample Ant build script that builds a WAR file &#8211;  Guide"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4408\" src=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2010\/07\/ant-build-script.png\" alt=\"ant-build-script-war-file\" width=\"600\" height=\"400\" srcset=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2010\/07\/ant-build-script.png 600w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2010\/07\/ant-build-script-300x200.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p><strong>A sample Ant build script that builds a WAR file<\/strong><\/p>\n<p>&lt;project name=&#8221;MyWebApplication&#8221; basedir=&#8221;..&#8221; default=&#8221;install&#8221;&gt;<\/p>\n<p>&lt;!&#8211; project-specific variables &#8211;&gt;<br \/>\n&lt;property name=&#8221;jsp.dir.name&#8221; value=&#8221;myapp&#8221; \/&gt;<br \/>\n&lt;property name=&#8221;package.name&#8221; value=&#8221;${jsp.dir.name}.war&#8221; \/&gt;<br \/>\n&lt;property name=&#8221;webapp.dir&#8221; value=&#8221;\/Users\/al\/tomcat-6.0.16\/webapps&#8221; \/&gt;<\/p>\n<p>&lt;property environment=&#8221;env&#8221; \/&gt;<br \/>\n&lt;property name=&#8221;build.dir&#8221; value=&#8221;build&#8221; \/&gt;<br \/>\n&lt;property file=&#8221;${build.dir}\/build.${env.HOSTNAME}&#8221; \/&gt;<\/p>\n<p>&lt;property name=&#8221;lib.dir&#8221; value=&#8221;lib&#8221; \/&gt;<br \/>\n&lt;property name=&#8221;pages.dir&#8221; value=&#8221;pages&#8221; \/&gt;<br \/>\n&lt;property name=&#8221;src.dir&#8221; value=&#8221;src&#8221; \/&gt;<br \/>\n&lt;property name=&#8221;src.tests.dir&#8221; value=&#8221;src-tests&#8221; \/&gt;<br \/>\n&lt;property name=&#8221;resources.dir&#8221; value=&#8221;resources&#8221; \/&gt;<br \/>\n&lt;property name=&#8221;dest.dir&#8221; value=&#8221;target&#8221; \/&gt;<\/p>\n<p>&lt;!&#8211; put everything in a temp folder with the right structure during the build &#8211;&gt;<br \/>\n&lt;property name=&#8221;temp.dir&#8221; value=&#8221;temp&#8221; \/&gt;<br \/>\n&lt;property name=&#8221;temp.dir.web-inf&#8221; value=&#8221;${temp.dir}\/WEB-INF&#8221; \/&gt;<br \/>\n&lt;property name=&#8221;temp.dir.lib&#8221; value=&#8221;${temp.dir.web-inf}\/lib&#8221; \/&gt;<br \/>\n&lt;property name=&#8221;temp.dir.classes&#8221; value=&#8221;${temp.dir.web-inf}\/classes&#8221; \/&gt;<br \/>\n&lt;property name=&#8221;temp.dir.meta-inf&#8221; value=&#8221;${temp.dir}\/META-INF&#8221; \/&gt;<\/p>\n<p>&lt;property name=&#8221;package.file&#8221; value=&#8221;${dest.dir}\/${package.name}&#8221; \/&gt;<\/p>\n<p>&lt;path id=&#8221;build.class.path&#8221;&gt;<br \/>\n&lt;fileset dir=&#8221;lib&#8221;&gt;<br \/>\n&lt;include name=&#8221;**\/*.jar&#8221; \/&gt;<br \/>\n&lt;\/fileset&gt;<br \/>\n&lt;\/path&gt;<\/p>\n<p>&lt;target name=&#8221;clean&#8221;&gt;<br \/>\n&lt;delete&gt;<br \/>\n&lt;fileset dir=&#8221;${dest.dir}&#8221; includes=&#8221;**\/*&#8221;\/&gt;<br \/>\n&lt;\/delete&gt;<br \/>\n&lt;delete dir=&#8221;${temp.dir}&#8221; \/&gt;<br \/>\n&lt;delete dir=&#8221;${temp.dir.classes}&#8221; \/&gt;<br \/>\n&lt;delete dir=&#8221;${temp.dir.meta-inf}&#8221; \/&gt;<br \/>\n&lt;delete dir=&#8221;${temp.dir.web-inf}&#8221; \/&gt;<br \/>\n&lt;\/target&gt;<\/p>\n<p>&lt;target name=&#8221;prepare&#8221; depends=&#8221;clean&#8221;&gt;<br \/>\n&lt;mkdir dir=&#8221;${dest.dir}&#8221; \/&gt;<br \/>\n&lt;mkdir dir=&#8221;${temp.dir}&#8221; \/&gt;<br \/>\n&lt;mkdir dir=&#8221;${temp.dir.lib}&#8221; \/&gt;<br \/>\n&lt;mkdir dir=&#8221;${temp.dir.meta-inf}&#8221; \/&gt;<br \/>\n&lt;mkdir dir=&#8221;${temp.dir.web-inf}&#8221; \/&gt;<br \/>\n&lt;mkdir dir=&#8221;${temp.dir.classes}&#8221; \/&gt;<br \/>\n&lt;\/target&gt;<\/p>\n<p>&lt;!&#8211; COMPILE &#8211;&gt;<br \/>\n&lt;target name=&#8221;compile&#8221; depends=&#8221;prepare&#8221;&gt;<br \/>\n&lt;echo&gt;=== COMPILE ===&lt;\/echo&gt;<br \/>\n&lt;echo&gt;Compiling ${src.dir} files &#8230;&lt;\/echo&gt;<br \/>\n&lt;javac debug=&#8221;on&#8221; srcdir=&#8221;${src.dir}&#8221; destdir=&#8221;${temp.dir.classes}&#8221; includes=&#8221;**\/*&#8221;&gt;<br \/>\n&lt;classpath refid=&#8221;build.class.path&#8221; \/&gt;<br \/>\n&lt;\/javac&gt;<\/p>\n<p>&lt;!&#8211; compile files on the src-tests path &#8211;&gt;<br \/>\n&lt;echo&gt;Compiling ${src.tests.dir} files &#8230;&lt;\/echo&gt;<br \/>\n&lt;javac debug=&#8221;on&#8221; srcdir=&#8221;${src.tests.dir}&#8221; destdir=&#8221;${temp.dir.classes}&#8221; includes=&#8221;com\/**&#8221;&gt;<br \/>\n&lt;classpath refid=&#8221;build.class.path&#8221; \/&gt;<br \/>\n&lt;\/javac&gt;<br \/>\n&lt;\/target&gt;<\/p>\n<p>&lt;!&#8211; PACKAGE &#8211;&gt;<br \/>\n&lt;target name=&#8221;package&#8221; depends=&#8221;compile&#8221;&gt;<br \/>\n&lt;echo&gt;=== PACKAGE ===&lt;\/echo&gt;<\/p>\n<p>&lt;!&#8211; copy the config files &#8211;&gt;<br \/>\n&lt;copy file=&#8221;${resources.dir}\/MANIFEST.MF&#8221; tofile=&#8221;${temp.dir.meta-inf}\/MANIFEST.MF&#8221; overwrite=&#8221;true&#8221; \/&gt;<br \/>\n&lt;copy file=&#8221;${resources.dir}\/web.xml&#8221; tofile=&#8221;${temp.dir.web-inf}\/web.xml&#8221; overwrite=&#8221;true&#8221; \/&gt;<br \/>\n&lt;copy file=&#8221;${resources.dir}\/managed-beans.xml&#8221; tofile=&#8221;${temp.dir.web-inf}\/managed-beans.xml&#8221; overwrite=&#8221;true&#8221; \/&gt;<br \/>\n&lt;copy file=&#8221;${resources.dir}\/navigation-rules.xml&#8221; tofile=&#8221;${temp.dir.web-inf}\/navigation-rules.xml&#8221; overwrite=&#8221;true&#8221; \/&gt;<\/p>\n<p>&lt;copy todir=&#8221;${temp.dir.classes}&#8221;&gt;<br \/>\n&lt;fileset dir=&#8221;${src.dir}&#8221;&gt;<br \/>\n&lt;include name=&#8221;**\/*.xml&#8221;\/&gt;<br \/>\n&lt;include name=&#8221;**\/*.xsl&#8221;\/&gt;<br \/>\n&lt;\/fileset&gt;<br \/>\n&lt;\/copy&gt;<\/p>\n<p>&lt;!&#8211; with all resources in place, create the war file &#8211;&gt;<br \/>\n&lt;war destfile=&#8221;${package.file}&#8221; webxml=&#8221;${temp.dir.web-inf}\/web.xml&#8221; basedir=&#8221;${temp.dir}&#8221;&gt;<br \/>\n&lt;fileset dir=&#8221;${pages.dir}&#8221;\/&gt;<br \/>\n&lt;lib dir=&#8221;${lib.dir}&#8221; \/&gt;<br \/>\n&lt;classes dir=&#8221;${temp.dir.classes}&#8221; \/&gt;<br \/>\n&lt;\/war&gt;<br \/>\n&lt;\/target&gt;<\/p>\n<p>&lt;!&#8211; JUST DEPLOY JSP&#8217;s &#8211;&gt;<br \/>\n&lt;target name=&#8221;jsps&#8221;&gt;<br \/>\n&lt;echo&gt;=== DEPLOY JSP&#8217;S ===&lt;\/echo&gt;<br \/>\n&lt;!&#8211; i&#8217;m trying to be explicit about what i put out there &#8211;&gt;<br \/>\n&lt;copy todir=&#8221;${webapp.dir}\/${jsp.dir.name}&#8221;&gt;<br \/>\n&lt;fileset dir=&#8221;${pages.dir}&#8221;&gt;<br \/>\n&lt;include name=&#8221;**\/*.jsp&#8221;\/&gt;<br \/>\n&lt;include name=&#8221;**\/*.html&#8221;\/&gt;<br \/>\n&lt;include name=&#8221;**\/*.css&#8221;\/&gt;<br \/>\n&lt;include name=&#8221;**\/*.gif&#8221;\/&gt;<br \/>\n&lt;include name=&#8221;**\/*.jpg&#8221;\/&gt;<br \/>\n&lt;include name=&#8221;**\/*.png&#8221;\/&gt;<br \/>\n&lt;include name=&#8221;**\/*.js&#8221;\/&gt;<br \/>\n&lt;\/fileset&gt;<br \/>\n&lt;\/copy&gt;<br \/>\n&lt;\/target&gt;<\/p>\n<p>&lt;!&#8211; INSTALL &#8211;&gt;<br \/>\n&lt;target name=&#8221;install&#8221; depends=&#8221;package&#8221;&gt;<br \/>\n&lt;echo&gt;=== INSTALL ===&lt;\/echo&gt;<br \/>\n&lt;copy file=&#8221;${package.file}&#8221; tofile=&#8221;${webapp.dir}\/${package.name}&#8221; overwrite=&#8221;true&#8221; \/&gt;<br \/>\n&lt;\/target&gt;<\/p>\n<p>&lt;\/project&gt;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A sample Ant build script that builds a WAR file &lt;project name=&#8221;MyWebApplication&#8221; basedir=&#8221;..&#8221; default=&#8221;install&#8221;&gt; &lt;!&#8211; project-specific variables &#8211;&gt; &lt;property name=&#8221;jsp.dir.name&#8221; [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":4408,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[416],"tags":[209,3827,4215,4212,4214,4209,4211,4216,4213,4219,378,4210,1122,3113,593,4218,213,4217],"class_list":["post-276","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-build-management-tools","tag-ant","tag-ant-build","tag-ant-build-script","tag-ant-build-script-for-war-file","tag-ant-script-to-build-war-file","tag-ant-war-task","tag-ant-war-task-meta-inf-example","tag-build-war-file","tag-build-war-file-using-ant","tag-build-war-file-with-ant","tag-commands","tag-create-war-file-using-ant-command","tag-guide","tag-how-to","tag-process","tag-sample","tag-tutorial","tag-war-file"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>A sample Ant build script that builds a WAR file - Guide - scmGalaxy<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.scmgalaxy.com\/tutorials\/a-sample-ant-build-script-that-builds-a-war-file\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"A sample Ant build script that builds a WAR file - Guide - scmGalaxy\" \/>\n<meta property=\"og:description\" content=\"A sample Ant build script that builds a WAR file &lt;project name=&#8221;MyWebApplication&#8221; basedir=&#8221;..&#8221; default=&#8221;install&#8221;&gt; &lt;!&#8211; project-specific variables &#8211;&gt; &lt;property name=&#8221;jsp.dir.name&#8221; [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.scmgalaxy.com\/tutorials\/a-sample-ant-build-script-that-builds-a-war-file\/\" \/>\n<meta property=\"og:site_name\" content=\"scmGalaxy\" \/>\n<meta property=\"article:published_time\" content=\"2010-07-22T11:05:35+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-02-27T09:53:54+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2010\/07\/ant-build-script.png\" \/>\n\t<meta property=\"og:image:width\" content=\"600\" \/>\n\t<meta property=\"og:image:height\" content=\"400\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"scmgalaxy K\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"scmgalaxy K\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/a-sample-ant-build-script-that-builds-a-war-file\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/a-sample-ant-build-script-that-builds-a-war-file\\\/\"},\"author\":{\"name\":\"scmgalaxy K\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/fc12ad190f540e79460243c81148d102\"},\"headline\":\"A sample Ant build script that builds a WAR file &#8211; Guide\",\"datePublished\":\"2010-07-22T11:05:35+00:00\",\"dateModified\":\"2021-02-27T09:53:54+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/a-sample-ant-build-script-that-builds-a-war-file\\\/\"},\"wordCount\":750,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/a-sample-ant-build-script-that-builds-a-war-file\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2010\\\/07\\\/ant-build-script.png\",\"keywords\":[\"ANT\",\"Ant Build\",\"Ant build script\",\"Ant build script for WAR file\",\"Ant script to build War file\",\"Ant WAR task\",\"ant war task meta inf example\",\"Build WAR file\",\"Build War file using Ant\",\"Build War File with Ant\",\"commands\",\"create war file using ant command\",\"Guide\",\"How To\",\"Process\",\"Sample\",\"Tutorial\",\"WAR file\"],\"articleSection\":[\"Build Management &amp; Tools\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/a-sample-ant-build-script-that-builds-a-war-file\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/a-sample-ant-build-script-that-builds-a-war-file\\\/\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/a-sample-ant-build-script-that-builds-a-war-file\\\/\",\"name\":\"A sample Ant build script that builds a WAR file - Guide - scmGalaxy\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/a-sample-ant-build-script-that-builds-a-war-file\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/a-sample-ant-build-script-that-builds-a-war-file\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2010\\\/07\\\/ant-build-script.png\",\"datePublished\":\"2010-07-22T11:05:35+00:00\",\"dateModified\":\"2021-02-27T09:53:54+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/fc12ad190f540e79460243c81148d102\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/a-sample-ant-build-script-that-builds-a-war-file\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/a-sample-ant-build-script-that-builds-a-war-file\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/a-sample-ant-build-script-that-builds-a-war-file\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2010\\\/07\\\/ant-build-script.png\",\"contentUrl\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2010\\\/07\\\/ant-build-script.png\",\"width\":600,\"height\":400,\"caption\":\"ant-build-script-war-file\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/a-sample-ant-build-script-that-builds-a-war-file\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"A sample Ant build script that builds a WAR file &#8211; Guide\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#website\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/\",\"name\":\"scmGalaxy\",\"description\":\"A Platform for Software Engineers\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/fc12ad190f540e79460243c81148d102\",\"name\":\"scmgalaxy K\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4b902ea8c77ee0a326c112f29d0edf51b7c3e1cd05c4fb92a810177e9c3f12a9?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4b902ea8c77ee0a326c112f29d0edf51b7c3e1cd05c4fb92a810177e9c3f12a9?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4b902ea8c77ee0a326c112f29d0edf51b7c3e1cd05c4fb92a810177e9c3f12a9?s=96&d=mm&r=g\",\"caption\":\"scmgalaxy K\"},\"sameAs\":[\"http:\\\/\\\/www.DevOpsSchool.com\"],\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/author\\\/scmgalaxy\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"A sample Ant build script that builds a WAR file - Guide - scmGalaxy","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.scmgalaxy.com\/tutorials\/a-sample-ant-build-script-that-builds-a-war-file\/","og_locale":"en_US","og_type":"article","og_title":"A sample Ant build script that builds a WAR file - Guide - scmGalaxy","og_description":"A sample Ant build script that builds a WAR file &lt;project name=&#8221;MyWebApplication&#8221; basedir=&#8221;..&#8221; default=&#8221;install&#8221;&gt; &lt;!&#8211; project-specific variables &#8211;&gt; &lt;property name=&#8221;jsp.dir.name&#8221; [&hellip;]","og_url":"https:\/\/www.scmgalaxy.com\/tutorials\/a-sample-ant-build-script-that-builds-a-war-file\/","og_site_name":"scmGalaxy","article_published_time":"2010-07-22T11:05:35+00:00","article_modified_time":"2021-02-27T09:53:54+00:00","og_image":[{"width":600,"height":400,"url":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2010\/07\/ant-build-script.png","type":"image\/png"}],"author":"scmgalaxy K","twitter_card":"summary_large_image","twitter_misc":{"Written by":"scmgalaxy K","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/a-sample-ant-build-script-that-builds-a-war-file\/#article","isPartOf":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/a-sample-ant-build-script-that-builds-a-war-file\/"},"author":{"name":"scmgalaxy K","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/fc12ad190f540e79460243c81148d102"},"headline":"A sample Ant build script that builds a WAR file &#8211; Guide","datePublished":"2010-07-22T11:05:35+00:00","dateModified":"2021-02-27T09:53:54+00:00","mainEntityOfPage":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/a-sample-ant-build-script-that-builds-a-war-file\/"},"wordCount":750,"commentCount":0,"image":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/a-sample-ant-build-script-that-builds-a-war-file\/#primaryimage"},"thumbnailUrl":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2010\/07\/ant-build-script.png","keywords":["ANT","Ant Build","Ant build script","Ant build script for WAR file","Ant script to build War file","Ant WAR task","ant war task meta inf example","Build WAR file","Build War file using Ant","Build War File with Ant","commands","create war file using ant command","Guide","How To","Process","Sample","Tutorial","WAR file"],"articleSection":["Build Management &amp; Tools"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.scmgalaxy.com\/tutorials\/a-sample-ant-build-script-that-builds-a-war-file\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/a-sample-ant-build-script-that-builds-a-war-file\/","url":"https:\/\/www.scmgalaxy.com\/tutorials\/a-sample-ant-build-script-that-builds-a-war-file\/","name":"A sample Ant build script that builds a WAR file - Guide - scmGalaxy","isPartOf":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/a-sample-ant-build-script-that-builds-a-war-file\/#primaryimage"},"image":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/a-sample-ant-build-script-that-builds-a-war-file\/#primaryimage"},"thumbnailUrl":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2010\/07\/ant-build-script.png","datePublished":"2010-07-22T11:05:35+00:00","dateModified":"2021-02-27T09:53:54+00:00","author":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/fc12ad190f540e79460243c81148d102"},"breadcrumb":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/a-sample-ant-build-script-that-builds-a-war-file\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.scmgalaxy.com\/tutorials\/a-sample-ant-build-script-that-builds-a-war-file\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/a-sample-ant-build-script-that-builds-a-war-file\/#primaryimage","url":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2010\/07\/ant-build-script.png","contentUrl":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2010\/07\/ant-build-script.png","width":600,"height":400,"caption":"ant-build-script-war-file"},{"@type":"BreadcrumbList","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/a-sample-ant-build-script-that-builds-a-war-file\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.scmgalaxy.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"A sample Ant build script that builds a WAR file &#8211; Guide"}]},{"@type":"WebSite","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#website","url":"https:\/\/www.scmgalaxy.com\/tutorials\/","name":"scmGalaxy","description":"A Platform for Software Engineers","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.scmgalaxy.com\/tutorials\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/fc12ad190f540e79460243c81148d102","name":"scmgalaxy K","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4b902ea8c77ee0a326c112f29d0edf51b7c3e1cd05c4fb92a810177e9c3f12a9?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4b902ea8c77ee0a326c112f29d0edf51b7c3e1cd05c4fb92a810177e9c3f12a9?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4b902ea8c77ee0a326c112f29d0edf51b7c3e1cd05c4fb92a810177e9c3f12a9?s=96&d=mm&r=g","caption":"scmgalaxy K"},"sameAs":["http:\/\/www.DevOpsSchool.com"],"url":"https:\/\/www.scmgalaxy.com\/tutorials\/author\/scmgalaxy\/"}]}},"_links":{"self":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/276","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/comments?post=276"}],"version-history":[{"count":2,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/276\/revisions"}],"predecessor-version":[{"id":4410,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/276\/revisions\/4410"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/media\/4408"}],"wp:attachment":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/media?parent=276"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/categories?post=276"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/tags?post=276"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}