Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 59406 invoked from network); 26 May 2009 18:33:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 26 May 2009 18:33:58 -0000 Received: (qmail 94858 invoked by uid 500); 26 May 2009 18:34:10 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 94768 invoked by uid 500); 26 May 2009 18:34:09 -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 94758 invoked by uid 99); 26 May 2009 18:34:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 May 2009 18:34:09 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of qazwart@gmail.com designates 209.85.221.116 as permitted sender) Received: from [209.85.221.116] (HELO mail-qy0-f116.google.com) (209.85.221.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 May 2009 18:34:01 +0000 Received: by qyk14 with SMTP id 14so6229128qyk.14 for ; Tue, 26 May 2009 11:33:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=rgJ4QbdMRHS08npyLadv41V5C96pRC8kZ2KBSM0iZ88=; b=Lct3V53MBTOkBwORtKKZbtOb5FkQ4CdDvBD4xQ6Lo96TtOCGOpBmmuLDJcDbICpJjT GNKF+Lwj7irn3Eg2t1Q20HnHcew8/iRqYcGW73Cr4cBk6+PTrPIMbf2VaQ18gB8pKUg3 pX7fxZBAeKoI3B/7Payr+xyS9FzU2ZCJ6jQrY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=WaLglkp2gjx5FYx4435BYG3rGwltZO2vQWDU6+4fINYV0+CpoL2Nsc08sa+z3/UJiW hoibagxxjGIpMeIlOhQEp5S3xZFp93f/WG0czLONyY/OIEavq3qCBI3JiqTxAKT1XQ5n 9JbsEaUI69olIX5V0UumfUA4Rbz58hEk/ffOo= MIME-Version: 1.0 Received: by 10.224.28.197 with SMTP id n5mr8226537qac.90.1243362819889; Tue, 26 May 2009 11:33:39 -0700 (PDT) In-Reply-To: References: Date: Tue, 26 May 2009 14:33:39 -0400 Message-ID: Subject: Re: Replacing build variables in my application property files From: David Weintraub To: Ant Users List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On Tue, May 26, 2009 at 1:29 PM, Avlesh Singh wrote: > My approach is very similar to yours, David. > Would it make sense to have something like an injectBuildProperties task in > ant? You mentioned something about having to restore versioned files once the substitution is done. We don't have to do that because we don't touch the directories where the files are versioned. Instead, we copy all the files out to our "target" directory. It takes longer because instead of doing the build in place, you have to copy all those resource files to the build area. However, the extra build time (a few seconds) is worth it because it eliminates so many headaches such as having to restore files that you edited which confuses the heck out of the CVS build in Hudson. Are you by any chance doing MS Visual Studio builds? If so, you may want to look at Nant (which is the .NET version of ant). -- David Weintraub qazwart@gmail.com --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org