Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 40351 invoked from network); 15 Mar 2005 10:38:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 15 Mar 2005 10:38:30 -0000 Received: (qmail 43132 invoked by uid 500); 15 Mar 2005 10:38:17 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 43067 invoked by uid 500); 15 Mar 2005 10:38:16 -0000 Mailing-List: contact user-help@ant.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 user@ant.apache.org Received: (qmail 43031 invoked by uid 99); 15 Mar 2005 10:38:16 -0000 X-ASF-Spam-Status: No, hits=0.4 required=10.0 tests=DNS_FROM_RFC_ABUSE,RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of rakesh.mailgroups@gmail.com designates 64.233.184.200 as permitted sender) Received: from wproxy.gmail.com (HELO wproxy.gmail.com) (64.233.184.200) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 15 Mar 2005 02:38:16 -0800 Received: by wproxy.gmail.com with SMTP id 68so2439048wri for ; Tue, 15 Mar 2005 02:38:14 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=QXm9XeoLYtMogMXovSfpzQ25D5fyDbJlooKP2bBDECN/pMAnRgbVJRa8WoKKUbqJSyxd9DaA1xY1suipV5x5+nk3hMJ2oVHkpB7O10LaEjP6ZDccKpKNyXW7qsuT3bZ7YlQW59NNb8Xzga85gOez2KDUoYuUE42KenoVdWOEGgU= Received: by 10.54.15.2 with SMTP id 2mr828655wro; Tue, 15 Mar 2005 02:38:14 -0800 (PST) Received: by 10.54.33.54 with HTTP; Tue, 15 Mar 2005 02:38:14 -0800 (PST) Message-ID: <96b4e8c05031502384d60aa53@mail.gmail.com> Date: Tue, 15 Mar 2005 10:38:14 +0000 From: rakesh mailgroups Reply-To: rakesh mailgroups To: Ant Users List Subject: question Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi, I would like my build file to abort if a file does not exist. I couldn't find a way to find out if the file exists, but I did see a way to check for the existence of properties (since the file is a property file), I did this: Value of password is ${sun.password} However, here's the result: Buildfile: C:\Projects\HelloSample\build.xml checkProperties: [echo] Value of password is admin BUILD FAILED: C:\Projects\HelloSample\build.xml:29: unless=admin It shouldn't fail since the property is set but it does. Thanks Rakesh --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org