Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 60204 invoked from network); 23 Jun 2010 10:05:14 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 23 Jun 2010 10:05:14 -0000 Received: (qmail 31937 invoked by uid 500); 23 Jun 2010 10:05:13 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 31439 invoked by uid 500); 23 Jun 2010 10:05:10 -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 31431 invoked by uid 99); 23 Jun 2010 10:05:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Jun 2010 10:05: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 (nike.apache.org: local policy) Received: from [193.109.238.66] (HELO dnsinet.rzf-nrw.de) (193.109.238.66) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Jun 2010 10:04:59 +0000 Received: from z011100.bk.fin.local (z011100.bk.fin.local [172.18.101.140]) by dnsinet.rzf-nrw.de (8.14.4/8.14.4) with ESMTP id o5NA4d7L027293 for ; Wed, 23 Jun 2010 12:04:39 +0200 Received: from z011103.bk.fin.local ([130.11.7.103]) by z011100.bk.fin.local with Microsoft SMTPSVC(6.0.3790.3959); Wed, 23 Jun 2010 12:04:39 +0200 Received: from z011021.bk.fin.local ([130.11.7.21]) by z011103.bk.fin.local with Microsoft SMTPSVC(6.0.3790.3959); Wed, 23 Jun 2010 12:04:39 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: AW: Setting multiple outputproperties Date: Wed, 23 Jun 2010 12:04:38 +0200 Message-ID: <9EE86F1965E19E499C80DE52AC807B5505171CD6@z011021.bk.fin.local> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Setting multiple outputproperties Thread-Index: AcsSrMiX2IHXvjqfRM6fe04Z0TNmGwADiakA References: <23676.27713.qm@web87112.mail.ird.yahoo.com> From: To: X-OriginalArrivalTime: 23 Jun 2010 10:04:39.0309 (UTC) FILETIME=[7E0BFBD0:01CB12BB] X-Virus-Checked: Checked by ClamAV on apache.org I would write a custom task which analyses the data and stores a bunch = of properties. Depending on the step1prog the data-source would be a property or a = file. public class Step1ProgAnalyseTask extends Task { private File data; // setter private String prefix; // setter public void execute() { Map data =3D analyse(data);=20 for(String key : data.keys) { getProject().setNewProperty(prefix + key, data.get(key)); } } } Jan >-----Urspr=FCngliche Nachricht----- >Von: Lewis Tsao [mailto:ltsao@talk21.com]=20 >Gesendet: Mittwoch, 23. Juni 2010 10:19 >An: user@ant.apache.org >Betreff: Setting multiple outputproperties > >Hi all, > >In one of my build setups, I need to run a program first which=20 >produces some output. From this output I need to get multiple=20 >pieces of information to be used in later build steps: > >For example: > > > >step1prog produces lines of the form > >something >blah blah info1 blah blah >more blah... >di blah di blah info2 di blah >more something > >later on in my build steps I will need to do somelike > > > > > >Is there a clever way of doing this, short of sending output=20 >from step1prog to a file and parsing the file twice to get the=20 >2 pieces of info. > >I still have to learn how to tease info1 and info2 out of the=20 >output yet, but that's another story. > >Many thanks > >Lewis > > > > =20 > > >--------------------------------------------------------------------- >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