Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 23322 invoked from network); 6 Sep 2007 08:48:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Sep 2007 08:48:28 -0000 Received: (qmail 21377 invoked by uid 500); 6 Sep 2007 08:48:19 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 21090 invoked by uid 500); 6 Sep 2007 08:48:18 -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 21079 invoked by uid 99); 6 Sep 2007 08:48:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Sep 2007 01:48:18 -0700 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 antuser@gmail.com designates 209.85.198.191 as permitted sender) Received: from [209.85.198.191] (HELO rv-out-0910.google.com) (209.85.198.191) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Sep 2007 08:48:15 +0000 Received: by rv-out-0910.google.com with SMTP id k15so80231rvb for ; Thu, 06 Sep 2007 01:47:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=lA2dLPiHqWkFpIZD1XUM0xZloSpI1gF2SS112irkCAI=; b=CrJny1j5JF4e1tlFtBm7vHXI4AoAUDc7d3L+QbC3dEhoJMDs6qiBW1PSIpBlqO4eaccPp2PWVxEflQAAWucTH3LRbqOKd2H/j3mW9+tMPOn6PK1BJpC2EeUVNaO9bJjbIjTzbaW7Tsr1gnfmiOLx+76/f+Y0vxsXqVzh8dVu+Y0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=qsSX/t8H368fZUKSiIrByatKO+cqcttV2Owl6MdmLIIqkIMVIgdo7NiauGlNBzpDLA5Q/0ZRUFMDnCvd2FQ9hwQhcdW58gqkh7/3Iww2zEsHeZVcDydkkGgkh7/57yeNbb0Dro5kuKgsVt5ZN4bq+o5bX0IaCH61B6DOmxS6xxE= Received: by 10.140.126.14 with SMTP id y14mr146066rvc.1189068475199; Thu, 06 Sep 2007 01:47:55 -0700 (PDT) Received: by 10.141.75.12 with HTTP; Thu, 6 Sep 2007 01:47:55 -0700 (PDT) Message-ID: Date: Thu, 6 Sep 2007 10:47:55 +0200 From: "Patrick Martin" To: "Ant Users List" Subject: Re: extract properties from file and corresponding template In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: X-Virus-Checked: Checked by ClamAV on apache.org Hello, I see what you mean and agree. The worse case would be when we have something like @prop1@@prop2@ in the template files For the start of the property, I guess we can find it out in the template (looking for the index of @). The end is much trickier. Thank you anyway. Patrick On 9/6/07, Jan.Materne@rzf.fin-nrw.de wrote: > No there isnt. > > And I think this cant be done: > If you combine the template with the property values you doesnt have any = markers where a property value starts and where it ends (if your template d= oesnt provide these). Therefore you cant parse the resulting file. > > Example: > > template > this @value@ file > property > value=3Dis a sample > result > this is a sample file > > How you would parse the "this is a sample file" string? > > > Jan > > >-----Urspr=FCngliche Nachricht----- > >Von: Patrick Martin [mailto:antuser@gmail.com] > >Gesendet: Donnerstag, 6. September 2007 10:18 > >An: Ant User > >Betreff: extract properties from file and corresponding template > > > >Hello, > > > >I have a file that was generated from a template and a set of > >properties using ant filters. > >Basically, the template contained tokens like @my.property@ which > >where replaced by the corresponding value of ${my.property}. > >template + properties >>> file > > > >Now, I'd like to be able to get the set of properties back from this > >file and the corresponding template. > >file + template >>> properties > > > >Is there any task out there that already exists for that? > > > >Thank you, > > > >Patrick > > > >--------------------------------------------------------------------- > >To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > >For additional commands, e-mail: user-help@ant.apache.org > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org