Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 69131 invoked from network); 4 Aug 2006 13:27:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 Aug 2006 13:27:22 -0000 Received: (qmail 86313 invoked by uid 500); 4 Aug 2006 13:27:17 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 86278 invoked by uid 500); 4 Aug 2006 13:27:16 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 86267 invoked by uid 99); 4 Aug 2006 13:27:16 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Aug 2006 06:27:16 -0700 X-ASF-Spam-Status: No, hits=2.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,NO_REAL_NAME,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of cknell@onebox.com designates 69.25.242.10 as permitted sender) Received: from [69.25.242.10] (HELO securemail.onebox.com) (69.25.242.10) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Aug 2006 06:27:15 -0700 Received: from outgoing.onebox.com (unverified [172.21.6.74]) by securemail.onebox.com (Rockliffe SMTPRA 7.0.3) with SMTP id for ; Fri, 4 Aug 2006 09:26:55 -0400 Message-ID: From: cknell@onebox.com To: user@ant.apache.org Subject: RE: RE: Setting the value of a property conditonally Date: Fri, 04 Aug 2006 09:26:54 -0400 Content-Type: text/plain; charset="us-ascii" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Your example shows exactly the limitation I'm trying to get around. There are only two possible values that "hasMoney" can take in your example. Either "hasMoney" is "true" or "hasMoney" is false. I'm faced with a situation that calls for me to select the previous "business day". In the U.S. business days are generally Mon, Tue, Wed, Thu, Fri, with Saturday and Sunday not usually counted. On most days of the week, the previous business day is the current date - 1 day. On Monday however, the previous business day is the current date - 3 days. Federal holidays complicate the matter further. In the U.S. most federal holidays are observed on Mondays. Therefore, on a Tuesday following a Monday that is a federal holiday, the previous business day is the current date - 4 days. Some federal holidays do occur on other days, so on days following one of these, the previous business day is the current date - 2 days (unless, of course, the federal holiday falls on a non-business day). This is all fairly easily handled in XSLT using the element and a list of the dates on which federal holidays are observed. I have worked out an alternative plan that calls for using the task to process the file containing the list of federal holidays and create a new XML file holding the data I want. I could then use the element to set the values of the properties. I don't really want to create an intermediate file to perform this task, so I'm asking if there is any other way to achieve this result in Ant that I'm not seeing because I have the wrong mental model. -- Charles Knell cknell@onebox.com - email -----Original Message----- From: Tshepo Rachidi Sent: Fri, 4 Aug 2006 15:07:33 +0200 To: "Ant Users List" Subject: RE: Setting the value of a property conditonally I think that u have to type as follows If I am wrong please rectify. I am still a newbie Regards, Tshepo -----Original Message----- From: cknell@onebox.com [mailto:cknell@onebox.com] Sent: Friday 04 August 2006 15:01 To: user@ant.apache.org Subject: Setting the value of a property conditonally I've been testing the task and either it is very limited in its functioning or I am carrying the wrong mental model into the exercise. I work mostly in XSLT these days. There I can set the value of a variable by testing any number of conditions and nested conditions using the element. appears to be based on the "if-then-else" model. What I'm looking for is a means of setting a property on the "if-then-else-elsif" model. Is there some way of doing this with ant 1.65 as it stands or do I have to write an extension to accomplish this? Thanks. -- Charles Knell cknell@onebox.com - email --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org Discovery Holdings Limited Registration number: 1999/007789/06 This message and any attachments are confidential and intended solely for the addressee. If you have received this message in error, please notify Discovery immediately, telephone number +27 11 529 2888. Any unauthorised use; alteration or dissemination of the contents of this email is strictly prohibited. In no event will Discovery or the sender be liable in any manner whatsoever to any person for any loss or any direct, indirect, special or consequential damages arising from use of this email or any linked website, including, without limitation, from any lost profits, business interruption, loss of programmes or other data that may be stored on any information handling system or otherwise from any assurance that this email is virus free even if Discovery is expressly advised of the possibility of such damages. Discovery is an Authorised Financial Services Provider. A full list of directors is available on our website at https://www.discovery.co.za/index_login.jhtml?p_content=/investor_relations/directorate.jhtml alternatively, to obtain a full list of Directors via email, please email directors_list@discovery.co.za --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org