Reno,
Thanks for your reply.

I started the whole exercise from the same link. The startTask APIs do not
mention about the outputproperty. Hence I had not tried. Now after your
reply I have tried using this attribute for the start task. Yet I do not get
the output message I expect "...already started".
The link also lists the messages that can be possibly output from the start
task and it does not include "...already started" as one of the messages.

Right now, I am using the outputmessage to check if the application name
exists in it and has running: against it to see if it is already running. I
think this is a work around.

I am looking for a more straight forward solution to this.

Regards,
Srikanth


reno.rkcrew wrote:
> 
> srikanth,
> 
> did you read this:
> http://tomcat.apache.org/tomcat-5.5-doc/manager-howto.html#Executing%20Manager%20Commands%20With%20Ant?
> 
> it may help you :-)
> 
> regards
> 
> supareno
> 
>>
>> Hi,
>>
>> I am using Tomcat 6.0.16 on JDK 1.5.09.
>> I am using Tomcat's ant task "start" to start an application.
>>
>> If I use the ant task, I always get "OK - Started application at context
>> path ...".
>> But if the application is already running, I get appname] "has already
>> been
>> started" message on the tomcat's console but not through the ant task.
>>
>> Please let me know how I can get the correct status through the "start"
>> task.
>>
>> The start task, does not have outputproperty/errorproperty attribute to
>> get
>> the current status. Is there any other way of getting this information?
>>
>> Thanks
>> Srikanth
>> --
>> View this message in context:
>>
> http://old.nabble.com/knowing-the-status-using-Tomcat%27s-start-ant-task-tp26937227p26937227.html
>> Sent from the Tomcat - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>
>>
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/knowing-the-status-using-Tomcat%27s-start-ant-task-tp26937227p26944899.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to