Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 76931 invoked from network); 23 Oct 2007 12:31:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Oct 2007 12:31:26 -0000 Received: (qmail 56665 invoked by uid 500); 23 Oct 2007 12:31:10 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 56628 invoked by uid 500); 23 Oct 2007 12:31: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 56617 invoked by uid 99); 23 Oct 2007 12:31:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Oct 2007 05:31:10 -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: 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; Tue, 23 Oct 2007 12:31:13 +0000 Received: from z011100.bk.fin.local (z011100.bk.fin.local [172.18.101.140]) by dnsinet.rzf-nrw.de (8.14.0/8.14.0) with ESMTP id l9NCUncv022258 for ; Tue, 23 Oct 2007 14:30:49 +0200 Received: from z011034.bk.fin.local ([130.11.7.34]) by z011100.bk.fin.local with Microsoft SMTPSVC(6.0.3790.1830); Tue, 23 Oct 2007 14:30:49 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 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: XmlProperty - can I specify the property value delimiter? Date: Tue, 23 Oct 2007 14:30:49 +0200 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: XmlProperty - can I specify the property value delimiter? Thread-Index: AcgVbc8UaHhxi05WRFalARDIPoD07QAArAsQ From: To: X-OriginalArrivalTime: 23 Oct 2007 12:30:49.0558 (UTC) FILETIME=[8B2D4760:01C81570] X-Virus-Checked: Checked by ClamAV on apache.org Oh you also could subclass XmlProperty and overwrite that method ;) Jan=20 >-----Urspr=FCngliche Nachricht----- >Von: Martin Gainty [mailto:mgainty@hotmail.com]=20 >Gesendet: Dienstag, 24. Oktober 2000 14:09 >An: Ant Users List >Betreff: Re: XmlProperty - can I specify the property value delimiter? > >I was going to suggest doing an XML Transform but propertregex is much >easier to implement thru Ant > >Vielen Danke Jan! >Martin-- >----- Original Message ----- >From: >To: >Sent: Tuesday, October 23, 2007 2:01 AM >Subject: AW: XmlProperty - can I specify the property value delimiter? > > >Manual doesnt say anything to delimiters (which in general=20 >mean "there is >no") and source doesnt have one ... > >XmlProperty.java:0461: private void addProperty (String=20 >name, String >value, String id) { >XmlProperty.java:0468: if (addedAttributes.containsKey(name)) { >XmlProperty.java:0477: value =3D (String) >addedAttributes.get(name) + "," + value; >--------------------------------------------------------------- >------------- >----^^^ >XmlProperty.java:0489: } > > > >If you want to iterate over this list with =20 >you can specify >a delimiter there (but I think it defaults to comma ...) > >You can also use for changing the delimiter. >Something like this: > property=3D"newlist" > input=3D"${oldlist}" > regexp=3D"," > replace=3D"${newdelimiter}" > global=3D"true" > /> > > > >Jan > > >>-----Urspr=FCngliche Nachricht----- >>Von: J MacKay [mailto:jm.junkmail@yahoo.com] >>Gesendet: Dienstag, 23. Oktober 2007 01:22 >>An: user@ant.apache.org >>Betreff: XmlProperty - can I specify the property value delimiter? >> >>I just started using ant and have a question about XMLProperty. >> >> >> >> x1 >> x2 >> >> >>Using the sample above, XMLProperty will transform"x" into a >>comma separated list of values: >> root-tag.x=3Dx1,x2 >> >>Is there any way to specify the delimiter used (like a "|") ? >>ie return this instead >> root-tag.x=3Dx1|x2 >> >> >> __________________________________________________ >>Do You Yahoo!? >>Tired of spam? Yahoo! Mail has the best spam protection around >>http://mail.yahoo.com >> > >--------------------------------------------------------------------- >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