Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 48601 invoked from network); 16 Sep 2002 23:09:32 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 16 Sep 2002 23:09:32 -0000 Received: (qmail 17579 invoked by uid 97); 16 Sep 2002 23:10:08 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 17531 invoked by uid 97); 16 Sep 2002 23:10:07 -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 17519 invoked by uid 98); 16 Sep 2002 23:10:07 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Message-ID: <20020916230927.86920.qmail@web13401.mail.yahoo.com> Date: Mon, 16 Sep 2002 16:09:27 -0700 (PDT) From: Diane Holt Subject: Re: Print message if property unset (or if file doesn't exist)? 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 --- "Karr, David" wrote: > I just want to print a message if a "build.properties" file does not > exist in a directory. I would think this would be an easy thing to do, > but I don't see a way to do it. I figured out how to set a property if > a file is present, but I don't see how to do anything with that. Do you want it to print the message and keep going, or print the message and fail? If the latter, just 'unless' on it in a task (as of 1.5). If the former, you'll need to wrap an in a and 'unless' on the -- or use the ant-contrib task. (I modified to allow for if/unless, but I've not submitted it -- and I think I remember someone [DD?] putting through something that allowed if/unless on any task, so that'd probably be the better way to go anyway -- assuming I didn't just dream it?... ack, been away from all this too long... too much real work, too little time.) Diane ===== (holtdl@yahoo.com) __________________________________________________ Do you Yahoo!? Yahoo! News - Today's headlines http://news.yahoo.com -- To unsubscribe, e-mail: For additional commands, e-mail: