Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 95387 invoked from network); 11 Jan 2008 15:14:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Jan 2008 15:14:55 -0000 Received: (qmail 31872 invoked by uid 500); 11 Jan 2008 15:14:40 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 31850 invoked by uid 500); 11 Jan 2008 15:14:40 -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 31839 invoked by uid 99); 11 Jan 2008 15:14:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Jan 2008 07:14:39 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,HTML_NONELEMENT_40_50,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [206.190.58.192] (HELO web55313.mail.re4.yahoo.com) (206.190.58.192) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 11 Jan 2008 15:14:15 +0000 Received: (qmail 97273 invoked by uid 60001); 11 Jan 2008 15:14:19 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=icsbuQCcnkdX0GERkXXk/EfS0ch3U+eEd2EcDshxaJZWqy4Iirc23X1ksQLiUX72rE/rGR4LU8HDsZtuJEPJdGSERf4Ouz0By6rLYEEum4aV7LTOC/pLXXtNrUZuGh3ZActGHqDC6mO8Mi3bz+sQJhiClw4mhQWYpo8Svt+pJd8=; X-YMail-OSG: G8gBHp4VM1mxuBUhhEseG_AfMzISkdPPTOzB6.s1k52m9_aqByCkl726gbRTyNi083wWaBqT7Vs9FA22jkoch.6PFRS0PPYnwODBC6Cdu3hl6F6oyW.m2cdhrQAjOw-- Received: from [65.13.158.91] by web55313.mail.re4.yahoo.com via HTTP; Fri, 11 Jan 2008 07:14:19 PST Date: Fri, 11 Jan 2008 07:14:19 -0800 (PST) From: Michael Pelz Sherman Subject: Re: inline property expansion not working as advertised To: Ant Users List In-Reply-To: <780217.72373.qm@web52102.mail.re2.yahoo.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1394401625-1200064459=:95271" Content-Transfer-Encoding: 8bit Message-ID: <617362.95271.qm@web55313.mail.re4.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org --0-1394401625-1200064459=:95271 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit You're right - adding the following line to build build.xml did the trick: So why doesn't it work with -propertyfile? I want to be able to specify different property files on the cmd line, and I was hoping to take advantage of this feature. Chuck Holzwarth wrote: You have to import the property file or declare the properties in the build file. Thank you, Chuck Holzwarth (804) 403-3478 (home) (540) 335-3171 (cell) ----- Original Message ---- From: Michael Pelz Sherman To: Ant Users List Sent: Thursday, January 10, 2008 5:52:27 PM Subject: inline property expansion not working as advertised >From the Property task docs (http://ant.apache.org/manual/CoreTasks/property.html) ================================ In-file property expansion is very cool. Learn to use it. Example: build.compiler=jikes deploy.server=lucky deploy.port=8080 deploy.url=http://${deploy.server}:${deploy.port}/ ================================ So I created a properties file with the above and the following build.xml file: ================================== deploy.url is ${deploy.url} ================================== The I ran it as follows: $ ant -propertyfile test.properties Here is the output: ================================== Buildfile: build.xml test: [echo] deploy.url is http://${deploy.server}:${deploy.port}/ BUILD SUCCESSFUL Total time: 0 seconds ================================== I'm using ant 7.0. What am I doing wrong? Thanks, - mps ____________________________________________________________________________________ Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping --0-1394401625-1200064459=:95271--