Saturday, April 7, 2012

Copy the War file to tomcat webapp folderwith ant


<target name="copywar">
<echo message="Creating copy the war war file." />
<fileset dir=".">
<include name="*.war"/>
</fileset>
<copy todir='D:/Tomcat 7.0/webapps' file='${dest.home}/TrackingGadget-${app.version}.war' overwrite="true"/>                                                             //Source war file location

</target>

1 comment:

  1. Thanks for the post, I am techno savvy. I believe you hit the nail right on the head. I am highly impressed with your blog. It is very nicely explained. Your article adds best knowledge to our Java Online Training from India. or learn thru Java Online Training from India Students.

    ReplyDelete