From user-return-55879-apmail-ant-user-archive=ant.apache.org@ant.apache.org Tue May 02 20:02:30 2006 Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 77627 invoked from network); 2 May 2006 20:02:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 May 2006 20:02:29 -0000 Received: (qmail 46299 invoked by uid 500); 2 May 2006 20:02:24 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 46254 invoked by uid 500); 2 May 2006 20:02:22 -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 46243 invoked by uid 99); 2 May 2006 20:02:22 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 May 2006 13:02:22 -0700 X-ASF-Spam-Status: No, hits=0.9 required=10.0 tests=HTML_10_20,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of tohann@gmail.com designates 66.249.92.172 as permitted sender) Received: from [66.249.92.172] (HELO uproxy.gmail.com) (66.249.92.172) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 May 2006 13:02:21 -0700 Received: by uproxy.gmail.com with SMTP id j3so5705ugf for ; Tue, 02 May 2006 13:02:00 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=jbJG6PZIUEsuxUlsMW2VQpTRl0S/f58ubiF/ovPhtw9DoU3jJ5XubxutqCgTvLu5iEjnighNv2XmK9E2NJcdW30fsy5EO30o3gHZMgqKozGYi8bCQLv+XG7jPBWkfmAcJANe2d5SDKs+wGaDr8v/LNcMXugwwo01O+oyxVbs5oA= Received: by 10.78.23.16 with SMTP id 16mr5095huw; Tue, 02 May 2006 13:02:00 -0700 (PDT) Received: by 10.78.37.11 with HTTP; Tue, 2 May 2006 13:02:00 -0700 (PDT) Message-ID: <4fcb86650605021302o38edb3edue086b352971b3590@mail.gmail.com> Date: Tue, 2 May 2006 15:02:00 -0500 From: "Trent Ohannessian" To: user@ant.apache.org Subject: Qustion about property prefix... MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_10198_27266405.1146600120614" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_10198_27266405.1146600120614 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hello. I'm trying to use the task with a prefix. Here is the code I'm using: ------------------------------------------ ------------------------------------------ And here is the properties file I'm trying to load: ------------------------------------------ localhost.host=3Dlocalhost qa.host=3Dqatest.domain.com localhost.port=3D8080 qa.port=3D80 ------------------------------------------ When I use the prefix property option, none of the properties are read and they are not usable in the Ant script. What I'm trying to do is pass in a property on the command line and then use the correct set of properties based on server. I can see the localhost getting passed into the Ant scrip= t correctly, but it doesn't work even if I hardcode localhost into prefix=3D"= ". Is this the right way to go about doing this? Thanks! Trent -- Learn from the mistakes of others. You can't live long enough to make them all yourself. ------=_Part_10198_27266405.1146600120614--