What's the least amount of work I can do to deploy a new version of my webapp? I've been cheating and developing directly under the webapps directory. Now I've moved to a separate directory structure and am building a .war file which gets copied over to webapps.
Since Tomcat auto-expands the war file, I find I have to delete the directory and restart in order to get the new version in place. I found an ant task named 'deploy' but it doesn't seem to be apparently requires another .jar file, and I'm having no luck finding that with Google. It isn't, as far as I can tell, a core ant task: W:\java\bendev>ant deploy Buildfile: build.xml deploy: BUILD FAILED file:W:/java/bendev/build.xml:136: Could not create task or type of type: deploy. Ant could not find the task or a class this task relies upon. <target name="deploy" depends=""> <deploy url="http://my.development.box" path="${context}" war="${dist}/${context}.war" username="wendy" password="password" /> </target> I'm also not sure how this is going to work... Tomcat is on the same machine so right now I'm just copying the war file over. Would it be better to use the 'install' or 'restart' tasks instead? Thanks, -- Wendy Smoak Applications Systems Analyst, Sr. Arizona State University PA Information Resources Management
