ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran" <stev...@iseran.com>
Subject Re: parsing a task output for further processing
Date Wed, 12 Jun 2002 14:08:47 GMT

----- Original Message -----
From: "Marc Logemann" <devlists@logemann.info>
To: <ant-user@jakarta.apache.org>
Sent: Wednesday, June 12, 2002 02:01
Subject: Re: parsing a task output for further processing


> > --- Marc Logemann <devlists@logemann.info> wrote:
> >> its the ouput you get from the manager list command in tomcat. As you
> >> know tomcat ships ant tasks and i use the List task, he is outputting
> >> all applications row by row and its status behind the application name.
>
> > A few sample lines would be much more helpful.
>
> here it goes:
>
> <taskdef name="tclist"      classname="org.apache.catalina.ant.ListTask"/>
>
> <target name"foo">
>
> <tclist  url="${catalina.url}" username="${catalina.username}"
password="${catalina.password}"/>
> <tcstop  url="${catalina.url}" username="${catalina.username}"
password="${catalina.password}"
>             path="/maxbahr"/>
> </target>
>
> the list produces the following to stdout:
>
> OK - Listed applications for virtual host localhost
> /examples:running:0
> /webdav:running:0
> /tomcat-docs:running:0
> /maxbahr:running:0
> /manager:running:0
> /:running:0
> /mshop:running:0
>
> The point is, i want to stop my app (maxbahr) only if it running, cause
otherwise i will get
> a build error on the tcstop task.

sounds like a defect in the implementation of the tcstop task; it should
have an attr that states whether you care if it stopped or no'.

when I undeploy using the <get> task, I dont bother to look at the response
at all (but do check the http error code)


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message