Hi Rainer,

Well, you certainly get the right answer.
In raw mode, the ant task is "Successful" => resolved

Thanks for help.

Regards.

Alain


|---------+------------------------------->
|         |                               |
|         |                               |
|         |                               |
|         |                               |
|         |           Rainer Jung         |
|         |           <[EMAIL PROTECTED]|
|         |           a.de>               |
|         |                               |
|         |           14/01/2008 14:46    |
|         |           Veuillez répondre à |
|         |           "Tomcat Users List" |
|         |                               |
|---------+------------------------------->
  
>---------------------------------------------------------------------------------------------------------------------------|
  |        Pour :      Tomcat Users List <users@tomcat.apache.org>              
                                              |
  |           cc :                                                              
                                              |
  |          Objet :   Re: Behavior of Tomcat Ant task "list"                   
                                              |
  
>---------------------------------------------------------------------------------------------------------------------------|





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 &copy; 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]








#
" This e-mail and any attached documents may contain confidential or 
proprietary information. If you are not the intended recipient, please advise 
the sender immediately and delete this e-mail and all attached documents from 
your computer system. Any unauthorised disclosure, distribution or copying 
hereof is prohibited."

 " Ce courriel et les documents qui y sont attaches peuvent contenir des 
informations confidentielles. Si vous n'etes  pas le destinataire escompte, 
merci d'en informer l'expediteur immediatement et de detruire ce courriel  
ainsi que tous les documents attaches de votre systeme informatique. Toute 
divulgation, distribution ou copie du present courriel et des documents 
attaches sans autorisation prealable de son emetteur est interdite."
#

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to