On Wednesday 19 February 2003 12:55 pm, Wendy Smoak wrote:
> 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,

There is a wonderful document on the Tomcat's website called App Developer 
Guide that shows some best practices for project and build management. Its 
sample application relies on Ant tasks you're interested in and a full 
build.xml is provided. Ant makes building and deploying webapps a breeze, and 
I wish all Tomcat users read that little guide to make their lives easier.

Thanks again to Craig for authoring it.

Paul

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to