Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 47228 invoked from network); 4 Dec 2001 17:54:56 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 4 Dec 2001 17:54:56 -0000 Received: (qmail 17987 invoked by uid 97); 4 Dec 2001 17:54:51 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 17971 invoked by uid 97); 4 Dec 2001 17:54:51 -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 17960 invoked from network); 4 Dec 2001 17:54:50 -0000 Message-ID: <20011204175449.87938.qmail@web13407.mail.yahoo.com> Date: Tue, 4 Dec 2001 09:54:49 -0800 (PST) From: Diane Holt Subject: Re: newbie - if-then-else task? To: Ant Users List In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N --- Russ Fink wrote: > Okay - I think I understand. If I have 'dirs.orig' pointing to the > global area, and dirs.local pointing to the local modified area, and > want to put the file into 'dest', I can do the following: > > > value="${dirs.local}/foo"/> > I thought for sure Erik would reply to this, since it's using in the very way he's currently trying to disallow, but... Anyway, yes, you -could- do it this way, but only because allowed resetting the value of a property, which (according to Ant's "immutable properties" stance) it shouldn't really have been doing, and will now bark at you should you try to use it this way (and may well at some point not allow it at all). > (This is still a little more work than I indended, [...] Well, Ant is exactly known for being all that succinct :) And if you think the above is a bit roundabout, you'll probably be not at all fond of how you should really be doing it, which would involve several targets, using "depends" and "unless". Diane ===== (holtdl@yahoo.com) __________________________________________________ Do You Yahoo!? Buy the perfect holiday gifts at Yahoo! Shopping. http://shopping.yahoo.com -- To unsubscribe, e-mail: For additional commands, e-mail: