Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 79903 invoked from network); 13 Nov 2002 19:41:59 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 13 Nov 2002 19:41:59 -0000 Received: (qmail 6703 invoked by uid 97); 13 Nov 2002 19:42:51 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 6687 invoked by uid 97); 13 Nov 2002 19:42:50 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 6675 invoked by uid 98); 13 Nov 2002 19:42:49 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Date: 13 Nov 2002 19:41:29 -0000 Message-ID: <20021113194129.19039.qmail@webmail25.rediffmail.com> MIME-Version: 1.0 From: "Hari Kodungallur" Reply-To: "Hari Kodungallur" To: "Ant Users List" Subject: Re: conditions and property's Content-type: text/plain; format=flowed Content-Disposition: inline X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N actually, it will be very helpful for me also to know whether we can unset a property. scott, however, you can use the task provided by ant-contrib (its on sourceforge http://sourceforge.net/projects/ant-contrib) as a work around. thats what i am doing now say the value of the property "this.target.built" can be either "true" or "false" then you can do something like ... ... -hk On Wed, 13 Nov 2002 Klein, Scott @ TW wrote : >OK. So I have determined that Ant is currenty not capable of >doing the >following within a single task (if I'm wrong, please correct >me): > if condition exists, do stuff > else stop executing script > >however, in order to make my targets re-useable for a variety of >purposes I >require my properties to be UNset after they are checked: > > > > > > .. do some stuff .. > ?? unset the property bar ?? > > > > > .. whatever .. > > > > > > .. whatever .. > > > > > >So I only want target "foo" to execute under certain conditions, >however >once the property is set there is no way to unset it. Say I want >foo to be >copyFile then I need to have copyFileForTarget1 >copyFileForTarget2 - plus >all of the properties and error checks (which is another >story). > >I've read that something much easier is being promised in Ant2, >but >shouldn't simple logic be supported already? It just seems >strange to me >that it is not. > >Anyway, if there is a simple solution to this that I've missed I >would love >to hear about it. > > >thanks >scott > >-- >To unsubscribe, e-mail: > >For additional commands, e-mail: > > __________________________________________________________ Give your Company an email address like ravi @ ravi-exports.com. Sign up for Rediffmail Pro today! Know more. http://www.rediffmailpro.com/signup/ -- To unsubscribe, e-mail: For additional commands, e-mail: