Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 17853 invoked from network); 29 Sep 2009 15:42:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 29 Sep 2009 15:42:05 -0000 Received: (qmail 88705 invoked by uid 500); 29 Sep 2009 15:42:04 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 88614 invoked by uid 500); 29 Sep 2009 15:42:04 -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 88604 invoked by uid 99); 29 Sep 2009 15:42:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Sep 2009 15:42:04 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of qazwart@gmail.com designates 209.85.220.226 as permitted sender) Received: from [209.85.220.226] (HELO mail-fx0-f226.google.com) (209.85.220.226) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Sep 2009 15:41:54 +0000 Received: by fxm26 with SMTP id 26so10649935fxm.23 for ; Tue, 29 Sep 2009 08:41:34 -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; bh=8EQRVZSMEgay7y/SElK/My4ZCzV3niZTb50vttWOMhw=; b=A7Udx+B/SLS4YDCMsnMXtKkGULPpz/GJ3a2UckM6OSMiGAgocGzWXamLRZw1HtOWgT 7bl346q5h8CmCEQExUcDRsapqelLk8Kn1eMMUTGozV6mxqKcpe0vxTfcG1j4g5M/kf+b pg06v8shcV7NZXtBA4wDujPU3WyQ0jRD6yook= 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; b=X8QUMEv/J8s7RTDwGSshEB+lemVI4Yu4r0UP3l0C53A5t/2QbXgEWv6p/cffUZqDiC XatzWJE65w9pohly1OcdvJCNYifd+9z62Zg59dWpyONJQCpibzN9WsqShyHyrF+/vzvk PDyqQrVACaVjoHCZ+SiH5gUFW+4d19tqwjBwk= MIME-Version: 1.0 Received: by 10.204.153.27 with SMTP id i27mr4317417bkw.155.1254238894055; Tue, 29 Sep 2009 08:41:34 -0700 (PDT) In-Reply-To: References: Date: Tue, 29 Sep 2009 11:41:34 -0400 Message-ID: Subject: Re: pass parameters from one file to another From: David Weintraub To: Ant Users List Content-Type: multipart/alternative; boundary=00151761ca58be60450474b93f7a X-Virus-Checked: Checked by ClamAV on apache.org --00151761ca58be60450474b93f7a Content-Type: text/plain; charset=ISO-8859-1 Then combine both property file "A" and property file "B" into property file "C" (using the same task Francis Galiegue showed you. Then, use property file "C". Remember once a property is set, it cannot be (easily) changed. Maybe you should load in file "B" before file "A"? That would select "build" first from property file "B" before property file "A" is loaded. Or maybe you can set build on the command line? That will override any property value from your properties files. On Fri, Sep 25, 2009 at 8:05 AM, paul collins < paul.pcollins.collins@gmail.com> wrote: > I was supplied a script by Francis Galiegue see below which passes a > parameter value from one property file to another one, which works for me > see below, but I have comments in file B see below for example that I want > to keep, but these are removed when I run this script. From reading the ANT > manual if I use the entry kek term I lose my comments in the file B, is > there another way of doing this? > > ############################################################################### > # Edit this file before doing a release. > # When finished changes, simply save and close to resume build process > > > > > > > > > > > > Note that operation="=" is the default. > -- David Weintraub qazwart@gmail.com --00151761ca58be60450474b93f7a--