Apache Ant War TaskAnt WAR (Web Archive) is an extension of Java Archive file. It is consist of library, classes etc and store into WEB-INF/lib, WEB-INF/classes folders. Apache Ant WAR Attributes
Apache Ant WAR Task Nested Elementslib This element specifies a fileset. All the files are located in WEB-INF/lib folder of the created WAR. classes This element specifies a fileset of class files. After creating war, all the classes are located into WEB-INF/classes folder. webinf This nested element specifies a fileset. All the files are located into WEB-INF directory. Apache Ant War Task ExampleThe above code will create a myapp.war file which has a file structure given below. The above code will create a myapp.war file which has a file structure given below. Next TopicApache Ant Zip Task |