Hi, The file you're looking for is $CATALINA_HOME/server/lib/catalina-ant.jar. Make sure your ant script sees this file for the deploy (and other) taskdefs.
Set unpackWARs="false" in server.xml to prevent tomcat from packing the wars. Then, to deploy you just copy the war over and restart the webapp using the manager webapp or the ant task. You won't have to remove any directories. Yoav Shapira Millennium ChemInformatics >-----Original Message----- >From: Wendy Smoak [mailto:[EMAIL PROTECTED]] >Sent: Wednesday, February 19, 2003 12:55 PM >To: 'Tomcat Users List' >Subject: ant deploy task? > > >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 > > > > This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
