Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@jakarta.apache.org Received: (qmail 16199 invoked by uid 500); 10 Sep 2001 16:55:09 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: ant-user@jakarta.apache.org Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 16187 invoked from network); 10 Sep 2001 16:55:09 -0000 Message-ID: <20010910165511.35991.qmail@web13407.mail.yahoo.com> Date: Mon, 10 Sep 2001 09:55:11 -0700 (PDT) From: Diane Holt Subject: Re: Set property with condition. To: ant-user@jakarta.apache.org In-Reply-To: <5802F7678945D51184440002557C81E20F2757@Server1b.office.isaserver.be> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N --- Natalia Bello wrote: > I think it is not difficult, but i dont find the way to do it. > I want to set a property only if two others are not set. > That is, i want to set the property "compile.all" if "include.module" > and "exclude.module" both, are not set. > To what I should compare the properties?? I don't think you can use to check if a property is simply set (regardless of what it's set to) -- but you could use the if/unless attrs instead: To use , you'd need to compare against all the possible module names -- eg: which could get real ugly real fast. Diane ===== (holtdl@yahoo.com) __________________________________________________ Do You Yahoo!? Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger http://im.yahoo.com