ANT war task

<!--  B U I L D    T H E    W A R    F I L E  -->
 <target name="war" depends="cleancache,compile" description="Build ${}.war">
  <mkdir dir="${dist.dir}"/>
  <war destfile="${dist.dir}/${}.war"
   <classes dir="${build.dir}/classes"/>
   <zipfileset dir="${lib.dir}" prefix="WEB-INF/lib"/>
   <fileset dir="WebContent"  />
  <copy todir="C:/appservers/apache-tomcat-5.5.27/webapps"
            file="${dist.dir}/${}.war" />
  <delete dir="${build.dir}"/>
        <delete dir="${dist.dir}"/>

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s