At 03:03 PM 10/16/2001, [EMAIL PROTECTED] writes:
>
>
>I'm not sure I quite understand what you mean when you say "tomcat itself". The
>tasks are really just a fairly simple wrapper around existing Tomcat
>functionality. However, I thought it may be useful to some members of the ant
>community that are developing with Tomcat 4.x.
>
>An example that illustrates the basic idea is that a developer could enter the
>url http://localhost:8080/manager/list in a browser, enter a valid username and
>password when prompted by the browser and the list of deployed webapps would be
>displayed in the browser.
>
>I wanted to use this "manager" webapp functionality from ant so that I could
>compile, build a war, and then redeploy the webapp, from ant without having to
>bounce the server or enter a command in a browser. I didn't see an ant task
>that
>would allow me to access a password protected resource via http, so I
>created it
>myself.
>
>-bree


To get access to a password protected resource via http, just use the GET
task, I provided the patch that was accepted
(see <http://www.mail-archive.com/[EMAIL PROTECTED]/msg09596.html>
and <http://www.mail-archive.com/[EMAIL PROTECTED]/msg09599.html>
)

You can't do stuff like, taking sophisticated actions based on the result of accessing the URL,
but hitting password protected http urls should be ok.


In fact i extended the GET task to restart ATG Dynamo via http, a task very similar
to what you seem to be doing.


Hope this helps,
Gautam


-- Gautam Guliani Cell: 917.334.1304 Office: 646.375.2036 Partner, Grassroots Technologies, Inc. http://www.grassroots-tech.com/

Failure is not an option. It comes bundled with your Microsoft product.
        -- Ferenc Mantfeld



Reply via email to