I use wget(http://www.gnu.org/directory/GNU/wget.html) with ant.

It is similar to this:

Properties to have set somewhere (build.properties):
webapp.path=/mywebapp
tomcat.instance=localhost:8080
tomcat.user=foo
tomcat.passwd=bar
wget.dir=/usr/local/bin/
wget.exe=wget

ANT SNIPPET:
*********************************************
<target name="reload">
<exec dir="${wget.dir}" executable="${wget.exe}">
<arg line="--spider --http-user=${tomcat.user} --http-passwd=${tomcat.passwd} http://${tomcat.instance}/manager/reload?path=${webapp.path}"/>
</exec>
</target>
*********************************************


-Tim

Erik Price wrote:
Hi,

I have an ant script (small, b/c I'm new to ant) that builds some classes and copies them over to my WEB-INF/classes directory. But I'd like to see if I can program the ant script to reload the webapp too, does anyone know how this is done?

Thanks,

Erik

PS (OT of Tomcat, but...): I followed an example build.xml file to make mine, and it includes a task named "clean" that looks like it cleans up the build directory. How can I execute this task from the prompt without coding a dependency into the path of execution of the build.xml file itself? Thanks!


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




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

Reply via email to