Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 96840 invoked from network); 7 Feb 2006 12:40:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 7 Feb 2006 12:40:53 -0000 Received: (qmail 77786 invoked by uid 500); 7 Feb 2006 12:40:32 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 77341 invoked by uid 500); 7 Feb 2006 12:40:30 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 77330 invoked by uid 99); 7 Feb 2006 12:40:30 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Feb 2006 04:40:30 -0800 X-ASF-Spam-Status: No, hits=1.9 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of grm7790@verizon.net designates 206.46.252.44 as permitted sender) Received: from [206.46.252.44] (HELO vms044pub.verizon.net) (206.46.252.44) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Feb 2006 04:40:29 -0800 Received: from [204.36.10.128] by vms044.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0IUB009E7HUXYSC3@vms044.mailsrvcs.net> for users@tomcat.apache.org; Tue, 07 Feb 2006 06:40:09 -0600 (CST) Date: Tue, 07 Feb 2006 07:39:47 -0500 From: Glen Mazza Subject: Re: wrapping manager "undeploy" Ant task In-reply-to: <004301c62b7c$a64a15d0$0200a8c0@tjllap> To: Tomcat Users List Message-id: <43E89513.5080805@verizon.net> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7bit X-Accept-Language: es-es, es References: <004301c62b7c$a64a15d0$0200a8c0@tjllap> User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Tim Lucia wrote: > Add: failOnError="false" > Works great--thanks. This is already in the documentation[1], but I missed it. Glen [1] http://tomcat.apache.org/tomcat-5.5-doc/manager-howto.html#Executing%20Manager%20Commands%20With%20Ant > > Hello, > > I'm using the manager tasks for Ant to undeploy and deploy my WAR file > in Tomcat, as shown below. Sometimes, due to a previous processing > error, there is nothing to "undeploy" (i.e., no webapp there) but the > "deploy" task is still relevant and should still occur. However, in > these cases, my Ant target fails because the "undeploy" task returns a > nothing-to-undeploy error. > > Question: How do I wrap the task, so that if there is > nothing to undeploy, the deploy task within this target will still > activate? Currently I am just commenting out the undeploy task when > that situation occurs. > > Thanks, > Glen > > > > > password="${tcPassword}" path="${apppath}"/> > > password="${tcPassword}" path="${apppath}" war="${war.app.name}.war"/> > > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org