Hi Alain,
[EMAIL PROTECTED] wrote:
Environment Description :
Windows 2000 SP4 ; IE 6.0
Apache Tomcat 5.5
Apache Ant 1.7.0
Object : my purpose is to use the ant task "list" defines in Tomcat distrib
(Tomcat distrib gives a general purpose build script with lot of features,
including a target "list").
1. This is the build file I made by extracting from the previous build
file.
<project name="My Project" default="list" basedir=".">
<property file="build.properties"/>
<taskdef name="list" classname="org.apache.catalina.ant.ListTask"/>
<target name="list"
description="List installed applications on servlet container">
<list url="${manager.url}"
username="${manager.username}"
password="${manager.password}"/>
</target>
</project>
2. This is the build.properties content :
manager.url=http://localhost:8080/manager/html
I expect, you need manager.url=http://localhost:8080/manager/
because you want the ant task to use the raw style manager, and not the
html (browser) based one. I don't usually use the ant task, it is only
an educated guess :)
manager.username=admin
manager.password=
3. catalina-ant.jar from Tomcat is copied to %ANT_HOME%\lib
4. So, I start Tomcat, and then in a CMD window : ant list (or ant alone
because of default)
The result is (extract) :
Buildfile: D:\Users\myaccount\...\build.xml
list:
[list] <html>
[list] <head>
[list] <style>
[list] H1
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
H2
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
H3
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
BODY
{font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}
P
{font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A
{color : black;}A.name
{color : black;}HR {color : #525D76;} table {
[list] width: 100%;
[list] }
[list] td.page-title {
[list] text-align: center;
[list] vertical-align: top;
[list] font-family:sans-serif,Tahoma,Arial;
. . . . . . .
[list] <hr size="1" noshade="noshade">
[list] <center><font size="-1" color="#525D76">
[list] <em>Copyright © 1999-2005, Apache Software
Foundation</em></font></center>
[list] </body>
[list] </html>
BUILD FAILED
D:\Users\myaccount\...\build.xml:8: <html>
5. Of course, I have noted that all the text right to the tag [list] is the
HTML text of the page we get when we acces Tomcat with the manager role and
ask for "list the webapps".
6. My question :
I think it is not the right behavior of the Ant target "list" : I should
view the list in my browser.
So, what's wrong with my process ?
Thanks for advices.
Regards,
Rainer
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]