You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Derek Harding <De...@MorningStarSystems.com> on 2001/04/17 02:59:47 UTC

how do I create a WAR file?

Are there any examples of how to create a WAR file?


Re: how do I create a WAR file?

Posted by es...@eas.san-jose.ca.us.
On 16 Apr, Derek Harding wrote:
> Are there any examples of how to create a WAR file?
> 
There is a war target available in ant-1.3. Here is the one from my
project.

  <!-- ================== DIST: Create XXX.war file =================== -->
  <target name="dist-war" depends="XXX-taglib,XXXerr-taglib">
    <war warfile="XXX.war" webxml="${build.dir}/metadata/XXX.xml">
         <webinf dir="${build.dir}/metadata">
            <exclude name="XXX.xml"/>
         </webinf>
         <classes dir="${build.dir}/classes" excludes="**/*Tag.class"/>
         <lib dir="${build.dir}/lib">
            <exclude name="mindt*.jar"/>
          </lib>
         <fileset dir="${build.dir}/html"/>
         <fileset dir="${build.dir}/jsp"/>
         <fileset dir="${build.dir}/images"/>
     </war>
  </target>

I changed the names to protect the innocent. 

=eas=